This file contains hidden or 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 ruby | |
| require 'json' | |
| require 'pp' | |
| require 'curb' | |
| # requires serialized flickr json file to be $stdin or specified on the command line and then | |
| # downloads the files to the current directory | |
| def chunk_array(array, pieces=2) | |
| len = array.length; | |
| mid = (len/pieces) | |
| chunks = [] |
This file contains hidden or 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 PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
| <html> | |
| <head> | |
| <meta name="apple-mobile-web-app-capable" content="yes"/> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
| <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0,width=device-width"/> | |
| <script src="../oni-apollo.js" type="text/javascript"></script> | |
| <script type="text/sjs"> | |
| // roland's hacked version, change the YQL query below and do your own | |
| // photo mashup! |
This file contains hidden or 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 PUBLIC "-//W3C//DTD HTML 4.01//EN"> | |
| <html> | |
| <head> | |
| <meta name="apple-mobile-web-app-capable" content="yes"/> | |
| <meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
| <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0,width=device-width"/> | |
| <script src="../oni-apollo.js" type="text/javascript"></script> | |
| <script type="text/sjs"> | |
| // roland's hacked version, change the YQL query below and do your own | |
| // photo mashup! |
This file contains hidden or 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
| // led_blink.c | |
| // for NerdKits with ATmega168 | |
| // [email protected] | |
| #define F_CPU 14745600 | |
| #include <avr/io.h> | |
| #include <avr/interrupt.h> | |
| #include <avr/pgmspace.h> | |
| #include <inttypes.h> |
This file contains hidden or 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 ruby | |
| require 'json' | |
| require 'pp' | |
| require 'curb' | |
| # requires serialized flickr json file to be $stdin or specified on the command line and then | |
| # downloads the flickr "sq" (75x75) files to the current directory | |
| def chunk_array(array, pieces=2) | |
| len = array.length; | |
| mid = (len/pieces) | |
| chunks = [] |
This file contains hidden or 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 ruby | |
| require 'json' | |
| require 'pp' | |
| require 'curb' | |
| # requires serialized flickr json file to be $stdin or specified on the command line and then | |
| # downloads the flickr "sq" (75x75) files to the current directory | |
| def fetch_1_at_a_time(urls) | |
| easy = Curl::Easy.new | |
| easy.follow_location = true |
This file contains hidden or 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 ruby | |
| require 'json' | |
| require 'pp' | |
| require 'curb' | |
| # requires serialized flickr json file to be $stdin or specified on the command line and then | |
| # downloads the flickr "Z" files which are 640x481 for 5MP originals (481 is odd methinks!) to the current directory | |
| def fetch_1_at_a_time(urls) | |
| easy = Curl::Easy.new | |
| easy.follow_location = true |
This file contains hidden or 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 ruby | |
| require 'json' | |
| require 'pp' | |
| require 'fileutils' | |
| require 'getoptlong' | |
| # requires serialized flickr json file to be $stdin or specified on the command line and then | |
| # copies flickr "Z" files which are 640x480 to the current directory | |
| # for 5MP original somehow height is 481 (flickr bug?) so 481 height jpgs are ignored | |
| # 1 parameter is required: "-d directory" where directory is the directory with the Z files |