Skip to content

Instantly share code, notes, and snippets.

View marknorgren's full-sized avatar

Mark Norgren marknorgren

View GitHub Profile
@marknorgren
marknorgren / strandtest.ino
Created August 16, 2014 14:47
LPD8806 strandtest - 52 LEDs
#include "LPD8806.h"
#include "SPI.h" // Comment out this line if using Trinket or Gemma
#ifdef __AVR_ATtiny85__
#include <avr/power.h>
#endif
// Example to control LPD8806-based RGB LED Modules in a strip
/*****************************************************************************/
<html>
<head>
<script src="http://cdn.binaryjs.com/0/binary.js"></script>
<script>
var hexChar = ["0", "1", "2", "3", "4", "5", "6", "7","8", "9", "A", "B", "C", "D", "E", "F"];
function byteToHex(b) {
return hexChar[(b >> 4) & 0x0f] + hexChar[b & 0x0f];
}
@marknorgren
marknorgren / boxstarterDevBox.txt
Last active August 29, 2015 14:04
boxstarter - devBox
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar
Set-TaskbarOptions -Size Small -Lock -Dock Top
cinst fiddler4
cinst git-credential-winstore
cinst console-devel
cinst SublimeText3
cinst notepadplusplus
cinst poshgit
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chat</title>
<link rel="stylesheet" href="normalize.css">
</head>
<body>
<style>
td {

Introduction to Web Development

Schedule for Day 1

Time (CDT) Topic
8:30 Tech Check and Hello
9:00 Your coding toolbox: the Browser and Sublime Text 2/3
9:30 The basics of the web: it’s more than just tubes
10:00 HTML – What is markup, why do we have it, and the DOM
<--
![Chrome Icon](images/chrome.png 'Chrome')
<img src="images/chrome.png" alt="chrome icon" style="height:50px;">
-->
# checkout <SVN REVISION> and newer from SVN convert to git
git svn clone -r <SVN REVISION>:HEAD <SVN REPO URL> <path to git repo>
@marknorgren
marknorgren / switch-beta-Xcode.sh
Last active August 29, 2015 14:02
Xcode6-Beta
# Setup alias for `swift`
alias swift="/Applications/Xcode6-Beta2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift"
#Edit - preferred method is above, leaving old method below.
#Xcode 6 Beta 1
sudo xcode-select -switch /Applications/Xcode6-Beta.app/Contents/Developer
#Xcode 6 Beta 2
sudo xcode-select -switch /Applications/Xcode6-Beta2.app/Contents/Developer
@marknorgren
marknorgren / wwdc-2014-video-download.sh
Last active August 29, 2015 14:02
Download HD video and PDFs
# PDFs
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*.pdf.*dl=1">PDF' | sed -e 's/\?dl=1">PDF//g' | xargs -n1 wget -N
# HD Videos
# via: https://twitter.com/merowing_/status/474071685826883584
curl https://developer.apple.com/videos/wwdc/2014/ | grep -iIoh 'http.*._hd_.*dl=1">HD' | sed -e 's/\?dl=1">HD//g' | xargs -n1 wget -N