Skip to content

Instantly share code, notes, and snippets.

View lroggendorff's full-sized avatar

Lance Roggendorff lroggendorff

View GitHub Profile
# What follows is two commands run on my Mac whilst connected to my corporate VPN
# Domain names and IP addresses masked to protect the innocent (I guess)
$ nslookup somedomain.com
Server: ##.##.##.##
Address: ##.##.##.##
Non-authoritative answer:
Name: somedomain.com
Address: ##.##.##.##
<script type="text/javascript" src="//www.hellobar.com/hellobar.js"></script>
<script type="text/javascript">
new HelloBar(1,9126);
</script>
<noscript>Help The Victims of the 8.9 Earthquake in Japan by Spreading Awareness and Aid. Visit http://goo.gl/wjZQz to donate.
</noscript>
@lroggendorff
lroggendorff / locator-api-response.json
Created January 30, 2012 14:00
AIDS.gov Locator API Examples
{
"title": "HIV/AIDS Prevention & Service Providers",
"link": "http://locator.dev/data?zip=37206",
"updated": "2012-01-29T15:15:51-0600",
"stat": "ok",
"services": [
{
"title": "Search Results from CDC - Locate HIV/AIDS Testing Sites",
"link": "http://cdcnpin.org/hivTestLocatorFeed/feed.aspx?radius=5&zip=37206",
"author": "CDC NPIN",
@lroggendorff
lroggendorff / example.html
Created August 8, 2012 20:43
The thing with the other thing
<script>
Modernizr.load([
{
load: '//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js',
complete: function () {
if ( !window.jQuery ) {
Modernizr.load('/scripts/jquery-1.7.2.min.js');
}
}
@lroggendorff
lroggendorff / load-path-nonsense.md
Created October 17, 2012 22:11
Local Gem Development $LOAD_PATH Shinanigans

Use bundle gem gemname to generate your gem's doc structure:

.
├── Gemfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── gemname.gemspec
├── lib

│   ├── gemname

@lroggendorff
lroggendorff / pickone.md
Last active August 29, 2015 13:56
Pick a Lib

Tour Libraries

Ratings based on a four thumbs up scale. Because monkeys.

Shepherd

Documentation

👍👍✋✋

@lroggendorff
lroggendorff / magick.md
Last active August 29, 2015 14:00
So this is fun...

The setup:

In [11]: import mock

In [12]: stuff = mock.MagicMock()

In [13]: stuff.__contains__.return_value = False

In [14]: "thing" in stuff
@lroggendorff
lroggendorff / meh.md
Last active August 29, 2015 14:17
Testing things

----|---- wat | nao are you kidding | me will this render | as a table