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
<div id="slideshow"> | |
<img id="container" src="http://placekitten.com/400" alt="kitten" /> | |
<img id="container" src="http://placekitten.com/250" style="display:none;" alt="kitten" /> | |
<img id="container" src="http://placekitten.com/300" style="display:none;" alt="kitten" /> | |
<img id="container" src="http://placekitten.com/200" style="display:none;" alt="kitten" /> | |
<img id="container" src="http://placekitten.com/500" style="display:none;" alt="kitten" /> | |
</div> | |
<script src="solution.js"></script> |
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
`brew install postgis` | |
But you don't have gdal installed (a dependency) so brew trys to install gdal aaand... | |
Fails with: `'gcc-4.2' failed with exit status 1` | |
Solutuion: Run brew install in verbose mode | |
`brew install -vd postgis` or `brew install -vd gdal` |
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
cd ~ | |
sudo apt-get update | |
sudo apt-get install openjdk-7-jre-headless -y | |
### Check http://www.elasticsearch.org/download/ for latest version of ElasticSearch and replace wget link below | |
# NEW WAY / EASY WAY | |
wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.deb | |
sudo dpkg -i elasticsearch-0.90.0.deb |
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
[].forEach.call( | |
document.querySelectorAll('.awsome'), | |
function(el){ | |
doStuffWith(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="keywords" lang="de" content="Zeitleiste, Zeitlinie, Zeitkarte, Geschichte, Chronologie"> | |
<meta name="keywords" lang="en" content="Timeline, Timemap, History, Chronology"> | |
<title>Timeline - Proof-of-concept</title> | |
<!-- That's my local d3 path. When working locally, use your local path. --> |
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
/* USAGE: | |
$(function(){ | |
var steps = new Stepper("#steps"); | |
steps.addSlide(1, function(){ this.canvas.text("slide 1"); }); | |
steps.addSlide(2, function(){ this.canvas.text("slide 2"); }); | |
steps.go(); | |
}); | |
*/ | |
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
/** | |
* Miso.Dataset - v0.4.1 - 11/19/2012 | |
* http://github.com/misoproject/dataset | |
* Copyright (c) 2012 Alex Graul, Irene Ros; | |
* Dual Licensed: MIT, GPL | |
* https://github.com/misoproject/dataset/blob/master/LICENSE-MIT | |
* https://github.com/misoproject/dataset/blob/master/LICENSE-GPL | |
*/ | |
//! moment.js |
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
# Jackie Goldberg, Yahoo Design @montdor | |
## 5 ides for content design | |
1. *INNOVATE* | |
- Disrupt with balance [life line to hang on to] | |
- Honor Nielson's Law of Internet UX | |
- make diversity meaningful | |
2. *CLARIFY* |
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
#!/bin/sh | |
echo "updating ubuntu" | |
sudo apt-get -qq update | |
sudo apt-get -qq upgrade | |
# development | |
echo "installing development tools" | |
sudo apt-get -qq install build-essential |
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
/*! | |
* toggleAttr() jQuery plugin | |
* @link https://gist.github.com/aboutaaron/6916c539db4ee9f66d51 | |
* @description .toggleClass() but for attrs. Useful for toggling classes with SVGs or anything that's not a class | |
* @author Aaron Williams <http://aboutaaron.com/> | |
* @thanks: Mathias Bynens <http://mathiasbynens.be/> for original | |
*/ | |
jQuery.fn.toggleAttr = function(attr, value) { | |
return this.each(function() { | |
var $this = $(this); |