3 things I am grateful for…
3 things that would make today great…
| var Promise = require('bluebird'); | |
| function Blah() { | |
| this.foo = 'blah'; | |
| } | |
| Blah.prototype.tester = function() { | |
| console.log(this.foo); | |
| }; |
| require 'rubygems' | |
| require 'yaml' | |
| require 'net/http' | |
| require 'uri' | |
| # | |
| # Check that the HTTP Response is as expected. | |
| # See -help for format of the input file | |
| # | |
| class CheckHttpResponse |
I hereby claim:
To claim this, I am signing this object:
| Originally found here: http://newyork.craigslist.org/brk/mis/3985247459.html | |
| I saw you on the Manhattan-bound Brooklyn Q train. | |
| I was wearing a blue-striped t-shirt and a pair of maroon pants. You were | |
| wearing a vintage red skirt and a smart white blouse. We both wore glasses. I | |
| guess we still do. | |
| You got on at DeKalb and sat across from me and we made eye contact, briefly. I | |
| fell in love with you a little bit, in that stupid way where you completely make |
| NSDate *now = [[NSDate alloc] init]; | |
| NSTimeZone *localTimeZone = [NSTimeZone systemTimeZone]; | |
| NSDateFormatter *rfc3339DateFormatter = [[NSDateFormatter alloc] init]; | |
| NSLocale *enUSPOSIXLocale = [[NSLocale alloc] initWithLocaleIdentifier:@"en_US_POSIX"]; | |
| [rfc3339DateFormatter setLocale:enUSPOSIXLocale]; | |
| [rfc3339DateFormatter setDateFormat:@"yyyy'-'MM'-'dd'T'HH':'mm':'ssZ"]; | |
| [rfc3339DateFormatter setTimeZone:localTimeZone]; | |
| NSString *dateString = [rfc3339DateFormatter stringFromDate:now]; |
| lol ~= haha | |
| LOL ~= HAHA ~= hahaha | |
| rofl ~= HAHAHAH ~= hahahahahahaha | |
| ROFL ~= HAHAHAHAHAHHAHAHAHA ~= hahahahahahahahahahahaha | |
| LMFAO ~= HAHAHAe+26 snort |
| <?php | |
| $db = mysql_connect('localhost', 'db_user', 'db_password'); | |
| mysql_select_db('blog'); | |
| $sql = "SELECT * FROM wp_posts WHERE post_status IN ('publish', 'private') AND post_type = 'post'"; | |
| $r = mysql_query($sql); | |
| get_posts($r); | |
| // do drafts separately in order to keep them from messing with published posts' URLs |
| #!/bin/bash | |
| # | |
| # A better PS1 for Git | |
| # | |
| # Author: Justin Hileman (http://justinhileman.com) | |
| # | |
| # Installation: | |
| # Add the following function to your `.bashrc` or `.bash_profile`, | |
| # or save it somewhere (e.g. `~/.gps1.bash`) and source it in `.bashrc` |