Skip to content

Instantly share code, notes, and snippets.

View jpemberthy's full-sized avatar

Juan Pemberthy jpemberthy

View GitHub Profile
curl -X POST "https://api.weheartit.com/api/v2/entries/70125697/reports?access_token=my-token&reason=discriminative"
{"image_url":"http://data3.whicdn.com/images/foo/large.jpg","entry_id":99967588}
{"image_url":"http://data2.whicdn.com/images/bar/large.png","entry_id":99967589}
{
id: 2651358,
username: "jpemberthy",
name: "Juan Pemberthy",
email: "jpemberthy@gmail.com",
location: "San Francisco and Medellin",
bio: "I work here!",
link: "http://juan.pemberthy.com",
avatar:
[
1 row in set
>> user == User.last
=> true
>> user.persisted?
=> true
>> user.valid?
=> true
>> user.registration_details
+---------+----------+----------------+--------------+----------+----------------+-------------+-------------------------+
| user_id | referrer | pageview_count | source | platform | authentication | ip_address | created_at |
100 = :continue
101 = :switching_protocols
102 = :processing
200 = :ok
201 = :created
202 = :accepted
203 = :non_authoritative_information
204 = :no_content
205 = :reset_content
206 = :partial_content
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwze+yik2n2RHJIEFhTnyJQAn4SKoZRoHkHFXfR+lMMuu5OkMn631F2NPdd0M0S9aN98n4C8i3kVLFwLZvDoeqXqK6YzACrWL29/KG/pjgskzUBo+7xhR3NID7fxbG8AwZmGBPT/wZJeUW/gE9PNQbEx1MotIsNG7lnUKQ91MtQ1ZZ5JO9TjjM8ODIcM0OsgkGj4Mj5HruRxm0syOLlcm4B827SygFoVZXQTHCYve1IvewmWV11Q3HNAUrH6W50DZa4ufugMO0x8Vse0R6b23kEj2Y2DZKh1VuVxQ0mSpOAp5WBSG0IdSSoToD75QLRmUy0RWyWfAa6GM2WOdhNFI1Q== jpemberthy@gmail.com
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAwze+yik2n2RHJIEFhTnyJQAn4SKoZRoHkHFXfR+lMMuu5OkMn631F2NPdd0M0S9aN98n4C8i3kVLFwLZvDoeqXqK6YzACrWL29/KG/pjgskzUBo+7xhR3NID7fxbG8AwZmGBPT/wZJeUW/gE9PNQbEx1MotIsNG7lnUKQ91MtQ1ZZ5JO9TjjM8ODIcM0OsgkGj4Mj5HruRxm0syOLlcm4B827SygFoVZXQTHCYve1IvewmWV11Q3HNAUrH6W50DZa4ufugMO0x8Vse0R6b23kEj2Y2DZKh1VuVxQ0mSpOAp5WBSG0IdSSoToD75QLRmUy0RWyWfAa6GM2WOdhNFI1Q== jpemberthy@gmail.com
function staging_deploy {
current_branch=`git branch | grep \* | awk '{print $2}'`
if [ $# -gt 0 ]; then # we have args
staging=$1
else
staging="staging"
fi
bundle exec cap -s branch=$current_branch $staging deploy
NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"{{([.[^}}]]+)}}" options:NSRegularExpressionCaseInsensitive error:&error];