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
Number.prototype.timeLeft = function(){ | |
var days = Math.floor(this / 86400); | |
var hours = Math.floor((this - (days * 86400)) / 3600); | |
var minutes = Math.floor((this - ((hours * 3600) + (days * 86400))) / 60); | |
var seconds = this - ((days * 86400) + (hours * 3600) + (minutes * 60)); |
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
function(data){ | |
//loop through the results with the following function | |
$.each(data.photoset.photo, function(i,item){ | |
//build the url of the photo in order to link to it | |
var photoURL = 'http://farm' + item.farm + '.static.flickr.com/' + item.server + '/' + item.id + '_' + item.secret + '_m.jpg' | |
//turn the photo id into a variable | |
var photoID = item.id; |
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
<!doctype html> | |
<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]--> | |
<!--[if IE 7]> <html class="no-js ie7 oldie" lang="en"> <![endif]--> | |
<!--[if IE 8]> <html class="no-js ie8 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
{% comment %}<meta charset="utf-8">{% endcomment %} | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>{% if page.title %}{{ page.title }}{% endif %}</title> | |
<meta name="description" content="{{ page.description }}"> |
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
--- | |
layout: default | |
body_id: about | |
title: About Kyle Rush | |
description: I optimize web apps for performance, conversions and user experience. I am the Deputy Director of Frontend Development at Obama for America. | |
--- | |
<div id="kyle-rush-img" class="img"></div> | |
<p>Hi, my name is Kyle Rush. I work on web apps and focus most of my efforts on optimizing the user experience. That means I get too much excitement of making things load faster, optimizing for conversions with a/b and multivariate tests and using analytic data to improve how users interact with web apps.</p> |
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
--- | |
layout: post_entry | |
body_id: blog | |
title: How to use the Flickr API | |
description: In this tutorial, you'll learn how the basics of using the Flickr API, requesting data in JSON format, experimenting with an optional argument, and what to do with the data you receive from a request. | |
--- | |
<!--blog post html content here--> | |
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
{% for post in site.posts %} | |
<article class="{% if forloop.first %}first{% elsif forloop.last %}last{% else %}middle{% endif %}"> | |
<div class="article-head"> | |
<h2 class="title"><a href="/{{ post.url }}/" class="js-pjax">{{ post.title }}</a></h2> | |
<p class="date">{{ post.date | date: "%b %d, %Y" }}</p> | |
</div><!--/.article-head--> | |
<div class="article-content"> | |
{{ post.long_description }} | |
<a href="/{{ post.url }}/" class="full-post-link js-pjax">Read more</a> | |
</div><!--/.article-content--> |
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
[maxcdn] | |
alias = aliashere | |
consumer_key = consuerkeyhere | |
consumer_secret = consumersecrethere |
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
[s3] | |
access_id = accessidhere | |
secret_key = secretkeyhere |
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
#!/usr/bin/env python | |
#install the follow first: | |
#sudo easy_install pip | |
#sudo pip install -U boto | |
#sudo pip install configparser |
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
_gaq.push(['_trackEvent', 'Donate error', 'field validation error', 'email']); |
OlderNewer