- Build.
- Blog.
- Bresent.
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
{ | |
"cmd": ["/usr/local/bin/node", "$file", "$file_base_name"], | |
"working_dir": "${project_path:${folder}}", | |
"selector": "*.js" | |
} |
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 'nokogiri' | |
require 'open-uri' | |
usernames = [ | |
'brianknight10', | |
'annekagoss', | |
'bethannezink', | |
'DanFerrer', | |
'antropova', | |
'himedlooff', |
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
if (!document.querySelectorAll) { | |
document.querySelectorAll = function (selectors) { | |
var style = document.createElement('style'), elements = [], element; | |
document.documentElement.firstChild.appendChild(style); | |
document._qsa = []; | |
style.styleSheet.cssText = selectors + '{x-qsa:expression(document._qsa && document._qsa.push(this))}'; | |
window.scrollBy(0, 0); | |
style.parentNode.removeChild(style); |
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> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
@import url(http://fonts.googleapis.com/css?family=Open+Sans:400,700,600); | |
body { | |
background-color: #2ecc71; |
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
class SearchController < ApplicationController | |
def index | |
access_token = "YOUR ACCESS TOKEN HERE" # should have been session[:access_token]. Never store credentials in your code | |
client = Instagram.client(access_token: access_token) | |
geocoder = Geocoder.search(params[:q] || "brooklyn, new york") | |
lat = geocoder.first.data["geometry"]["location"]["lat"] | |
lng = geocoder.first.data["geometry"]["location"]["lng"] | |
@results = client.location_search(lat, lng) | |
end | |
end |
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
#outer { | |
width: 100%; | |
text-align: center; | |
} | |
#inner { | |
display: inline-block; | |
} |
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
for(var i = 1; i <= 20; i++) { | |
if( i % 3 === 0 && i % 5 === 0 ) { | |
console.log( "FizzBuzz" ); | |
} else if( i % 3 === 0 ) { | |
console.log( "Fizz" ); | |
} else if( i % 5 === 0 ) { | |
console.log( "Buzz" ); | |
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
Sublime Text 2 - Useful Shortcuts | |
================================= | |
*Tested in Mac OS X: super == command* | |
Open/Goto | |
_________ | |
- super+t: go to file | |
- super+ctrl+p: go to project | |
- super+r: go to methods |
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
name = "Sharnie Ivery" | |
<<-`GREET` | |
hostname | |
whoami | |
GREET | |
# => "sharnieivery" |