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
/* | |
atmega8 16pu | |
matrix led controller | |
ISP | |
PC6 RESET | |
PB5 SCK | |
PB4 MISO |
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
/* | |
matrix led board | |
ISP | |
PC6 RESET | |
PB5 SCK | |
PB4 MISO | |
PB3 MOSI |
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
/* | |
atmega8 16pu + um3281 | |
xmass ilumination | |
ISP | |
PC6 RESET | |
PB5 SCK | |
PB4 MISO | |
PB3 MOSI |
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
# coding:utf-8 | |
require "pp" | |
require "twitter" | |
require "net/https" | |
def tweet(cpm,msv) | |
tweet = "#{cpm} cpm, #{msv} microsv" | |
Twitter.configure do |config| | |
config.consumer_key='xxxx' |
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="160" height="210"><param name="allowScriptAccess" value="always" /><param name="movie" value="http://apps.pachube.com/media/pachublog.swf" /><param name="FlashVars" value="feedId=1679002984&dataId=cpm&tagName=Shimane%20Izumo%20Radiation&unitName=cpm&lineColour=FF0066" /><embed src="http://apps.pachube.com/media/pachublog.swf" width="160" height="210" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="feedId=1679002984&dataId=cpm&unitName=cpm&tagName=Shimane%20Izumo%20Radiation&lineColour=FF0066"></embed></object> | |
<object width="160" height="210"><param name="allowScriptAccess" value="always" /><param name="movie" value="http://apps.pachube.com/media/pachublog.swf" /><param name="FlashVars" value="feedId=1679002984&dataId=uSv&tagName=Shimane%20Izumo%20Radiation&unitName=uSv/h&lineColour=FF0066" /><embed src="http://apps.pachube.com/media/pachublog.swf" width="160 |
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
# coding:utf-8 | |
require "pp" | |
require "fileutils" | |
now = Time.now | |
dir = File.join(ENV["HOME"],"gc10",now.strftime("%Y"),now.strftime("%m")) | |
file = File.join(dir,now.strftime("%d")+".txt") | |
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
# coding:utf-8 | |
require "pp" | |
now = Time.now - 3600*24 | |
dir = File.join(ENV["HOME"],"gc10",now.strftime("%Y"),now.strftime("%m")) | |
file = File.join(dir,now.strftime("%d")+".txt") | |
remotedir = File.join("gc10",now.strftime("%Y"),now.strftime("%m")) | |
jar = File.join( |
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
# coding:utf-8 | |
require 'picasa' | |
client = Picasa::Client.new( | |
user_id: "user@gmail.com", | |
password: "password") | |
albums = client.album.list.entries | |
album = albums.find { |album| album.title == "soeks" } | |
unless album | |
album = client.album.create( |
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
# coding:utf-8 | |
require "pp" | |
require "fileutils" | |
require 'pony' | |
now = Time.now | |
dir = File.join(ENV["HOME"],"gc10",now.strftime("%Y"),now.strftime("%m")) | |
file = File.join(dir,now.strftime("%d")+".txt") |
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
# coding:utf-8 | |
require "pp" | |
require "net/https" | |
def xively(temp) | |
uri = URI.parse('https://api.xively.com/v2/feeds/xxxxxxxxxx.xml') | |
https = Net::HTTP.new(uri.host,uri.port) |
OlderNewer