Skip to content

Instantly share code, notes, and snippets.

View rummelonp's full-sized avatar
🐈‍⬛
ニャーン

Kazuya Takeshima rummelonp

🐈‍⬛
ニャーン
View GitHub Profile
@wtnabe
wtnabe / ping_and_growl.rb
Created June 7, 2010 10:20
simple network monitor with ping and growl
#! /usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'logger'
=begin
WHATIS
* ping monitoring once every 30 secs
project :test => :shoulda, :renderer => :haml, :stylesheet => :sass, :script => :jquery, :orm => :activerecord
#default routes
APP_INIT = <<-APP
get "/" do
"Hello World!"
end
get :about, :map => '/about_us' do
render :haml, "%p This is a sample blog created to demonstrate the power of Padrino!"
// ==UserScript==
// @name Share2chOnTumblr
// @namespace http://saitamanodoruji.tumblr.com/
// @description Share 2ch conversation on Tumblr as Quote
// @include http://*.2ch.net/test/read.cgi/*
// @include http://*.2ch.net/*/kako/*
// @include http://*.bbspink.com/test/read.cgi/*
// @include http://jbbs.livedoor.jp/bbs/read.cgi/*
// @include http://jbbs.livedoor.jp/*/*/*/*.html
// @include http://p2.chbox.jp/read.php?url=http://*.2ch.net/test/read.cgi/*
// ==UserScript==
// @name hatena diarylist otsune mode
// @namespace http://rails2u.com/
// @description 観測範囲が狭い人向け
// @include http://d.hatena.ne.jp/diarylist
// ==/UserScript==
(function() {
const CONTAINER_XPATH = '//div/ul[@class="list-plain"]';
const LIST_XPATH = '//div/ul[@class="list-plain"]/li';