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) |
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 | |
mplayer -playlist http://mfile.akamai.com/129932/live/reflector:46056.asx -vo null -ao pcm:waveheader:fast:file=>(lame -q 4 - $1) |
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" | |
def tweet(line) | |
Twitter.configure do |config| | |
config.consumer_key='xxxx' | |
config.consumer_secret='xxxx' | |
config.oauth_token='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
obj-m := radio_rdpc101.o | |
KDIR := /lib/modules/$(shell uname -r)/build | |
PWD := $(shell pwd) | |
default: | |
$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules | |
clean: | |
rm *.ko | |
rm *.o |
OlderNewer