gitflow | git |
---|---|
git flow init |
git init |
git commit --allow-empty -m "Initial commit" |
|
git checkout -b develop master |
This file contains hidden or 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
const fs = require('fs'); | |
let files = fs.readdirSync('.').filter((file) => { return file.includes('.json') && file !== 'db.json' }); | |
let concat={}; | |
files.forEach(function(file){ | |
let fileContent=fs.readFileSync(file, 'utf8'); | |
concat[file.split('.json')[0]]=JSON.parse(fileContent); | |
}) |
This file contains hidden or 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
import {Component, Pipe, PipeTransform} from 'angular2/core'; | |
import {CORE_DIRECTIVES, ngClass, NgClass, FORM_DIRECTIVES, Control, ControlGroup, FormBuilder, Validators} from 'angular2/common'; | |
@Component({ | |
selector: 'my-app', | |
templateUrl: 'mytemplate.html', | |
directives: [CORE_DIRECTIVES, FORM_DIRECTIVES], | |
styleUrls: ['style.css'] | |
}) | |
export class AppComponent { |
This file contains hidden or 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
<h1 class="shimmer">Some Shimmer Text</h1> | |
<style> | |
@import url('http://fonts.googleapis.com/css?family=Alegreya+Sans:300'); | |
body{ | |
background: #000; | |
} | |
.shimmer{ | |
/* styling stuff */ | |
font-family:"Alegreya Sans"; |
This file contains hidden or 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
img { | |
filter: blur(10px); | |
transform: scale(1.5); | |
overflow: hidden; | |
} |
This file contains hidden or 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
git rev-parse HEAD |
This file contains hidden or 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
parseFloat(number.toFixed(2)) |
This file contains hidden or 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
// Ported from Stefan Gustavson's java implementation | |
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf | |
// Read Stefan's excellent paper for details on how this code works. | |
// | |
// Sean McCullough [email protected] | |
/** | |
* You can pass in a random number generator object if you like. | |
* It is assumed to have a random() method. | |
*/ |
This file contains hidden or 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
import random | |
import math | |
from PIL import Image | |
""" | |
Extracted from http://gamedev.stackexchange.com/questions/23625/how-do-you-generate-tileable-perlin-noise | |
""" | |
perm = range(256) | |
random.shuffle(perm) | |
perm += perm |
i3 Window Manager |
---|
Open terminal: $mod+Enter |
Split window vertically: $mod+v command |
Split window horizontally: $mod+h command |
Change window focus: $mod+arrow-keys |
Move focused windows: $mod+Shift+arrow-keys |
Toggle splith/splitv: $mod+e |
Switch to stacking mode: $mod+s |
Switch to tabbed mode: $mod+w |