(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
shader_type canvas_item; | |
uniform sampler2D distort_texture; | |
uniform float fade : hint_range(0.0, 1.0) = 0.86; | |
uniform float desat : hint_range(0.0, 1.0) = 0.3; | |
uniform float scale = 0.009; | |
uniform float intensity = 0.041; | |
uniform int kuwahara_radius = 4; |
sudo apt-get install git build-essential curl xclip | |
sudo apt-get install bison flex libreadline-dev libz-dev | |
git clone git://git.postgresql.org/git/postgresql.git | |
cd postgresql; ./configure; make; sudo make install | |
cd contrib; make; sudo make install | |
sudo adduser postgres | |
sudo mkdir /usr/local/pgsql/data | |
sudo chown postgres -R /usr/local/pgsql/data |
Bacon = require('baconjs') | |
Imm = require('immutable') | |
React = require('react') | |
window.Actions = | |
changeFirstName: new Bacon.Bus() | |
changeLastName: new Bacon.Bus() | |
changeCountry: new Bacon.Bus() | |
addCountryBird: new Bacon.Bus() | |
addFriend: new Bacon.Bus() |
/** | |
* K.jpg's OpenSimplex 2, smooth variant ("SuperSimplex") | |
* | |
* More language ports, as well as legacy 2014 OpenSimplex, can be found here: | |
* https://github.com/KdotJPG/OpenSimplex2 | |
*/ | |
public class OpenSimplex2S { | |
private static final long PRIME_X = 0x5205402B9270C86FL; |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
Magic words:
psql -U postgres
Some interesting flags (to see all, use -h
or --help
depending on your psql version):
-E
: will describe the underlaying queries of the \
commands (cool for learning!)-l
: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)check host localhost with address 127.0.0.1 | |
start "/sbin/start myapp" | |
stop "/sbin/stop myapp" | |
if failed port 3000 protocol HTTP | |
request / | |
with timeout 5 seconds | |
then restart |
// degree to radians constant | |
var rd = Math.PI / 180.0; | |
// 2d vector [x, y] library | |
var Vec2 = { | |
cacheSize: 64, | |
cache: [ ], | |
clear: function() { | |
this.cache = [ ]; | |
}, |
// total number of samples at each fragment | |
#define NUM_SAMPLES {{ numSamples }} | |
#define NUM_SPIRAL_TURNS {{ numSpiralTurns }} | |
#define USE_ACTUAL_NORMALS {{ useActualNormals }} | |
#define VARIATION {{ variation }} | |
uniform sampler2D sGBuffer; |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
// Suggestions from golang-nuts | |
// http://play.golang.org/p/Ctg3_AQisl |