Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View adunkman's full-sized avatar

Andrew Dunkman (he/him) adunkman

View GitHub Profile
@adunkman
adunkman / proposal.md
Created May 4, 2012 11:50
StrangeLoop Session Proposal

#Title TBD

###Abstract How many languages and APIs can we squeeze into an hour? Let's take a tour through as many popular REST APIs as we can by writing 5 minute applications in a variety of languages (JavaScript, Ruby, Python, C#, etc). We'll discuss some of the finer points of REST API design and why some languages are naturally better for consuming web services than others.

Talk Type: Survey
Track: /etc
Video Approval: Yes
Talk Duration: 50 minutes
@adunkman
adunkman / nginx.conf
Created May 14, 2012 21:58
Load balancing across applications with nginx
events {
worker_connections 1024;
}
http {
upstream appname {
server 127.0.0.1:3000;
server 127.0.0.1:3001;
}
@adunkman
adunkman / README.md
Created August 20, 2012 00:25
Debugging Node.js Applications

Packages reviewed

  1. node-inspector
  2. node-webkit-agent
  3. node-codein

node-inspector

Setup

@adunkman
adunkman / gist:4164506
Created November 28, 2012 21:09
node-v0.8.11-x64.msi.log
=== Logging started: 11/28/2012 15:06:17 ===
Action start 15:06:17: INSTALL.
Action start 15:06:17: FindRelatedProducts.
Action ended 15:06:17: FindRelatedProducts. Return value 1.
Action start 15:06:17: LaunchConditions.
Action ended 15:06:17: LaunchConditions. Return value 1.
Action start 15:06:17: ValidateProductID.
Action ended 15:06:17: ValidateProductID. Return value 1.
Action start 15:06:17: CostInitialize.
Action ended 15:06:17: CostInitialize. Return value 1.
@adunkman
adunkman / kill-core-audio-osx.sh
Created February 1, 2013 19:37
Select an Airplay device for sound output from OS X and have it immediately reset to the default device? Kill coreaudiod.
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`
@adunkman
adunkman / topics
Created March 20, 2013 00:15 — forked from dynajoe/topics
# Next Meetup: Tuesday, january 15
# Topics:
- connect/express middleware - 3
- non-http networks - 8 - DUN DUN DUN
- Torrent
- UDP
- Multicast (Frank)
- XMPP (XTENSIBLE MESSAGING AND PRESENCE PROTOCOL)
- Serial
@adunkman
adunkman / nodekc.md
Last active December 16, 2015 07:49

Next Meetup: Tuesday, June 18

Topics:

  • Cross-meetup meeting (game group?) - 6
  • Debugging issues with node.js (including benchmarking) - 6
  • gotcha's in node.js - 7
  • native bindings - 1
  • Socket frameworks (socket stream / meteor / derby) - 5
  • node.js require("domain") and so can you - 4
  • Typescript - 0
@adunkman
adunkman / gist:5631298
Last active December 17, 2015 15:19
Execute git status on each directory that is a git repository in the current directory.
ls -dx1 */.git/ | sed 's/\(.*\)\/\.git\//echo \1: \&\& cd \1 \&\& git status --porcelain \&\& cd ..; /' | bash

Taken from element.getBoundingClientRect MDN documentation:

For cross-browser compatibility, use window.pageXOffset and window.pageYOffset instead of window.scrollX and window.scrollY, except use (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.ScrollLeft == 'number' ? t : document.body).ScrollLeft and (((t = document.documentElement) || (t = document.body.parentNode)) && typeof t.ScrollTop == 'number' ? t : document.body).ScrollTop when window.pageXOffset and window.pageYOffset (and window.pageXOffset and window.pageYOffset) are undefined.

Oye.

Ward 1

  • Adams Morgan
    • Named after two schools, Adams (a segregated black school) and Morgan (a segregated white school)
    • Main commercial district is along 18th St NW
    • Adams Morgan Day Festival is held annually on the Second Sunday of September
    • Farmer's market on Saturdays
  • Columbia Heights
  • Howard University
  • Kalorama