Skip to content

Instantly share code, notes, and snippets.

@Cside
Cside / .replyrc
Last active August 29, 2015 13:56
script_line1 = use strict
script_line2 = use warnings
[Interrupt]
[FancyPrompt]
[DataDumper]
[Colors]
[ReadLine]
[Hints]
[Packages]
#!/bin/sh
branch=$(basename "`git symbolic-ref HEAD 2> /dev/null`")
git push origin $branch;
use Test::More;
use Test::Hook::Guard qw(before);
my $guard = before 'Some::method' => sub {
my (@args) = @_;
is_deeply \@args, [qw(foo bar baz)];
};
// ==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