Skip to content

Instantly share code, notes, and snippets.

View hpowers's full-sized avatar
🤘

Hunter Powers hpowers

🤘
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1NmiL9ksEJYQ8us5TSfqyc82kiE5KK2Vv https://explorer.blockstack.org/address/1NmiL9ksEJYQ8us5TSfqyc82kiE5KK2Vv
--------------------------------------------------------------------------------
https://code.angularjs.org/1.2.27/angular-animate.js
https://code.angularjs.org/1.2.27/angular-cookies.js
https://code.angularjs.org/1.2.27/angular-loader.js
https://code.angularjs.org/1.2.27/angular-mocks.js
https://code.angularjs.org/1.2.27/angular-resource.js
https://code.angularjs.org/1.2.27/angular-route.js
https://code.angularjs.org/1.2.27/angular-sanitize.js
https://code.angularjs.org/1.2.27/angular-scenario.js
@hpowers
hpowers / script
Created June 21, 2014 15:39
Hosting multiple apps on a cheap VPS via subdomains and NGINX reverse proxies
// slides - from Jibe Hackathon
http://slides.com/hunterpowers/nginx-subdomains#/
--------------------------------------------------------------------------------
create a droplet
hostname - livefromjibe
select a size - $5/mo
select region - new york 2
select image - applications / mean on ubuntu 14.04
settings - leave as default
@hpowers
hpowers / gist:9039227
Created February 16, 2014 19:17
ready URLS from txt file
File.open('urls.txt').each_line{ |url|
puts url
}
--------------------------------------------------------------------------------
NAMES
--------------------------------------------------------------------------------
HotOrNotForCats.com
ThatCatRocks.com // Rocks or Not instead of Hot or Not
RankThatCat.com // sounds like a game show ( could play a jingle on load )
HerePrettyKitty.com
catVcat.com
Yourcatmycat
@hpowers
hpowers / Guardfile
Created June 12, 2012 02:10
Hartl Files: run when integration tests and views are updated
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
require 'active_support/core_ext'
guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
watch('config/application.rb')
watch('config/environment.rb')
watch(%r{^config/environments/.+\.rb$})
watch(%r{^config/initializers/.+\.rb$})
@hpowers
hpowers / gist:2842161
Created May 31, 2012 09:14
Hello World Sinatra
require 'sinatra'
get '/' do
"Hello World"
end
def print_numbers
@file.each do |line|
number = line[:homephone]
number = number.delete("-(). ")
if number.length == 10
# Do Nothing
elsif number.length == 11
if number.start_with?("1")
number = number[1..-1]