http://www.generative-gestaltung.de/2/sketches/?01_P/P_2_2_5_01 witha slightly different algorithm.
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
| LATEST_VERSION=$(curl -s https://chromedriver.storage.googleapis.com/LATEST_RELEASE) && wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/$LATEST_VERSION/chromedriver_linux64.zip && sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/; |
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 firePointerEvent(el, eventName, x,y){ | |
| const ev = new MouseEvent(eventName, { | |
| clientX: x, clientY: y, bubbles: true, cancelable: true | |
| }); | |
| el.dispatchEvent(ev); | |
| } | |
| var relativePosition = APP.getNodePositionAsOffset("cards.ticket1.emptyTicket.buttonAdd") | |
| var canvas = document.getElementsByTagName("canvas")[0]; |
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
| { | |
| "extends": [ | |
| "eslint-config-react-app" | |
| ], | |
| "plugins": ["react", "import"], | |
| "rules": { | |
| "import/no-unresolved": "error" | |
| }, | |
| "settings": { | |
| "import/parsers": { |
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 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 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
| 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 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
| # 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 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
| <canvas id='canvas' width='400' height='400'></canvas> |
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
| <canvas id='canvas' width='800' height='800'></canvas> |
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 printHierarchy(node, padding="") { | |
| let newPadding = padding; | |
| if (node.name) { | |
| newPadding += " |"; | |
| console.log(`${padding}-${node.name}`); | |
| } | |
| node.children.forEach(child => printHierarchy(child, newPadding)); | |
| } |
NewerOlder