Skip to content

Instantly share code, notes, and snippets.

View chriscorwin's full-sized avatar

Chris Corwin chriscorwin

View GitHub Profile
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)
}
@chriscorwin
chriscorwin / demuxe-magick-flows---custom-button-group-settings---for--golden-chaos-for-better-touch-tool-macbook-pro-touch.json
Last active May 3, 2019 14:36
Demuxe Magick Flows Custom Button Group Settings for Golden Chaos for Better Touch Tool MacBook Pro (touch)
{
"BTTTouchBarButtonName" : "Magick Flows",
"BTTTriggerType" : 630,
"BTTTriggerTypeDescription" : "Group",
"BTTTriggerClass" : "BTTTriggerTypeTouchBar",
"BTTPredefinedActionType" : -1,
"BTTPredefinedActionName" : "No Action",
"BTTEnabled2" : 1,
"BTTUUID" : "4A966652-DFF5-4CFD-8906-5C41A6E2118E",
"BTTEnabled" : 1,
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'
// 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) {
### 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:
#!/bin/bash
echo -n "Enter your name and press [ENTER]: "
read name
echo "Name is: " $name;
ccorwin at ccorwin-ltm in ~
$ manprev tldr
No manual entry for tldr
#!/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
const year = today.getFullYear();
const month = today.getMonth();
const day = today.getDate();
const THE_HECKING_FUTURRRRRRRRE = new Date(year + 42, month, day);