This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* rid of lib/server.js | |
* create/format lib/settings.js | |
* add a bin-manage.js | |
* need to change config..tmpl to use that | |
* add body parsing middleware (knork's) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unbreak My Build -> Unbreak My Heart - Toni Braxton | |
End of the Node -> End of the Road - Boyz II Men | |
You Make Me Wanna -> You Make Me Wanna - Usher | |
All My Lifetimes -> All My Life - K-Ci & JoJo | |
How Deep Is Your Callstack -> How Deep Is Your Love - Dru Hill | |
Ignition (Remix) -> Ignition (Remix) - R. Kelly | |
Can We Lock -> Can We Talk - Tevin Campbell | |
I Pair -> I Swear - All-4-One | |
This Is How We Do It -> This Is How We Do It - Montell Jordan | |
LAMP There It Is -> Whoomp There It Is -> Tag Team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.superMap = function( fn ){ | |
return this.map( function( x ){ | |
return fn.call(x); | |
} | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First, I have to come clean. When [Scott tweeted about wanting a web app version of Grunticon](https://twitter.com/scottjehl/status/345618924219539458) a couple of weeks ago, I had never used Grunticon. Actually, still to this day I've never used Grunticon. Shocking...I know. | |
Of course, I had heard of it. I am a big proponent of using Grunt and use it everywhere to help automate my life. And I follow enough people on Twitter/read enough blogs/listen to enough podcast to have gotten ample exposure to Grunticon and it sounded really cool. So when I saw Scott's tweet I took to action. | |
Before reading on, if you're not familiar with [Grunticon](http://filamentgroup.com/lab/grunticon/) or [Grumpicon](http://www.grumpicon.com/), check those out first. | |
Here are kind of the steps on how Grumpicon works: | |
1. Handle drag and dropped SVG files | |
2. Read the SVGs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Originally from http://trendmedia.com/news/infinite-rotating-images-using-jquery-javascript/ | |
var InfiniteRotator = | |
{ | |
itemInterval: 3000, | |
infiniteLoop: function() { | |
setInterval(function(){ | |
$('.sliderItem').eq(currentItem).stop().transition({opacity: 0},2000); | |
//if at last item, reset currentItem to 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rvm use 1.9.2 | |
Using /Users/jlembeck/.rvm/gems/ruby-1.9.2-p290 | |
$ irb | |
~> Console extensions: wirble ap rails2 rails3 pm interactive_editor | |
irb: utc = Time.now.to_i | |
===> 1327626629 | |
irb: time = Time.at(utc) | |
===> 2012-01-26 17:10:29 -0800 | |
irb: time.localtime("-05:00") | |
===> 2012-01-26 20:10:29 -0500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
An attempt at fixing the dreaded iOS orientationchange zoom bug http://adactio.com/journal/5088/. Seems to work! | |
Authored by @scottjehl | |
MIT License. | |
*/ | |
(function(w){ | |
var doc = w.document; | |
if( !doc.querySelectorAll ){ return; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iOS Media Queries | |
// Goal: capture styles for iPhone, iPhone 3G, iPhone 3GS, iPhone 4, iPhone 4S, iPad, and iPad 2 | |
// | |
// Author: Tony Schneider (@tonywok) | |
// Please tell me where I fail. :) | |
// iPhone v(4,4S) portrait | |
// test: black text (overwritten by v* portrait) with blue background | |
@media all and (-webkit-min-device-pixel-ratio: 2) and (orientation: portrait) { | |
a { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WORKS | |
var $validate = array( | |
'id => '/[0-9]{1,}$/i', | |
'startDate' => VALID_NOT_EMPTY | |
); | |
DOES NOT WORK | |
var $validate = array( | |
'id => '/[0-9]{1,}$/i', |
NewerOlder