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
| //TODO: add cursor bg and rotate script. can't tell what's happening without visual | |
| let lastCoords = []; | |
| const handleDir = e => { | |
| let xDiff, yDiff, currCoords = [e.x, e.y]; | |
| if ( lastCoords.length !== 0 ){ | |
| xDiff = currCoords[0] - lastCoords[0]; | |
| yDiff = currCoords[1] - lastCoords[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 angle = null, | |
| step = 20, | |
| rate = 90; | |
| draw = () => { | |
| if (!angle) { | |
| angle = 0; | |
| } | |
| console.clear(); |
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 now, dt, | |
| rate = 0.5, | |
| last = performance.now(); | |
| function frame() { | |
| now = performance.now(); | |
| dt = (now - last) / 1000; // duration in seconds | |
| if(dt >= rate){ | |
| console.log("bing") | |
| last = now; |
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
| # Welcome to Sonic Pi v2.10 | |
| A = :A | |
| B = :B | |
| C = :C | |
| D = :D | |
| G = :G | |
| mainPattern = [ | |
| [B, 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
| f = function(needle,haystack,collect){ | |
| collection = []; | |
| haystack.filter(function(item){ | |
| if(typeof item === "string" && item.match(needle)!== null) | |
| collect += item; | |
| }) | |
| return collect; | |
| } |
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
| bison || flacc | |
| flex | |
| qt5-default | |
| libgtk-3-dev | |
| libpcap0.8-dev |
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 source = [{name: "Fitsum", race: "blk"},{name: "Alice", race: "wht"},{name: "Jen", race: "wht"},{name: "Kim", race: "blk"},{name: "Lee", race: "asn"}], | |
| target = []; | |
| function userExists(name, idx, oldArr) { | |
| return target.some(function(el) { | |
| return el.name === name; | |
| }); | |
| } | |
| function addUser(name, idx, newArr) { |
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
| # more to come | |
| #!/bin/bash | |
| #!/bin/bash | |
| function reba(){ | |
| #first arg is rebase branch | |
| count=1 | |
| for branch in "$@" | |
| do |
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
| [alias] | |
| lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all | |
| lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all |
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
| APP BOILER | |
| Entry Points | |
| Time | |
| check local storage (last || total visit(s)), | |
| check server/appstorage (last || total visit(s)) | |
| check TOD | |
| check DOW (work/school) | |
| check MOY (season general, available activities) |