Skip to content

Instantly share code, notes, and snippets.

View marknorgren's full-sized avatar

Mark Norgren marknorgren

View GitHub Profile
@marknorgren
marknorgren / mythbuntu.md
Created November 14, 2014 04:44
mythubntu flash and sound issues
@marknorgren
marknorgren / -34018_KeychainError.md
Last active August 29, 2015 14:08
-34018 Keychain Error
@marknorgren
marknorgren / drive.py
Last active August 29, 2015 14:07 — forked from basuke/drive.py
#
# python drive.py "origin" ["waypoint" ... ] "destination"
#
# i.e. python drive.py "Union Square, San Francisco" "Ferry Building, San Francisco" 'Bay Bridge' SFO
import sys, json, urllib2, md5, os.path, pprint
from math import radians, sin, cos, atan2, pow, sqrt
from urllib import quote_plus
from xml.sax.saxutils import escape
from optparse import OptionParser
@marknorgren
marknorgren / bitbucket-vs-github.md
Created October 10, 2014 18:18
bitbucket vs. github markdown

##Day 2: Closure exercises

  1. Write a function, nonsense that takes an input string. This function contains another function, blab which alerts string and is immediately called inside the function nonsense. blab should look like this inside of the nonsense function:

     var blab = function(){
       alert(string);
     };
  2. In your function, nonsense, change the immediate call to a setTimeout so that the call to blab comes after 2 seconds. The blab function itself should stay the same as before.

git svn fetch
git svn rebase
git push origin master
@marknorgren
marknorgren / itms-services-example.md
Last active August 29, 2015 14:07
itms-services example

Click Here To Install

Click Here To Install

itms-services://?action=download-manifest&url=https://httpbin.org/

@marknorgren
marknorgren / todo.md
Created September 23, 2014 21:49
DTN Portal Mobile
  • portrait only
@marknorgren
marknorgren / example-new-ping.ino
Last active August 29, 2015 14:06
Arduino Sonar Distance
// ---------------------------------------------------------------------------
// Example NewPing library sketch that does a ping about 20 times per second.
// ---------------------------------------------------------------------------
#include <NewPing.h>
// LED Colors
int ledcolor = 0;
int a = 1000; //this sets how long the stays one color for
@marknorgren
marknorgren / destructuringArrays.js
Last active August 29, 2015 14:06
FrontendMaststers - JS.Next ES 6 Examples
function log(logStatement) {
console.log(logStatement);
}
var nums = [1, 2, 3, 4];
doSomething(nums);
function doSomething([first, second, ...others]){
log(first); //logs 1
log(second); //logs 2
@marknorgren
marknorgren / md5Directory.sh
Created August 18, 2014 17:47
Recursively md5 files in directory
#via: http://superuser.com/a/72787
md5 -q <(find . -type f 2>/dev/null | xargs md5 -q | sort)