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
# convert images from source to create buffer frames for blending | |
convert -verbose flickrcam/*jpg -delay 10 -morph 10 flickranim/%05d.morph.jpg | |
# run through ffmpeg to combine/transcode to mp4 | |
ffmpeg -r 25 -i flickranim/%05d.morph.jpg flickranim/output.mp4 |
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
<?php | |
// download all flickr images from a given userid | |
// userid is embedded in this url | |
$key = "enterkeyhere"; | |
$url = "https://api.flickr.com/services/rest/?method=flickr.people.getPhotos&api_key=".$key."&user_id=120759744%40N07&per_page=80&page="; | |
$append = "&format=json&nojsoncallback=1"; | |
for($i=1; $i<4; $i++){ // 3 pages of 80 images | |
$uri = $url.$i.$append; |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
mr Marathi | |
bs Bosnian | |
ee_TG Ewe (Togo) | |
ms Malay | |
kam_KE Kamba (Kenya) | |
mt Maltese | |
ha Hausa | |
es_HN Spanish (Honduras) | |
ml_IN Malayalam (India) | |
ro_MD Romanian (Moldova) |
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
namespace :spec do | |
namespace :units do | |
desc "Run unit specs with PATTERN in the spec file name" | |
RSpec::Core::RakeTask.new(:selective => "db:test:prepare") do |t| | |
t.pattern = FileList["spec/**/*#{ENV['PATTERN']}*_spec.rb"].exclude("spec/integration/**/*_spec.rb") | |
end | |
end | |
namespace :integration do | |
desc "Run integration specs with PATTERN in the spec file name" |
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
# Using the web automation driver (watir-webdriver) through the tor network | |
# Automates webpage actions & bypasses the voting limit on polldaddy | |
# Casts a vote every 3 seconds for a total of 1000 votes | |
require 'watir-webdriver' | |
profile = Selenium::WebDriver::Firefox::Profile.new | |
profile.proxy = Selenium::WebDriver::Proxy.new :http => '127.0.0.1:8118' | |
b = Watir::Browser.new :firefox, :profile => profile | |
#b = Watir::Browser.new :firefox | |
b.goto 'speakimge.wordpress.com/2012/01/25/under-the-covers/' |
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
#symlink gcc to a non-llvm version installed xCode's CLI tools | |
if [ -f /usr/bin/gcc-4.2 ]; then | |
sudo rm /usr/bin/gcc | |
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/gcc | |
sudo rm /usr/bin/cc | |
sudo ln -s /usr/bin/gcc-4.2 /usr/bin/cc | |
fi |
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
config.json | |
reading-image.png |