Skip to content

Instantly share code, notes, and snippets.

@sidec
sidec / generate_docker_cert.sh
Created March 28, 2019 14:45 — forked from bradrydzewski/generate_docker_cert.sh
Generate trusted CA certificates for running Docker with HTTPS
#!/bin/bash
#
# Generates client and server certificates used to enable HTTPS
# remote authentication to a Docker daemon.
#
# See http://docs.docker.com/articles/https/
#
# To start the Docker Daemon:
#
# sudo docker -d \
@sidec
sidec / GLSL-Noise.md
Created June 29, 2018 07:40 — forked from patriciogonzalezvivo/GLSL-Noise.md
GLSL Noise Algorithms

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
	return mix(rand(fl), rand(fl + 1.0), fc);
}

from

Cursor movement

h - move left
j - move down
k - move up
l - move right
w - jump by start of words (punctuation considered words)

W - jump by words (spaces separate words)

@sidec
sidec / vim_fireplace_paredit_cheat_sheet.md
Created November 10, 2015 10:53 — forked from nblumoe/vim_fireplace_paredit_cheat_sheet.md
Simple cheat sheet for vim fireplace and paredit

fireplace

  • cpr => (require ... :reload)
  • cpR => (require ... :reload-all)

Evaluation

  • :Eval (clojure code) => runs (clojure code) in repl
  • cpp => evaluate inn-most expessions under cursor
  • cp<movement> => evaluate text described by <movement>
  • cqp => opens quasi-repl
  • cqc => quasi-repl command line window
@sidec
sidec / build.sbt
Created April 1, 2015 21:23
sbt bare build file for Processing2 projects
name := "p5inscala"
version := "1.0"
scalaVersion := "2.11.5"
libraryDependencies ++= Seq(
"org.processing" % "core" % "2.2.1",
"org.jogamp.jogl" % "jogl-all-main" % "2.0.2",
"org.jogamp.gluegen" % "gluegen-rt-main" % "2.0.2"