I hereby claim:
- I am jlembeck on github.
- I am jefflembeck (https://keybase.io/jefflembeck) on keybase.
- I have a public key whose fingerprint is FAA5 1B1B E9EA 5C12 95D1 B777 78B3 99C1 C44E 0460
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
<img alt="[...]" | |
sizes="100vw" | |
srcset=" | |
/case_gallery/smart_p.jpg 320w, | |
/case_gallery/smart_l.jpg 480w, | |
/case_gallery/tablet_p.jpg 768w, | |
/case_gallery/tablet_l.jpg 1024w, | |
/case_gallery/desktop.jpg 1280w | |
"> |
### Keybase proof | |
I hereby claim: | |
* I am jefflembeck on github. | |
* I am jefflembeck (https://keybase.io/jefflembeck) on keybase. | |
* I have a public key whose fingerprint is FAA5 1B1B E9EA 5C12 95D1 B777 78B3 99C1 C44E 0460 | |
To claim this, I am signing this object: |
JavaScript has a few different ways to increment a digit by one, and it's important to understand how each of them work.
Examples:
var i = 0;
var a = i++;
What does a
equal here?
WORKS | |
var $validate = array( | |
'id => '/[0-9]{1,}$/i', | |
'startDate' => VALID_NOT_EMPTY | |
); | |
DOES NOT WORK | |
var $validate = array( | |
'id => '/[0-9]{1,}$/i', |
// 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 { |
/* | |
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; } |
$ 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 |
//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 |
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |