Create a .npmrc
file for your project like this:
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
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.
// 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 | |
$(document).ready(function(){ | |
$('#today_nav').on("click", function(){ |
gem install do_postgres -- \ | |
--with-pgsql-server-dir=/Applications/Postgres.app/Contents/Versions/9.3 \ | |
--with-pgsql-server-include=/Applications/Postgres.app/Contents/Versions/9.3/include/postgresql/server |
// 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... | |
worker.postMessage({ | |
command: 'init', |
## 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 [email protected]:foo |
#dropbox { | |
position: relative; | |
} | |
#dropbox > input { | |
position: absolute; | |
top: 0px; | |
right: 0px; | |
bottom: 0px; | |
left: 0px; |
module CarrierWave | |
module MiniMagick | |
def toaster_filter | |
manipulate! do |img| | |
img.modulate '150,80,100' | |
img.gamma 1.1 | |
img.contrast | |
img.contrast | |
img.contrast | |
img.contrast |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |
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 ([email protected]).
client = OAuth2::Client.new(CLIENT_ID, CLIENT_SECRET, | |
:authorize_url => "/o/oauth2/auth", | |
:access_token_url => "/o/oauth2/token", | |
:site => 'https://accounts.google.com/') | |
get '/auth' do | |
url = client.web_server.authorize_url( | |
:redirect_uri => redirect_uri, | |
:scope => 'https://www.googleapis.com/auth/cloudprint', | |
:response_type => "code" |