Skip to content

Instantly share code, notes, and snippets.

View jaredwilli's full-sized avatar
🏄‍♂️

Jared Williams jaredwilli

🏄‍♂️
View GitHub Profile
@addyosmani
addyosmani / workflow.md
Last active August 29, 2015 13:58
A workflow for creating re-usable Polymer elements

A workflow for creating re-usable Polymer elements

This guide takes you through setting up the boilerplate for working on a re-usable Polymer element. It also covers the tooling to deploy a version of your package such that the master branch of your repository can be easily consumed by other apps or elements (e.g through Bower) and the gh-pages branch can be used for sharing the demo and documentation for your element.

Note: We assume you have git and Bower installed and use Scott Miles' Polymer boilerplate for getting started.

Getting setup

  • Create a new directory on your system for working on Polymer elements (e.g development).
  • Clone the untitled-element boilerplate inside this directory: git clone git://github.com/polymerlabs/untitled-element.git. Rename the element and it's files accordingly. For example, if your element was called test-element, your file list would look a little like this:
@btford
btford / chillax.md
Created October 30, 2014 06:59
Why you shouldn't worry so much about migrating with Angular

Several developers asked me about how difficult it will be to migrate Angular 1 to Angular 2. Angular 2 isn't done, so I legitimately have no idea how hard it will be. But there are a few high-level guiding principals in the design of Angular 1 that make adapting to changes like this fairly painless.

Angular 1 was designed so it would have a fairly minimal API surface. Let's look at controllers, since these are the meat of your app. Controllers are just functions that get passed other components as arguments:

MyController ($scope) {
  $scope.list = [];
  
  $scope.addItem = function (name) {
    $scope.list.push({
@Nevraeka
Nevraeka / gist:3baad1bacd2393f0e3b0
Last active August 29, 2015 14:13
A curated list of Web Component Podcasts, Screencasts, & Interviews with Web Component community members
@k33g
k33g / gist:778460
Created January 13, 2011 19:42
java like inheritance and shameful use of prototype
function Human(){
var that = this;
var name="John Doe";
that.getName=function(){return name;}
that.setName=function(value){name=value;}
return that;
}
function Man(){
@cowboy
cowboy / jquery15-sub-example.js
Created January 31, 2011 21:04
jQuery.sub() "module-specific jQuery extensions" usage example for jQuery 1.5
// Your module.
(function($uper){
var $ = $uper.sub();
// This method ONLY exists inside this IIFE.
$.fn.remove = function() {
if ( confirm( "Really remove " + this.length + " elements?" ) ) {
// Execute (and return the value of) the main jQuery .remove method.
return $uper.fn.remove.apply( this, arguments );
// the text-align: centaur; polyfill
// by paul irish
// it will find any styles that use `text-align: centaur` and instantly centaurize that text!
// uses the JSCSSP parser by Daniel Glazman
// thx to cameron daigle for march 2011's best javascript.
// http://textaligncentaur.com/
@Kambfhase
Kambfhase / LICENSE.txt
Last active September 25, 2015 22:28 — forked from 140bytes/LICENSE.txt
Brainfuck139
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Kambfhase
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@rtgibbons
rtgibbons / paulify.href
Created June 3, 2011 03:12
pualify bookmarklet
javascript:(function(){var d=document,j=d.getElementById('__paulify_nodes'),k=null;var files=['https://github.com/rtgibbons/Paulify/raw/master/js/paulify.js','https://github.com/rtgibbons/Paulify/raw/master/js/paulify_run.js'];if(j){paulify_add();}else{k=d.createElement('div');k.id='__paulify_nodes';d.getElementsByTagName('body')[0].appendChild(k);for(var l=0;l<files.length;l++){j=d.createElement('script');j.src=files[l];k.appendChild(j);}}})();
@mklabs
mklabs / front-tools.md
Created July 23, 2011 10:32
my little list of frontend tools and resources #frontend #tools
@jaredwilli
jaredwilli / gameengines.md
Created July 26, 2011 17:46 — forked from bebraw/gameengines.md
List of JS game engines. You can find a wikified version at https://github.com/bebraw/jswiki/wiki/Game-Engines. Feel free to modify that. I sync it here every once in a while.

IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version.

Name Latest Release Size (KB) License Type Unit Tests Docs Repository Notes
Akihabara 1.3.1 (2011/05) 453 GPL2, MIT Classic Repro no API github Intended for making classic arcade-style games in JS+HTML5
Aves Commer-cial Obsolete. Company bought by Zynga. E3 2010 Aves Engine Prototype "Suburban World"
bdge github Badly Design Game Engine, an HTML5 Javascript game engine [Demo](h