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
// ==UserScript== | |
// @name Save All Page to Gyazo | |
// @namespace http://ssig33.com | |
// @version 1.0 | |
// @author You | |
// @match http://*/* | |
// @match https://*/* | |
// @exclude https://*.youtube.com/ | |
// @exclude https://youtube.com/ | |
// @exclude https://mail.google.com/* |
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
#!/usr/bin/env ruby | |
require 'fileutils' | |
require 'digest/md5' | |
tmpfile = "/tmp/image_upload#{$$}.png" | |
filepath = "/home/yuiseki/Dropbox/Public/gyazo/#{Digest::MD5.hexdigest(filedata)}.png" | |
url = 'http://dl.dropbox.com/u/334064/g/' + File.basename(file) | |
FileUtils.mkdir_p File.dirname(file) |
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
%title 梅ラボ花見 #o873 | |
%script{:src => "http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"} | |
%script{:src => "http://platform.twitter.com/anywhere.js?id=r6SEKr3NYesSmDL8bGeiLw&v=1"} | |
%link{:href => "http://ssig33.com/common.css", :type => "text/css", :rel => "stylesheet"} | |
#all | |
%h1 花見します | |
%h2 誰が来るの? | |
荒川智則 | |
%h2 どこでやんの? | |
代々木公園 |
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
#!/usr/local/bin/ruby -Ks | |
# _*_ coding: utf-8 _*_ | |
require 'rubygems' | |
require 'mechanize' | |
require 'time' | |
MAIL = 'mixi_login_mail_address' | |
PASS = 'mixi_login_pass' | |
DIRECTORY = 'log_directory_path' |
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
_,,....,,_ _人人人人人人人人人人人人人人人_ | |
-''":::::::::::::`''> ゆっくりした結果がこれかよ!!! < | |
ヽ::::::::::::::::::::: ̄^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^Y^ ̄ | |
|::::::;ノ´ ̄\:::::::::::\_,. -‐ァ __ _____ ______ | |
|::::ノ ヽ、ヽr-r'"´ (.__ ,´ _,, '-´ ̄ ̄`-ゝ 、_ イ、 | |
_,.!イ_ _,.ヘーァ'二ハ二ヽ、へ,_7 'r ´ ヽ、ン、 | |
::::::rー''7コ-‐'"´ ; ', `ヽ/`7 ,'==─- -─==', i | |
r-'ァ'"´/ /! ハ ハ ! iヾ_ノ i イ iゝ、イ人レ/_ルヽイ i | | |
!イ´ ,' | /__,.!/ V 、!__ハ ,' ,ゝ レリイi (ヒ_] ヒ_ン ).| .|、i .|| | |
`! !/レi' (ヒ_] ヒ_ン レ'i ノ !Y!"" ,___, "" 「 !ノ i | |
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
#define R 5 | |
#define G 6 | |
#define B 7 | |
#define S 2 | |
#define WAIT 500 | |
int inByte = 0; | |
int inSwitch; | |
bool r, g, b, blink, off; |
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
(^o^)/owata |