Skip to content

Instantly share code, notes, and snippets.

@snaka
snaka / ldr_unread_notifier.rb
Created May 14, 2009 19:30
livedoor Reader unread subscribes count notifier
#!/usr/bin/ruby
# livedoorReader未読数更新チェッカ
#
require 'net/http'
require 'pstore'
require 'rubygems'
require 'pit'
require 'ruby_gntp'
// chromium latest build 監視bot
import("storage", "cron");
// latest build no store
if (!storage.latest) {
storage.latest = 0;
}
const BASE_URL = "http://build.chromium.org/buildbot/snapshots/sub-rel-mac/";
var latestBuildNo = wget(BASE_URL + "LATEST");
@snaka
snaka / chromiumBot.js
Created May 19, 2009 22:01
chromium build watcher
/* appjet:version 0.1 */
import("storage", "cron", "dlog");
// latest build no store
if (!storage.latest) {
storage.latest = 0;
}
const BASE_URL = "http://build.chromium.org/buildbot/snapshots/sub-rel-mac/";
var latestBuildNo = wget(BASE_URL + "LATEST");
// pino.js 修正
// COMMAND /////////////////////////////////////////////////////// {{{
commands.addUserCommand(
["pinneditemopen", "pino"],
"Open livedoor Reader(and clone server) pinned item",
function(args) {
let pins = new Pins();
if (args.string == "") {
let pin;
let max = (args.count >= 1) ? args.count : openItemsCount();
@snaka
snaka / gist:116763
Created May 23, 2009 20:34
delicious_search.jsに”新規タブでひらく"オプションを追加する。
$ svn diff delicious_search.js
Index: delicious_search.js
===================================================================
--- delicious_search.js (リビジョン 33386)
+++ delicious_search.js (作業コピー)
@@ -191,7 +191,10 @@
commands.addUserCommand(["delicious[search]","ds[earch]"], "Delicious Bookmark Search",
function(args){
if (args.length > 0){
- liberator.open(args[0], liberator.CURRENT_TAB);
".vimperatorrc for snaka
" 2.0pre (created: 2008/12/28)
" options -------------------------------------------------------
"set runtimepath=/Users/snaka/.vimperator
echomsg "Initializing..."
" Beepウザイ
set visualbell
highlight Bell display:none
(function(){
liberator.echomsg("Start js phase...");
// color scheme
if (liberator.has("Win32"))
liberator.execute("colorscheme sweets");
else
liberator.execute("colorscheme sweets_snaka");
// for copy.js
#
# Gyabric - Gyazo server clone with webric -
#
# This software distributable under the terms of an MIT-style license.
# Copyright (c) 2009 snaka<[email protected]>
#
# Based on Gyazo (http://gyazo.com/) by masui
#
# ta-da lists poster
#
require 'net/http'
require 'kconv'
listNo = ARGV[0] #
title = ARGV[1].kconv(Kconv::UTF8, Kconv::SJIS)
# Please modify Proxy host / port, and YOURNAME
//
// hatebuWatchDog.js - hatena bookmark watch dog -
//
// LICENSE: {{{
//
// This software distributable under the terms of an MIT-style license.
//
// Copyright (c) 2009 snaka<[email protected]>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy