Skip to content

Instantly share code, notes, and snippets.

@banterweb
banterweb / Pretty Canvas Squares.markdown
Created November 1, 2015 05:43
Pretty Canvas Squares
@banterweb
banterweb / node-and-npm-in-30-seconds.sh
Created August 7, 2016 02:42 — forked from isaacs/node-and-npm-in-30-seconds.sh
Use one of these techniques to install node and npm without having to sudo. Discussed in more detail at http://joyeur.com/2010/12/10/installing-node-and-npm/ Note: npm >=0.3 is *safer* when using sudo.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@banterweb
banterweb / MusicScooper_.idea_.name
Created August 7, 2016 03:46 — forked from lazarenkoal/MusicScooper_.idea_.name
App for downloading music from VK by albums
MusicScooper
@banterweb
banterweb / Information Integration.md
Created August 7, 2016 04:09 — forked from drjwbaker/Information Integration.md
109 Information Integration: Mash-ups, API’s and The Semantic Web, Digital Scholarship Training Programme, British Library, 11 March 2014

###109 Information Integration: Mash-ups, API’s and The Semantic Web, Digital Scholarship Training Programme, British Library, 11 March 2014

[NB: these notes were taken live. They will be partial, incomplete and contain errors]

Led by Owen Stephens @ostephens

https://gist.github.com/drjwbaker/9483198

In our 'Information Integration: Mash-ups, API’s and The Semantic Web' course today hoping to get a refresh of the basics from @ostephens.

— James Baker (@j_w_baker) March 11, 2014
@banterweb
banterweb / workflow.md
Created August 7, 2016 04:10 — forked from joshbeitler/workflow.md
Ultimate Development Environment

Services

  • GitHub - for hosting
  • CircleCI - for continuous integration and deployment
  • Runscope - for API testing
  • Slack - communication
  • Trello - kanban
  • GitHub Issues - issue tracking
  • Dropbox - binary resources, file sharing
  • Typekit - for fonts
@banterweb
banterweb / gist:eb7b1ee7d6ecfbd6a89a78709cdc4cfe
Created August 7, 2016 04:11 — forked from cb372/gist:1d7b1abbbf0c643f2903
Using Elasticsearch as a Spark data source

Install the essentials.

$ brew update && brew install elasticsearch && brew install apache-spark

Start ES.

$ elasticsearch

http://plist.tv MVP ROADMAP

(MVP – Minimal Viable Product)

Overview / Vision Statement:

Plist.tv is a place for people to EASILLY watch and create INTERESTING music video collections. People create playlists. When people are listening and watching a playlist, it becomes a channel, that other people can join. Audio and video tracks are dj’ed independantly. People can chat with eachother about the content.

It pulls and mixes elements from

  • Netflix (Home Page look and feel)
mb_spotify.js:
// ==UserScript==
// @name MusicBrainz Spotify Integration
// @description
// @version 2014-05-18
// @author -
// @namespace http://critiquebrainz.org
//
// @include *://musicbrainz.org/release-group/*
@banterweb
banterweb / gist:6c6286868c86b78d6f27631647cc1e6c
Created August 7, 2016 04:15 — forked from afeld/gist:4952991
good APIs for mashups
@banterweb
banterweb / gitcheats.txt
Created August 7, 2016 04:30 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# get most modified files and counts
git log --all -M -C --name-only --format='format:' "$@" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print "count\tfile"} {print $1 "\t" $2}' | sort -g
# Locally checkout all remote branches of a repository
git branch -r | cut -d '/' -f2 | grep -Ev '( |master)' | xargs -Ibranch git checkout -b branch origin/branch
# Open current Git repository URL