http://www.generative-gestaltung.de/2/sketches/?01_P/P_2_2_5_01 witha slightly different algorithm.
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
branch=`git symbolic-ref HEAD` | |
if [ "$branch" = "refs/heads/master" ]; then | |
echo "Direct commits to the branch master are not allowed" | |
exit 1 | |
fi | |
testLeftOvers=`git diff --staged test/**/* | grep '^+' | grep '.only\|.skip'` | |
if [ -n "$testLeftOvers" ]; then |
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 | |
# An example hook script to verify what is about to be pushed. Called by "git | |
# push" after it has checked the remote status, but before anything has been | |
# pushed. If this script exits with a non-zero status nothing will be pushed. | |
# | |
# This hook is called with the following parameters: | |
# | |
# $1 -- Name of the remote to which the push is being done | |
# $2 -- URL to which the push is being done |
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
function printHierarchy(node, padding="") { | |
let newPadding = padding; | |
if (node.name) { | |
newPadding += " |"; | |
console.log(`${padding}-${node.name}`); | |
} | |
node.children.forEach(child => printHierarchy(child, newPadding)); | |
} |
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
<canvas id='canvas' width='800' height='800'></canvas> |
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
<canvas id='canvas' width='400' height='400'></canvas> |
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
# delete node_modules for in all projects (dirs) | |
find ./ -name "node_modules" -maxdepth 2 -exec rm -rf {} \; | |
##GIT | |
#remove all merged local branches | |
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d |
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
class Crosshair { | |
constructor(size = 3, color = "red") { | |
this.element = document.createElement("span"); | |
this.element.textContent = "+"; | |
this.style = this.element.style; | |
this.style.color = color; | |
this.style.fontFamily = "Arial"; | |
this.style.fontSize = `${size}em`; | |
this.style.fontWeight = ""; |
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
function printHierarchy(node, padding="") { | |
let newPadding = padding; | |
if (node.name) { | |
newPadding += " |"; | |
console.log(`${padding}-${node.name}`); | |
} | |
node.children.forEach(child => printHierarchy(child, newPadding)); | |
} |
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
{ | |
"extends": [ | |
"eslint-config-react-app" | |
], | |
"plugins": ["react", "import"], | |
"rules": { | |
"import/no-unresolved": "error" | |
}, | |
"settings": { | |
"import/parsers": { |
OlderNewer