Skip to content

Instantly share code, notes, and snippets.

View dahal's full-sized avatar
🌟
captableinc/captable

Puru Dahal dahal

🌟
captableinc/captable
View GitHub Profile
@dahal
dahal / sf.geo.json
Last active August 29, 2015 14:22
San Francisco County Geo JSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dahal
dahal / sf.geo.json
Created May 27, 2015 23:18
US Counties geo json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dahal
dahal / chicago.geojson
Created May 28, 2015 06:40
Chicago Zipcode GEO JSON
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dahal
dahal / uri.js
Last active August 29, 2015 14:22 — forked from jlong/uri.js
var parser = document.createElement('a');
parser.href = "http://example.com:3000/pathname/?search=test#hash";
parser.protocol; // => "http:"
parser.hostname; // => "example.com"
parser.port; // => "3000"
parser.pathname; // => "/pathname/"
parser.search; // => "?search=test"
parser.hash; // => "#hash"
parser.host; // => "example.com:3000"
module.exports = (grunt) ->
# configuration
grunt.initConfig
# grunt sass
sass:
compile:
options:
style: 'expanded'
@dahal
dahal / harlem-shake.md
Last active August 29, 2015 14:25
Make your browser do harlem-shake

###Make your browser do harlem-shake..

1. Go to Google Chrome
2. Go to any website (works cool on facebook)
3. Right click anywhere -> Inspect Element
4. Click on the rightmost "Console" tab.
5. Copy paste the following * into the console.
6. Make sure the volume isn't too loud!
6. Press Enter.
@dahal
dahal / landing-pages.md
Last active August 29, 2015 14:26 — forked from revolunet/landing-pages.md
Beautiful SAAS landing pages
@dahal
dahal / sitemap.xml.erb
Last active August 29, 2015 14:27 — forked from ls-lukebowerman/sitemap.xml.erb
Sitemap (sitemaps.org) generator for Middleman
<% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } %>
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<% pages.each do |p| %>
<url>
<loc>http://youdomain.com/<%=p.destination_path.gsub('/index.html','')%></loc>
<priority>0.7</priority>
</url>
<% end %>
</urlset>
@dahal
dahal / zip_codes.csv
Created August 19, 2015 22:58
All US Zip Codes
We can't make this file beautiful and searchable because it's too large.
code,city,state,county,area_code,lat,lon
00501,Holtsville,NY,SUFFOLK,,40.922326,-72.637078
00544,Holtsville,NY,SUFFOLK,,40.922326,-72.637078
01001,Agawam,MA,HAMPDEN,,42.140549,-72.788661
01002,Amherst,MA,HAMPSHIRE,,42.367092,-72.464571
01003,Amherst,MA,HAMPSHIRE,,42.369562,-72.63599
01004,Amherst,MA,HAMPSHIRE,,42.384494,-72.513183
01005,Barre,MA,WORCESTER,,42.32916,-72.139465
01007,Belchertown,MA,HAMPSHIRE,,42.280267,-72.402056
01008,Blandford,MA,HAMPDEN,,42.177833,-72.958359
#atom-sync-settings