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
- (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
<!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
@media only screen and (min-width: 1024px) { | |
/* Add your custom styles here for Desktop */ | |
} | |
@media only screen and (max-width: 1023px) { | |
/* Add your custom styles here for Tablet */ | |
} | |
@media only screen and (max-width: 640px) { | |
/* Add your custom styles here for Large Mobile */ |
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 'bazaar' | |
require 'rails' | |
require "csv" | |
tokens_array = [] | |
array_complete = false | |
while array_complete == false do | |
token = Bazaar.object | |
tokens_array << token unless tokens_array.include?(token) |
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
require 'json' | |
require 'httparty' | |
require 'geocoder' | |
require 'foursquare2' | |
require 'hashie' | |
@@client = Foursquare2::Client.new(:client_id => 'PQPTTYWDIXOYHUYJMO0UX30W1VI0Q3IHXC314QSA50VMZDNB', :client_secret => 'AIUV3COEJRQOMDUQXEFXN0X5LPRSEP1P43TLNMN00RQ30U4H') | |
def show_subcategories |
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 'rubygems' | |
require 'mongo' | |
require 'net/http' | |
require 'active_support/core_ext' | |
require 'crack' | |
require 'uri' | |
require 'hashie' | |
def convert(feed) | |
db = Mongo::Connection.new.db("blogs") |
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
# CRO API Access by @bkenny | |
# | |
# Example, to search for a company use: CRO.new(email_address, api_key).companies("Starbucks") | |
# To search for a companies submissions: CRO.new(email_address, api_key).submissions("315499", "c") | |
require 'rubygems' | |
require 'httparty' | |
require 'hashie' | |
class CRO |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |