.times: execute block x number of times - Ex:5.times { puts "executed" }
- execute if true statements can be added to the end of a line:
puts "true" if true
| require 'net/http' | |
| require "cairo" | |
| def get_url time, x, y | |
| str = "http://himawari8-dl.nict.go.jp/himawari8/img/D531106/20d/550/#{time}00_#{x}_#{y}.png" | |
| end | |
| def merge time | |
| puts "Start image process" | |
| w = 20 |
| # | |
| # Himawari-8 Downloader | |
| # | |
| # | |
| # | |
| # This script will scrape the latest image from the Himawari-8 satellite, recombining the tiled image, | |
| # converting it to a JPG which is saved in My Pictures\Himawari\ and then set as the desktop background. | |
| # | |
| # http://himawari8.nict.go.jp/himawari8-image.htm | |
| # |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <dict> | |
| <key>com.google.Chrome</key> |
| udp://tracker.coppersurfer.tk:6969/announce | |
| udp://p4p.arenabg.ch:1337 | |
| udp://p4p.arenabg.com:1337 | |
| http://bttracker.crunchbanglinux.org:6969/announce | |
| http://tracker.aletorrenty.pl:2710/announce |
| // http://www.techrepublic.com/article/convert-the-local-time-to-another-time-zone-with-this-javascript/6016329 | |
| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | |
| <html> <head> | |
| <title></title> | |
| </head> | |
| <body> | |
| <h1></h1> |
| [ | |
| { | |
| "id" : "73F3F654-9EC5-4876-8BF6-474E22029A49", | |
| "assets" : [ | |
| { | |
| "url" : "http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/comp_GL_G004_C010_v03_6Mbps.mov", | |
| "accessibilityLabel" : "Greenland", | |
| "type" : "video", | |
| "id" : "D388F00A-5A32-4431-A95C-38BF7FF7268D", | |
| "timeOfDay" : "day" |
| <?xml version="1.0" encoding="utf-8"?> | |
| <spnOverrides> | |
| <!-- Afghanistan --> | |
| <spnOverride numeric="41201" spn="AWCC" /> | |
| <spnOverride numeric="41240" spn="Areeba" /> | |
| <spnOverride numeric="41250" spn="Etisalat" /> | |
| <spnOverride numeric="41220" spn="Roshan" /> | |
| <!-- Albania --> | |
| <spnOverride numeric="27601" spn="AMC" /> |
| #!/usr/bin/env ruby | |
| #CHEATSHEET_DIR = ".cheatsheets" | |
| cheatsheet = File.open("#{CHEATSHEET_DIR}/rails_cheatsheet.txt", "r") | |
| reader = ->line { puts line } | |
| cheatsheet.each_line &reader |
| === iBridge2,1,iBridge2,3,iBridge2,4,iBridge2,5,iBridge2,7,iBridge2,8_3.5_16P5200_Restore.ipsw | |
| Firmware/dfu/iBEC.j137.RELEASE.im4p | |
| 3723c95ba25706b4650a92177afc28af57e0a236fd0e46b83cffb6140392b63355562b5ed671bda6b5929ff728f0b324 | |
| Firmware/dfu/iBSS.j140k.RELEASE.im4p | |
| 34d7aa36e00b5c772bf7381c821253a714ed2714552a48a478b391faac32bc0eef2577d5a04e01f462648754eb9af69e | |
| Firmware/dfu/iBSS.j137.RELEASE.im4p | |
| 4bb3ecf8b19401a009b5c0003b64ac3bae8258f6d9c42b91831927e348957dfde01384caa3fbee1b6e665d168b46fc47 | |
| Firmware/dfu/iBEC.j680.RELEASE.im4p | |
| 893d17aa768a6ebd8f85b4251ef8f692c766f7b1868bd974a3dc9fcd0dd9608e4e0709bd9208752d9515a636c129378c |