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
# .profile written by Nils Neumann / [email protected] | |
# Cli Colors | |
export CLICOLOR=1 | |
# use yellow for dir’s | |
export LSCOLORS=dxfxcxdxbxegedabagacad | |
# Shell prompt based on the Solarized Dark theme. | |
# Screenshot: http://i.imgur.com/EkEtphC.png |
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
var Singleton = (function () { | |
var instance; | |
function createInstance() { | |
var object = new Object("I am the instance"); | |
return object; | |
} | |
return { | |
getInstance: function () { |
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
{ | |
"plugins": [ | |
"should-promised", | |
"no-unsafe-chars", | |
"filesize" | |
], | |
"rules": { | |
// Strict mode | |
"strict": 1, |
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
// Do | |
strictEqual( | |
list.getItems().length, | |
expectedLength, | |
"List has expected amount of items" | |
); | |
// Don't |
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
// Schlechter nachvollziebare trace-ausgaben im falle eines throw's: | |
someAjaxStuff( | |
function () { | |
console.log("Its working!"); | |
}, | |
function () { | |
console.log("Damn! :( "); | |
} | |
); |
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
#!/bin/sh | |
echo "gf-ff $1" | |
if [[ $# -lt 1 ]]; then | |
echo "––––––––––––––––" | |
echo "USAGE: gf-ff [feature]" | |
echo "––––––––––––––––" | |
else | |
DEVELOPE_BRANCH=$(git config gitflow.branch.develop) | |
FEATURE_BRANCH=$(git config gitflow.prefix.feature)$1 |
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
function rotateBase64Image90Degree(base64data) { | |
var canvas = document.getElementById("c"); | |
var ctx = canvas.getContext("2d"); | |
var image = new Image(); | |
image.src = base64data; | |
image.onload = function() { | |
canvas.width = image.height; | |
canvas.height = image.width; | |
ctx.rotate(90 * Math.PI / 180); |
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
^([ ]*)#( [a-z,A-Z,0-9,üöä, ,":.'()->?`\[\]]*) |
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
{ | |
"ecmaFeatures": {}, | |
"parser": "espree", | |
"env": { | |
"browser": false, | |
"node": false, | |
"amd": false, | |
"mocha": false, | |
"jasmine": false | |
}, |
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
# Get an older version of node | |
cd /usr/local | |
brew versions node | |
git checkout 51dbf0b Library/Formula/node.rb # If you e.g. want version 0.10.31 | |
brew install node | |
# Get an older version of npm | |
npm install -g [email protected] |