Skip to content

Instantly share code, notes, and snippets.

View meandavejustice's full-sized avatar

Dave Justice meandavejustice

View GitHub Profile
│20:35:14 +chrisdickinson | i'd love to see a podcast that's like "pimp my ride" but instead │
│ | some gives up ownership of their github repo for a weekend │
│20:36:23 +chrisdickinson | and they come back and there's scala files in it, and kind of a │
│ | lot of svg, and react has been integrated with the project │
│ | regardless of whether the project actually needs react. |
function _base64toArrayBuffer(base64) {
var binary_string = window.atob(base64);
var len = binary_string.length;
var bytes = new Uint8Array( len );
for (var i = 0; i < len; i++) {
var ascii = binary_string.charCodeAt(i);
bytes[i] = ascii;
}
return bytes.buffer;
}
@meandavejustice
meandavejustice / ideas.md
Last active August 29, 2015 14:06
Project Ideas for hackers

Project Ideas for Hackers

Goals

This resource is meant to serve to different types of people:

  • Someone with a lot of ideas and not enough time.
  • Someone motivated to create but unsure of what they want to build or the right direction to get started.

Many of us have lots of ideas for software we would really like to exist. But don't always have the time to build them ourselves. We all also have times where we want to create

@meandavejustice
meandavejustice / description.txt
Last active August 29, 2015 14:05
s3 streaming upload issue UGH
01:18:45 +JSON_voorhees | I basically make two requests one is a wav file, one is an image. │
| The images uploads successfully and the wav file mostly fails. │
01:19:29 +JSON_voorhees | Every once in a while it will successfully upload like two minutes │
| later, but with the content-type of image/png │
01:19:49 +JSON_voorhees | Which leads me to believe I am basically "Crossing the streams" if │
| you will.
var levelup = require('level')
var db = levelup('./db', {valueEncoding: 'json'})
var getStations = require('./stations')
var getFeed = require('./feed')
var stationFile = 'podcast_directory.xml';
getStations(stationFile, function(err, stations) {
if (err) console.log('ERR: putting getting stations')
db.put('stations', stations, function (err) {
;; mplayer on arch linux skipping issue
(unless (package-installed-p 'emms)
(package-install 'emms))
(require 'emms)
(emms-all)
(emms-default-players)
var hb = require('handlebars');
var marked = require('marked');
var ls = require('ls-stream');
var fs = require('fs');
var path = require('path');
marked.setOptions({
gfm: true,
highlight: function (code) {
return require('highlight.js').highlightAuto(code).value;
(322/322) checking for file conflicts
error: failed to commit transaction (conflicting files)
nodejs: /usr/share/man/man5/package.json.5 exists in filesystem
nodejs: /usr/share/man/man7/removing-npm.7 exists in filesystem
nodejs: /usr/share/man/man7/semver.7 exists in filesystem
Errors occurred, no packages were upgraded.
@meandavejustice
meandavejustice / yo.sh
Created July 15, 2014 06:09
use responsibly...
#!/bin/bash
if [ ! -t 0 ]; then
user=/dev/stdin
elif [ $1 ]; then
user=$1
else
echo "Usage: $1 [username <string>] $2 [-m msg <string>]" 1>&2; exit 1;
fi

Keybase proof

I hereby claim:

  • I am meandavejustice on github.
  • I am meandave (https://keybase.io/meandave) on keybase.
  • I have a public key whose fingerprint is 4A3B DEEF A86E 76EC FBE1 5DCB CBEB 3995 DF07 F31B

To claim this, I am signing this object: