Skip to content

Instantly share code, notes, and snippets.

Rick Waldron rwaldron

Block or report user

Report or block rwaldron

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View jquery.js
/*!
* jQuery JavaScript Library v2.1.1pre
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
View object.assign.js
Object.assign = function( O, dictionary ) {
var target, src;
// Let target be ToObject(O).
target = Object( O );
// Let src be ToObject(dictionary).
src = Object( dictionary );
// For each own property of src, let key be the property key
@rwaldron
rwaldron / Setting up Google Cloud Storage with CORS for Web Fonts.md Setting up CORS on Google Cloud Storage: An unofficial quick start guide to serving web fonts from Google's cloud. (I'm sure a lot of this info could be improved... Please leave comments if you have tips/improvements.)
View Setting up Google Cloud Storage with CORS for Web Fonts.md

Login:

Google Cloud Storage

You'll want to login using an official Google account (i.e. if this is for your company, use the comapany Gmail account vs. a personal one.)

When logging in, you might be prompted to verify the account; if so, enter your cell number to get a verification e-mail or phone call.

Once verified, you'll have to agree to the terms of service; do that, and click continue.

@rwaldron
rwaldron / style-guide.js
Created Jan 24, 2011
Writing Idiomatic JavaScript
View style-guide.js
1. Two space soft indents (fake tabs) OR tabs... BUT NEVER BOTH - DO NOT MIX
2. Whitespace, Parens, Braces, Linebreaks
if/else/for/while/try always have spaces, braces and multiple lines.
--------------------------------------------------------------------
View rotary-encoder.js
var Emitter = require("events").EventEmitter;
var five = require("../lib/johnny-five.js");
var board = new five.Board();
var emitter = new Emitter();
function Encoder(opts) {
Emitter.call(this);
var last = 0;
@rwaldron
rwaldron / branch-count.sh
Created Jun 15, 2011
Count number of branches in a repo
View branch-count.sh
git branch | wc -l
View README.md

Teacher Moments

Development

Local Setup

  1. Install Node.js (version >=10.0.0).
  2. Install yarn (version >=1.19.x): npm install yarn@latest -g
  3. Install Dependencies:
View README.md

Teacher Moments

Development

Local Setup

  1. Install Node.js (version >=10.0.0).
  2. Install yarn (version >=1.19.x): npm install yarn@latest -g
  3. Install Dependencies:
View README.md

Teacher Moments

Development

Local Setup

  1. Install Node.js (version >=10.0.0).
  2. Install yarn (version >=1.19.x): npm install yarn@latest -g
  3. Install Dependencies:
View README.md

Teacher Moments

Development

Local Setup

  1. Install Node.js (version >=10.0.0).
  2. Install yarn (version >=1.19.x): npm install yarn@latest -g
  3. Install Dependencies:
You can’t perform that action at this time.