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
<object width="480" height="270"> | |
<param name="allowfullscreen" value="true" /> | |
<param name="allowscriptaccess" value="always" /> | |
<param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=xyz&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=00adef&fullscreen=1" /> | |
<embed src="http://vimeo.com/moogaloop.swf?clip_id=xyz&server=vimeo.com&show_title=0&show_byline=0&show_portrait=0&color=00adef&fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="480" height="270"></embed> | |
<video | |
src="http://www.vimeo.com/play_redirect?clip_id=xyz" | |
controls="controls" |
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/bash | |
# WEB SERVER | |
sudo apt-get update | |
sudo apt-get install nginx | |
# APPS FROM SOURCE | |
cd /usr/local/src/ | |
# PHP (w/FPM for NGINX) |
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
- airbrake | |
- newrelic | |
- todos | |
- robots.txt | |
- favicon | |
- apple-touch-icon | |
- caching | |
- meta description | |
- title | |
- browser compatibility |
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
On-demand: | |
Micro US: $0.02/hour = $127.2/year = ~£80/year | |
Micro EU: $0.025/hour = $159/year = ~£100/year | |
Reserved: | |
Micro US: $54/year + $0.007/hour = $98.52/year = ~£60/year | |
Micro EU: $54/year + $0.01/hour = $117.6/year = ~£75/year |
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
ValueEnum enumval = ValueEnum.fromString(myString); | |
switch (enumval) { | |
case MILK : lap(); break; | |
case WATER: sip(); break; | |
case BEER : quaff(); break; | |
default : dance(); break; | |
} |
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 I in *.jpg ; do exiftool -overwrite_original -Headline=`basename $I .jpg` $I ; done |
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
float afmin = 75; | |
float afmax = 25 ; | |
float maxOmin = 8; | |
float maxOmax = 28; | |
float blobalphamin = 0; | |
float blobalphamax = 30; | |
float scoopamin = 0; | |
float scoopamax = 22; | |
float discamin = 0; | |
float discamax = 30; |
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
// WithHistory v1.0.0 | |
// hello@withassociates.com | |
// | |
// Usage: | |
// $(document).bind('WithHistory.urlDidChange', function() { ... }); | |
// window.withHistory = new WithHistory(); | |
// window.withHistory.pushState(newUrl) // push new url | |
// window.withHistory.url(); // get current url | |
var WithHistory = function() { |
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 | |
rvm install ree | |
rvm use ree@global | |
gem install bundler | |
gem install rake | |
cd ~/wherever/project/lives | |
rvm gemset create project_name | |
echo "rvm use ree@project_name" > .rvmrc | |
`cat .rvmrc` | |
echo -e "source :rubygems\ngem middleman" > Gemfile |
OlderNewer