Skip to content

Instantly share code, notes, and snippets.

View gist:2416798
//does work
modules: [
{
name: "pageModules/addedTags",
include: ["pageModules/addedTags"]
}
]
// doesn't work
@ajpiano
ajpiano / gist:2570733
Created May 1, 2012
grunt "indexcss" task
View gist:2570733
grunt.registerMultiTask("cssindex", "Create an 'index' file of css @import rules for sitewide CSS", function() {
var file = grunt.file;
var target = this.target;
var fileHandles = this.data.map(function( glob ) {
return file.expand( glob );
});
var imports;
fileHandles = fileHandles.concat.apply( [], fileHandles );
@ajpiano
ajpiano / gist:2954965
Created Jun 19, 2012 — forked from anonymous/gist:2952418
Web dev horror story: Double billing bug
View gist:2954965

Early in my career I found myself working at a mobile content provider on a PHP/MySQL app that was developed in Eastern Europe by a plucky but perhaps not the most best practice oriented entrepreneurial developer.

A rather large business had been built on top of this platform and it was suffering from the strains of scaling (revenue was in the multiple millions by this point).

One day, I was working on some code clean up and refactoring to improve some functionality in the billing piece when I realized there was an error in the logic that would cause the customer to be double-billed for each piece of content. I dutifully filed a ticket for the bug, committed a fix, and deployed it to production.

In less than 2 hours, our sysadmin had rolled back my fix and the ticket changed to closed, won't fix, as the impact on the company sales projections was too much... I didn't stick around long after that!

View gist:4507941
{
"name": "jquery",
"title": "jQuery",
"description": "JavaScript library for DOM operations",
"version": "2.0.0pre",
"homepage": "http://jquery.com",
"author": {
"name": "jQuery Foundation and other contributors",
"url": "https://github.com/jquery/jquery/blob/master/AUTHORS.txt"
},
View gist:4675490
The design, layout, and look-and-feel of the `jquery-wp-content` repository, including all CSS, images, and
icons, are copyright jQuery Foundation, Inc. and are not licensed for use. Designs and CSS from jquery-wp-content may not be used on any site, personal or commerical, without prior written consent from the jQuery Foundation. `jquery-wp-content` contains CSS, images, and icons that are copyrighted by other individuals; those items are licensed under their original terms.
The only permitted (and encouraged) exception to "use" is the case of cloning/forking this repository in order to create a local development environment to facilitate making contributions to jQuery Foundation websites.
@ajpiano
ajpiano / .vimrc
Last active Dec 12, 2015
my vimrc as of feb 20 2013
View .vimrc
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" Set syntax highlighting options.
set t_Co=256
set background=dark
syntax on
colorscheme badwolf
" Change mapleader
@ajpiano
ajpiano / portland-2013-speaker-qa.md
Last active Dec 12, 2015
jQuery Portland 2013 Prospective Speaker Q&A
View portland-2013-speaker-qa.md

You're Invited!

Have you been thinking about proposing a talk for jQuery Portland 2013? You should be! We're looking to put together a roster of speakers that can bring a diverse set of experiences together to create a program that goes above and beyond just what's new in jQuery.

A lot of folks convince themselves out of submitting because they're worried their idea "isn't on topic" or that "someone else 'better' will surely do that," so that's why tonight, Rebecca Murphey (@rmurphey and I (@ajpiano are hosting a live Q&A for people who are thinking about speaking but

@ajpiano
ajpiano / portland-2013-speaker-qa.md
Last active Dec 12, 2015 — forked from rmurphey/portland-2013-speaker-qa.md
jQuery Portland 2013 Prospective Speaker Q&A
View portland-2013-speaker-qa.md

You're Invited!

View the hangout

Have you been thinking about proposing a talk for jQuery Portland 2013 (or any other tech conference, for that matter)? You should be! We're looking to put together a roster of speakers that can bring a diverse set of experiences together to create a program that goes above and beyond just what's new in jQuery.

View gist:5548637
Unsubscribe
On Thu, May 9, 2013 at 12:18 PM, Keith Hines <keith@ttsstaffing.com> wrote:
Yes it is.
Especially for any role that even mentions Backbone (I’m assuming Barbone.js is a typo J)
@ajpiano
ajpiano / gist:6273096
Created Aug 19, 2013
basic lynxmotion al5d init
View gist:6273096
var five = require("johnny-five"),
temporal = require("temporal"),
board = new five.Board(),
servos = {},
inits = [
{
id: "rotator",
opts: {
pin: 3,
startAt: 90