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
Show hidden characters
| { | |
| // "font_face": "Anonymous Pro", | |
| // "font_face": "Anonymous Pro Bold", | |
| // "font_face": "Anonymous Pro Minus", | |
| // "font_face": "Anonymous Pro Minus Bold", | |
| // "font_face": "Andale Mono", | |
| // "font_face": "AverageMono", | |
| // "font_face": "AverageMono Bold", | |
| // "font_face": "Consola Mono", | |
| // "font_face": "Consola Mono Bold", |
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
| ccorwin at ccorwin-ltm in ~/Library/Mobile Documents/com~apple~CloudDocs/Workspaces/expression-builder-react on sync-lightning-styles-with-fuelux-version | |
| $ new sync-lightning-styles-with-fuelux-version--2 | |
| Configuring remote(s), if any... | |
| #################################################################################### | |
| Creating new branch: `sync-lightning-styles-with-fuelux-version--2` | |
| #################################################################################### |
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
| #sSQL = (' | |
| LOCK TABLE '+#cattable+' WRITE; | |
| -- 1 | |
| SELECT @myLeft := lft, @myRight := rgt, @myWidth := rgt - lft + 1 FROM '+#cattable+' WHERE id = '+#id2+'; | |
| -- 2 | |
| UPDATE '+#cattable+' SET rgt = (rgt*-1), lft = (lft*-1) WHERE lft BETWEEN @myLeft AND @myRight; | |
| -- 3 | |
| UPDATE '+#cattable+' SET rgt = rgt - @myWidth WHERE rgt > @myRight; | |
| UPDATE '+#cattable+' SET lft = lft - @myWidth WHERE lft > @myRight; | |
| -- 4a |
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
| local('sSQL' = ( | |
| ' | |
| SELECT node.id, node.name, (COUNT(parent.id) - (sub_tree.depth + 1)) AS depth, node.lft, node.rgt | |
| FROM '+#cattable+' AS node, | |
| '+#cattable+' AS parent, | |
| '+#cattable+' AS sub_parent, | |
| ( | |
| SELECT node.name, (COUNT(parent.id) - 1) AS depth | |
| FROM '+#cattable+' AS node, | |
| '+#cattable+' AS parent |
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
| #!/usr/bin/env bash | |
| pbscript="/Users/ccorwin/Google Drive/Documents/pasteboard.html" | |
| touch "${pbscript}" | |
| pbpaste > "${pbscript}" | |
| highlight -O rtf -t 2 -K 11 -k 'Source Code Pro' --syntax 'html' "${pbscript}" | pbcopy |
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
| #!/usr/bin/env bash | |
| pbscript="/Users/ccorwin/Google Drive/Documents/pasteboard.js" | |
| touch "${pbscript}" | |
| pbpaste > "${pbscript}" | |
| highlight -O rtf -t 2 -K 11 -k 'Source Code Pro' --syntax 'js' "${pbscript}" | pbcopy |
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
| #!/usr/bin/env bash | |
| pbscript="/Users/ccorwin/Google Drive/Documents/pasteboard.sh" | |
| touch "${pbscript}" | |
| pbpaste > "${pbscript}" | |
| highlight -O rtf -t 2 -K 11 -k 'Source Code Pro' --syntax 'Bash' "${pbscript}" | pbcopy |
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 throttle(fn, threshhold, scope) { | |
| threshhold || (threshhold = 250); | |
| var last, | |
| deferTimer; | |
| return function () { | |
| var context = scope || this; | |
| var now = +new Date, | |
| args = arguments; | |
| if (last && now < last + threshhold) { |