Skip to content

Instantly share code, notes, and snippets.

@brettcvz
brettcvz / debugger.js
Last active December 13, 2015 21:08
Using debugger in javascript
(function(){
var time = +new Date;
//no idea what that did, let's check it out
debugger;
//Pretty cool - you can modify the local variables as well via the web inspector
alert(time);
})();
@brettcvz
brettcvz / Hn Point scraper
Last active December 11, 2015 11:48
Simple webserver that takes in a hn story id and returns the points of the story. Has no error handling
import web
from pyquery import PyQuery as pq
import re
urls = (
'/(.*)', 'hn'
)
app = web.application(urls, globals())
@brettcvz
brettcvz / docs
Created November 16, 2012 21:28
Filepicker.io Heroku addon instructions
[Filepicker.io](http://addons.heroku.com/filepicker) provides file uploading and content management for developers as an [add-on](http://addons.heroku.com) for Heroku.
Filepicker.io excels any time you want to add uploading or cloud file integration into your application. Worried about running into the Heroku 30-second-timeout with big files? No worries, we can handle files upward of 100GB. Need to store them on S3? Done, no questions asked.
Even better, Filepicker.io provides:
* Integration with 17 content providers, so your users can pull in content directly from the cloud, increasing their engagement in your application. No wrestling with APIs required - one line of code and your app is set up with Dropbox, Facebook Photos, Google Drive, Instagram, and many more.
* Powerful image processing functionality, so you can take uploads from the user and crop them to a 128x128 profile pictured centered around their face, for example
* Stellar performance, streaming large files in parallel at speeds 4-10 times