Skip to content

Instantly share code, notes, and snippets.

biilmann /
Created Oct 14, 2015
Quick Guide to Private NPM Modules on Netlify

Using NPM Private Modules on Netlify

Create a .npmrc file for your project like this:


Then find your token inside the ~/.npmrc file in your home folder and set it as an NPM_TOKEN environment variable through netlify's admin UI.

twoblokeswithapostie / gist:9359477
Created Mar 5, 2014
Code using Momentjs for finding, today, this weekend, this months and next month to and from dates
View gist:9359477
// JavaScript code that finds dates for today, this weekend, this month, next month
// This weekend = next Sat and Sun
// This month = today to end of this month
// Next month = 1st of next month = end of next month
// Useful on Business Catalyst web app search form for searching from-to dates
// Requires jquery and moment.js
$('#today_nav').on("click", function(){
brainix /
Last active Jan 3, 2016
Install the do_postgres gem with
gem install do_postgres -- \
--with-pgsql-server-dir=/Applications/ \
kevincennis / bounce.js
Created Jul 13, 2013
Bounce an AudioBuffer to WAV with RecorderWorker.js
View bounce.js
// assuming you have an AudioBuffer instance called `buffer`,
// and an AudioContext (or OfflineAudioContext) called `ctx`...
// create a new Worker...
var worker = new Worker('recorderWorker.js');
// get it started and send some config data...
command: 'init',
czivko / vendor-ffmpeg-x264-mp3lame-heroku
Last active Dec 10, 2015 — forked from coopermaruyama/vendor-ffmpeg-heroku
How to compile ffmpeg with h264 and mp3 encoders enabled for use on heroku.
View vendor-ffmpeg-x264-mp3lame-heroku
## Get FFMpeg working on heroku by building binaries using vulcan
# also added instructions on how to compile with libmp3lame and libx264
gem install vulcan
vulcan create foo
#clone the app vulcan just created
git clone
jhollinger / dropbox.css
Created Jul 27, 2012
Dropbox - async, ajax uploads with HTML5 in Sinatra
View dropbox.css
#dropbox {
position: relative;
#dropbox > input {
position: absolute;
top: 0px;
right: 0px;
bottom: 0px;
left: 0px;
tonycoco / image_filters.rb
Created Jun 11, 2012
Useful image filters (Instagram/Hipster/Cool) for CarrierWave using MiniMagick (ImageMagick)
View image_filters.rb
module CarrierWave
module MiniMagick
def toaster_filter
manipulate! do |img|
img.modulate '150,80,100'
img.gamma 1.1
View ios-8-web-app.html
<!doctype html>
<!-- -->
<title>iOS 8 web app</title>

Tiny Content Framework

About the project

This is a tiny content strategy framework focused on goals, messages, and branding. This is not a checklist. Use what you need and scrap the rest. Rewrite it or add to it. These topics should help you get to the bottom of things with clients and other people you work with.

Give me feedback on Twitter (@nicoleslaw) or by email (


mattetti / gist:1318670
Created Oct 27, 2011
google cloud print pointers
View gist:1318670
client =, CLIENT_SECRET,
:authorize_url => "/o/oauth2/auth",
:access_token_url => "/o/oauth2/token",
:site => '')
get '/auth' do
url = client.web_server.authorize_url(
:redirect_uri => redirect_uri,
:scope => '',
:response_type => "code"