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/ruby | |
require 'open-uri' | |
require 'rexml/document' | |
user = '' | |
total = open("http://#{user}.tumblr.com/api/read?type=photo&num=0") do |f| | |
doc = REXML::Document.new(f) | |
REXML::XPath.first(doc, '//posts/@total').value.to_i | |
end |
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
#include <iostream> | |
#include <algorithm> | |
#include <boost/lexical_cast.hpp> | |
int main(int argc, char* argv[]) | |
{ | |
int post_id = boost::lexical_cast<int>(argv[1]); | |
std::string s; | |
char path_chars[] = "0123456789abcdefghijklmnopqrstuvwxyz"; |
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
// ==UserScript== | |
// @name lang ja | |
// @namespace http://twitter.com/cxx | |
// @include http://twitter.com/* | |
// @include http://www.tumblr.com/* | |
// @include http://favstar.fm/* | |
// ==/UserScript== | |
document.body.lang = 'ja'; |
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
// ==UserScript== | |
// @name Bing Images direct link | |
// @namespace http://twitter.com/cxx | |
// @include http://www.bing.com/images/* | |
// @version 0.0.1.20100403 | |
// ==/UserScript== | |
(function() { | |
function $(id) { |
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
require 'rexml/document' | |
REXML::Document.new($stdin).write($stdout, 2) |
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
// ==UserScript== | |
// @name Twittfilter for hitode909-RT | |
// @namespace http://d.hatena.ne.jp/send/ | |
// @description twitter filter | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
// | |
(function (){ | |
var filter = function(node) { |
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
// ==UserScript== | |
// @name Twittfilter for hitode909-RT | |
// @namespace http://d.hatena.ne.jp/send/ | |
// @description twitter filter | |
// @include http://twitter.com/* | |
// @include http://mobile.twitter.com/* | |
// ==/UserScript== | |
// | |
(function (){ |
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 'open-uri' | |
require 'RMagick' | |
include Magick | |
COLS = 18 | |
ChannelDepths = [5, 5, 4] | |
files = [] |
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
// ==UserScript== | |
// @name Show Kanji Image | |
// @namespace http://gyz.heroku.com/ | |
// @include http://twitter.com/* | |
// @include https://twitter.com/* | |
// @version 1.0.2 | |
// ==/UserScript== | |
var $ = function(selectors, context) { | |
return Array.prototype.slice.call((context || document).querySelectorAll(selectors), 0); |
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 'open-uri' | |
require 'net/http' | |
require 'securerandom' | |
require 'tempfile' | |
require 'RMagick' | |
def bin(str) | |
str.dup.force_encoding("ASCII-8BIT") | |
end |
OlderNewer