display
:flex | inline-flex
flex-direction
:row | row-reverse | column | column-reverse
flex-wrap
:nowrap | wrap | wrap-reverse
justify-content
:flex-start | flex-end | center | space-between | space-around
align-items
:flex-start | flex-end | center | baseline | stretch
align-content
:flex-start | flex-end | center | space-between | space-around | stretch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dynamic; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.HashMap; | |
/** | |
* Console example application. | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* curry(fn: Function) => Function | |
* Simple implementation of currying a function | |
* Drawbacks: | |
* - Cannot be reused as stored args is mutable | |
* - Cannot use placeholders | |
* - Will not check argument overflow | |
*/ | |
function curry(fn) { | |
var arity = fn.length; // check the arity of the given function |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Use socat to proxy git through an HTTP CONNECT firewall. | |
# Useful if you are trying to clone git:// from inside a company. | |
# Requires that the proxy allows CONNECT to port 9418. | |
# | |
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run | |
# chmod +x gitproxy | |
# git config --global core.gitproxy gitproxy | |
# | |
# More details at http://tinyurl.com/8xvpny |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POINT(2.0 4.0) | |
010100000000000000000000400000000000001040 | |
LINESTRING(2.0 4.0, 1.0 2.0) | |
01020000000200000000000000000000400000000000001040000000000000f03f0000000000000040 | |
POLYGON ((30 10, 40 40, 20 40)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Flames. Generates some flames by using gradients (with basic | |
* spline math) and Perlin noise (for generating the flame | |
* height). | |
*/ | |
/** Flame outer color */ | |
color startCol = color(100, 0, 210); | |
/** Flame inner color */ | |
color endCol = color(200, 150, 255); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var EventEmitter = require('events').EventEmitter, | |
_ = require('lodash'); | |
/** | |
* Creates an action functor object | |
*/ | |
exports.createAction = function() { | |
var action = new EventEmitter(), | |
eventLabel = "action", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Quad Tree implementation and visualization in Processing. Executes | |
* with Processing 1.5.1 | |
* | |
* Adds points to a quad tree and shows visually as the quad tree | |
* splits and repushes the values as new values are added. | |
* | |
* Restart QuadTree with new values with a key press. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am spoike on github. | |
* I am spoike (https://keybase.io/spoike) on keybase. | |
* I have a public key ASBid-dWl9jmwlyW9ZQYKyIQxCk4s88XiEd4nsrqno_Gsgo | |
To claim this, I am signing this object: |
NewerOlder