-
Profile Screenshot Please send us the most high resolution profile photo that you love. Ideally we'd love a resolution of 1800x800 or higher.
-
Smartphone Screenshot Please send us a screenshot of your smartphones home screen.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Processing by ViewsController#image as */* | |
Processing by ViewsController#image as HTML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://maps.googleapis.com/maps/api/js?sensor=false&libraries=places"></script> | |
<script> | |
function initialize() { | |
var input = document.getElementById('searchTextField'); | |
var autocomplete = new google.maps.places.Autocomplete(input); | |
} | |
google.maps.event.addDomListener(window, 'load', initialize); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)locationReceived:(NSNotification *)notif { | |
InstaLocation *location = (InstaLocation*)[notif object]; | |
[instagramVenues addObject:location]; | |
[fsToInstagramVenues setObject:location.foursquareId forKey:location.locationId]; | |
for (MediaData *mediaData in location.images) { | |
responseCount++; | |
[feedImages addObject:mediaData]; | |
mediaData.locationName = location.name; | |
[NSSortDescriptor sortDescriptorWithKey:@"created_time" ascending:YES]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## The quick-and-nasty CVE-2013-0156 Heroku inspector! | |
## Originally brought to you by @elliottkember with changes by @markpundsack @ Heroku | |
## Download and run using: | |
## ruby heroku-CVE-2013-0156.rb | |
`heroku list`.split("\n").each do |app| | |
app = app.strip | |
# Some "heroku apps" lines have === formatting for grouping. They're not apps. | |
next if app[0..2] == "===" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@products = Product.where(:source => params[:vendor], :city => params[:location]).includes(:tags).where(['tags.title LIKE ?', @tag.title]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gauges' | |
require 'rubygems' | |
require 'active_support/all' | |
require 'twitter' | |
@client = Gauges.new(:token => api_token) | |
@results = @client.content(gauge_id, :date => Date.yesterday) | |
@results['content'].each do |content| | |
if content['url'].include?('/venue') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BACKUP="/tmp/s3/db" | |
DATE=`date +"%Y-%m-%d"` | |
DIR="${BACKUP}/${DATE}/" | |
if [ ! -d $DIR ]; | |
then | |
mkdir -p $DIR | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'base64' | |
# Open the file you wish to encode | |
data = File.open('/Users/bkenny/Desktop/d3cce16ee41411e296c022000a1f980f_101.mp4').read | |
# Encode the puppy | |
encoded = Base64.encode64(data) | |
# Spit it out into one continous string | |
puts encoded.gsub(/\n/,"") |
If you hit an API with e.g. "Dublin", what would be the best response to get back from an API?
- Full Address (Dublin, Co.Dublin, Ireland)
- Weather forcast over the next 3 days
- Introduction to the city (Wikipedia)
- Time offset (GMT +0)
- Population
- Nearest Airport
- Nearest Ferry