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 | |
find . -name '*.wav' -print0 | xargs -I{} --null cp -u {} ../target_folder |
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
find . | grep -F -f filelist.txt | xargs cp -t /targetdir |
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
import parse, { Options } from "csv-parse"; | |
export function parseAsync(csv: string, options: Options) { | |
return new Promise<any[]>((resolve, reject) => { | |
parse(csv, options, (err, output) => { | |
if (err) { | |
return reject(err) | |
} | |
resolve(output) |
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 johnniehard on github. | |
* I am johnniehard (https://keybase.io/johnniehard) on keybase. | |
* I have a public key ASDjD47Af3YTeb84-b-55Ft4ssJjeXpP7641KEAAJUaXkAo | |
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
cat popular_searches.json | jq '[.[] | {search} | map(select(length >= 4)) | .[0] | select(. != null)]' > popular_searches_len_gte_4.json |
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
color | comment | |
---|---|---|
salmon | ||
tomato | ||
orange | ||
peachpuff | Questionable? It has peach, but wat's a puff? | |
lime | ||
olive | ||
lavender | Questionable. | |
plum | ||
honeydew |
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
create table "magnus-etuna".trees as | |
select fid, center as geom, radius as crownRadius from "magnus-etuna"."tree-polygons", ST_MinimumBoundingRadius(geom) as geom; |
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
dokku apps:create hasura | |
dokku domains:add hasura hasura.my.domain.com | |
dokku postgres:create hasura-db | |
dokku postgres:link hasura-db hasura | |
dokku config:set hasura HASURA_GRAPHQL_DATABASE_URL="<info from above command>" HASURA_GRAPHQL_ADMIN_SECRET="blahblah" HASURA_GRAPHQL_ENABLE_CONSOLE="true" | |
dokku proxy:ports-set hasura http:80:8080 | |
docker pull hasura/graphql-engine | |
docker tag hasura/graphql-engine dokku/hasura | |
dokku tags:deploy hasura | |
dokku letsencrypt hasura |
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
import useSketch from "."; | |
export default function TestSketch() { | |
const sketch = useSketch(s => { | |
s.setup = () => { | |
s.createCanvas(800, 600) | |
} |
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 runTaskList() { | |
//1. task local type-EXPORT_FEATURES awaiting-user-config | |
//2. task local type-EXPORT_IMAGE awaiting-user-config | |
var tasklist = document.getElementsByClassName('awaiting-user-config'); | |
for (var i = 0; i < tasklist.length; i++) | |
tasklist[i].children[2].click(); | |
} | |
// confirmAll(); | |
function confirmAll() { | |
var ok = document.getElementsByClassName('goog-buttonset-default goog-buttonset-action'); |
NewerOlder