Skip to content

Instantly share code, notes, and snippets.

View c-dante's full-sized avatar
🌱
\o/

Dante c-dante

🌱
\o/
View GitHub Profile
@c-dante
c-dante / flyd-ends.js
Last active April 21, 2018 03:49
Can we talk about the end stream?
/*
A
/ \
B C
\ /
D
*/
var a = flyd.stream();
var b = a.map((x) => x * 2);
@c-dante
c-dante / keybase.md
Last active December 12, 2017 18:58
Provisioning from amp

Keybase proof

I hereby claim:

  • I am c-dante on github.
  • I am cdante (https://keybase.io/cdante) on keybase.
  • I have a public key ASD1LYG2qe0UBtk7kfyu4MGGfqZSx4BolyV1tofsg9CJgQo

To claim this, I am signing this object:

@c-dante
c-dante / default-install.sh
Last active June 12, 2018 21:29
Dev build packages
pacaur -S --no-confirm adobe-source-code-pro-fonts adobe-source-sans-pro-fonts adobe-source-serif-pro-fonts aws-cli avahi cmake docker docker-compose docker-machine colordiff google-chrome-dev gvim gzip iputils lm_sensors lsof reflector sbt scala screen terminator the_silver_searcher vim-youcompleteme-git vcsh wget zsh
@c-dante
c-dante / day_0.md
Last active November 25, 2018 21:02
Phaser 3 learning

Did a ton of discovery on JS game engines -- settled on photonstorm/phaser which had a major rewrite and v3 release this year (2018).

Because it's a new version, there's not a ton of easily accessible "learning" material, or if there is, it was more digging than I'd want.

Resources

@c-dante
c-dante / cloudSettings
Last active January 21, 2019 17:01
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-01-21T17:01:35.130Z","extensionVersion":"v3.2.4"}
const newNode = ({
children = [],
parent = undefined,
renderProps
}) => ({ children, parent, renderProps });
const attachChild = (parent, newChild) => {
parent.children.push(newChild);
newChild.parent = parent;
};
@c-dante
c-dante / prune-git.sh
Created March 8, 2023 18:15
Prune local git branches tracking deleted upstreams
#!/bin/bash
set -Eeuxo pipefail
# Update everything, pruning missing upstream first
# then list branches with upstreams to capture gone
# grep fitlers for the gone branches
# awk just the full branch name
# xargs offers to delete the branch
git fetch --prune --all && git branch -vv | grep ": gone]" | awk '{ print $1 }' | xargs -r -n 1 -p git branch -D