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
const dom = require('sketch/dom'); | |
const ui = require('sketch/ui'); | |
function parse(string, settings_assets) { | |
string.split('\n').forEach((line) => { | |
let pos = line.indexOf('='); | |
if (pos >= 0) { | |
settings_assets[line.substr(0, pos)] = line.substr(pos + 1) | |
} |
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
CHAPTER SEVEN |
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 escapeRegExp(str) { | |
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1"); | |
} | |
function replaceAll(str, find, replace) { | |
return str.replace(new RegExp(escapeRegExp(find), 'g'), replace); | |
} | |
let filenameRaw = '0052___ID=message-is-being-dragged___DATA=use-slide-transition__slide-transition_auto-advance__slide-transition-timing--fast___NOTES=Do-not-forget-to-move-your-mouse__The-next-five-steps-auto-advance~~so~~no-need-to-click-for-a-while.svg' |
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
// Navigate to http://onlinetonegenerator.com/dtmf.html | |
// Open DevTools - Console | |
// Paste the Code | |
// Press Enter | |
// Provide the number of milliseconds the default tone should hold for | |
let short = 250; | |
let long = short * 2; | |
function sleep(ms) { |
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
### Keybase proof | |
I hereby claim: | |
* I am chriscorwin on github. | |
* I am chris_corwin (https://keybase.io/chris_corwin) on keybase. | |
* I have a public key ASDje-EtG_HgwpJIvs9O1raZYWPdVJvXDSqFq4qkFgtnHwo | |
To claim this, I am signing this object: |
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/bash | |
echo -n "Enter your name and press [ENTER]: " | |
read name | |
echo "Name is: " $name; |
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
ccorwin at ccorwin-ltm in ~ | |
$ manprev tldr | |
No manual entry for tldr |
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/bash | |
## /* | |
# @usage LaunchAgentMgr <command> | |
# | |
# @description | |
# This script manages LaunchAgents for users running OS X. | |
# description@ | |
# | |
# @options | |
# disable If the given LaunchAgent is currently loaded into launchctl, it will be |
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
const year = today.getFullYear(); | |
const month = today.getMonth(); | |
const day = today.getDate(); | |
const THE_HECKING_FUTURRRRRRRRE = new Date(year + 42, month, day); |