Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name favlevel
// @namespace http://www.hatena.ne.jp/hitode909/
// @description show favotter level
// @include http://twitter.com/*
// @include https://twitter.com/*
// @require http://code.jquery.com/jquery-1.3.2.min.js
// ==/UserScript==
(function() {
(function bookmarkIconStyleSetup() {
GM_addStyle([
"div.tooltip {",
" display: block;",
" position: absolute;",
" margin: 0px;",
" max-width: 50%;",
" padding: 5px;",
" z-index: 2;",
" list-style: none;",
@Cside
Cside / htnIcon-onGoogle.user.js
Created November 4, 2010 14:25
Googleの検索結果にはてなのお気に入りユーザーのアイコンを表示
// ==UserScript==
// @name htnIcon-onGoogle
// @namespace http://www.hatena.ne.jp/Cside
// @include http://www.google.co.jp/search*
// ==/UserScript==
var hatenaID;
var favs = [];
var entries = [];
@Cside
Cside / Slider-Interface-of-Hatena-Bookmark's-Threshold.user.js
Created November 24, 2010 08:04
はてなブックマークの◯◯Usersをスライダーで調節するユーザースクリプト
// ==UserScript==
// @name Slider-Interface-of-Hatena-Bookmark's-Threshold
// @namespace http://d.hatena.ne.jp/Cside
// @include http://b.hatena.ne.jp/*
// ==/UserScript==
function inputAndCount(mode) {
var threshold;
var loc = location.href;
@Cside
Cside / Hatebu-FavotterLike.user.js
Created November 25, 2010 14:24
はてブのお気に入りページをふぁぼったーライクに
// ==UserScript==
// @name Hatebu-FavotterLike
// @namespace http://www.hatena.ne.jp/Cside
// @description はてブのお気に入りページをふぁぼったーライクに
// @include http://b.hatena.ne.jp/*
// ==/UserScript==
(function () {
var lv1 = 4;
var lv2 = 5;
@Cside
Cside / launchd-setting-of-HatebuFavoriteGrowler
Created December 29, 2010 10:17
HatebuFavoriteGrowlerの自動起動設定ファイル
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>net.cside.HatebuFavoriteGrowler</string>
<key>ProgramArguments</key>
<array>
<string>絶対パス /hatebu-favorite-growler.pl</string>
<string>あなたのUser ID</string>
@Cside
Cside / .gitignore
Created January 3, 2011 11:45
.gitignore
*.o
*.lo
*.la
#*#
.*.rej
*.rej
.*~
*~
.#*
.DS_Store
@Cside
Cside / find-modules-from-ack.pl
Created January 3, 2011 23:54
ack 'use 'の出力ファイルから仕様モジュールの名前を抜き出す
use Path::Class;
use List::MoreUtils qw/uniq/;
my $file = file(__FILE__)->dir->file('ack_log.txt');
my @lines = $file->slurp;
my $exclude = 'exclude_string';
my @modules = uniq(
grep {
$_ !~ /$exclude/;
@Cside
Cside / modules.txt
Created January 8, 2011 16:33
modules used on Catalyst
Cwd
ExtUtils::MakeMaker
Sort::Versions
Module::Install::Base
Carp
Config
File::Spec
Net::FTP
Fcntl
File::Find
@Cside
Cside / GmailSender.pm
Created January 30, 2011 04:03
Gmailでメールを送信するクラス
package GmailSender;
use strict;
use warnings;
use Class::Accessor::Lite (
new => 1,
rw => [ qw(
username
password
from
to