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
/* theverge.com */ | |
.hidden:has(.m-ad), | |
.duet--content-cards--content-card:has([aria-label="Copy link"]) { | |
display: none !important; | |
} | |
.font-polysans { | |
font-family: Helvetica, Arial, sans-serif !important; | |
} |
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
# depends on eyeD3, ffmpeg, and jq (`brew install eye-d3 ffmpeg jq`) | |
# run when in the directory with unarchived tracks | |
ffmpeg \ | |
-f concat \ | |
-safe 0 \ | |
-i (find (pwd) -name '*.mp3' | sed -e "s/\(.*\)/file '\1'/" | sort | psub) \ | |
-c copy \ | |
(basename -s " - Track 001.mp3" (find . -iname '* - Track 001.mp3'))".mp3" |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<title>test apple-touch-icon</title> | |
<canvas id=c width=180 height=180 style="border: 1px solid black"></canvas> | |
<div id=t></div> | |
<script> | |
const ctx = window.c.getContext('2d') | |
ctx.fillStyle = `rgb(${Math.floor(Math.random() * 256)}, ${Math.floor(Math.random() * 256)}, ${Math.floor(Math.random() * 256)})`; | |
ctx.fillRect(0, 0, 180, 180); |
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
#!/usr/bin/env osascript -l JavaScript | |
const help = ` | |
Export Things 3 area/project into Markdown format and upload it to GitHub Gist | |
./thingist.js --area <area-name> | |
./thingist.js --project <project-name> | |
./thingist.js --project <project-name> --token <github-token> --gist <gist-id> | |
Options: |
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
{ | |
"name": "yarn-flags-order", | |
"version": "1.0.0", | |
"main": "index.js", | |
"license": "MIT", | |
"scripts": { | |
"echo": "echo $NODE_ENV" | |
} | |
} |
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
var __extends = (this && this.__extends) || function (d, b) { | |
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
function __() { this.constructor = d; } | |
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | |
}; | |
var A = (function () { | |
function A(cb) { | |
this.cb = cb; | |
} | |
return A; |
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
Show hidden characters
{ | |
"presets": ["es2015", "react"] | |
} |
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
var Client = require('castv2-client').Client; | |
var Application = require('castv2-client').Application; | |
var util = require('util'); | |
var MyApp = function() { | |
Application.apply(this, arguments); | |
}; | |
MyApp.APP_ID = 'D60F290C'; | |
util.inherits(MyApp, Application); |
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
// https://babeljs.io/repl/#?evaluate=true | |
function getDiff(that, other) { | |
if (that == other) { return {} } | |
if (_.isEmpty(other)) { | |
return {all: true} | |
} | |
if (_.isObject(that)) { |
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
_ = require 'lodash' | |
{addons: {cloneWithProps}} = require 'react' | |
echoEvent = (rxId, eventStream, eventName, ev) -> | |
eventStream.onNext { | |
ev | |
rxId | |
type: eventName | |
} |
NewerOlder