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
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
#!/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
// 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
// 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
{ | |
"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
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
# .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
#!/bin/sh | |
# Configure homebrew permissions to allow multiple users on MAC OSX. | |
# Any user from the admin group will be able to manage the homebrew and cask installation on the machine. | |
# allow admins to manage homebrew's local install directory | |
chgrp -R admin /usr/local | |
chmod -R g+w /usr/local | |
# allow admins to homebrew's local cache of formulae and source files | |
chgrp -R admin /Library/Caches/Homebrew |
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
# Your init script | |
# | |
# Atom will evaluate this file each time a new window is opened. It is run | |
# after packages are loaded/activated and after the previous editor state | |
# has been restored. | |
# | |
# An example hack to log to the console when each text editor is saved. | |
# | |
# atom.workspace.observeTextEditors (editor) -> | |
# editor.onDidSave -> |