Skip to content

Instantly share code, notes, and snippets.

View ericthelast's full-sized avatar

Journey Admin ericthelast

  • The Journey
  • St. Louis, MO
View GitHub Profile
@uhtred
uhtred / placeholdit.php
Created March 20, 2013 21:12
PHP: Placehold it image
<?php
/*
How to use
/940x278
/940x278/000000
/940x278&text=Texto
/940x278/000000&text=Texto
RewriteEngine On
@notxarb
notxarb / subnets.txt
Last active May 12, 2016 21:35
Pagodabox CIDR addresses
75.126.19.144/28
75.126.23.16/28
184.173.69.128/28
50.97.157.0/26
75.126.59.16/28
@jlong
jlong / uri.js
Created April 20, 2012 13:29
URI Parsing with Javascript
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"