Skip to content

Instantly share code, notes, and snippets.

View griffin-stewie's full-sized avatar

griffin-stewie griffin-stewie

View GitHub Profile
makeSearchCommand({
name: "kinokuniya_isbn",
url: "http://bookweb.kinokuniya.co.jp/hb/tokushima/wshosea.cgi?HITCNT=20&W-ISBN={QUERY}&W-TITLE=&W-TITLE2=&W-TITLE3=&W-AUTHOR=&W-KAUTH=&W-PUBLISH=&W-BUN=&W-NDC=&W-YEAR1=&W-MONTH=&W-MONTH2=&imageField.x=26&imageField.y=7",
icon: "",
description: "Searches <a href=\"http://bookweb.kinokuniya.co.jp/\">紀伊國屋書店</a> for your words.",
});
makeSearchCommand({
name: "kinokuniya",
url: "http://bookweb.kinokuniya.co.jp/guest/cgi-bin/wshosea.cgi?KEYWORD={QUERY}",
icon: "",
description: "Searches <a href=\"http://bookweb.kinokuniya.co.jp/\">紀伊國屋書店</a> for your words.",
});
makeSearchCommand({
name: "j-search.twitter",
url: "http://twitter.1x1.jp/search/?source=&keyword={QUERY}&lang=&text=1",
icon: "",
description: "Searches <a href=\"http://twitter.1x1.jp/search/\">Twitter 検索</a> for your words.",
});
makeSearchCommand({
name: "search.twitter",
url: "http://search.twitter.com/search?q=&ands={QUERY}&phrase=&ors=&nots=&tag=&lang=ja&from=&to=&ref=&near=&within=15&units=mi&since=&until=&rpp=50",
icon: "",
description: "Searches <a href=\"http://search.twitter.com/\">Twitter Search</a> for your words.",
});
@griffin-stewie
griffin-stewie / vcard2kotoeri.rb
Created September 23, 2012 08:16
Happy-Go-Lucky: 【要Mac】[iOS6] 連絡先に登録した顔文字などをユーザ辞書に登録するスクリプト 【うまくいくといいな】 http://www.toshiya240.com/2012/09/ios6.html の Ruby 版
#!/usr/bin/env ruby
require 'rubygems'
require 'vpim/vcard'
ARGV.each do |file|
cards = Vpim::Vcard.decode(open(file))
cards.each do |card|
puts %Q["#{card.field("X-phonetic-last-name").value}","#{card.name.family}","無品詞"]
end
@griffin-stewie
griffin-stewie / ALAssetsLibrary+CSNAdditions.h
Created March 22, 2014 10:43
Category method to get permission before using ALAssetsLibrary like ACAccountStore, EKEventStore.
//
// ALAssetsLibrary+CSNAdditions.h
//
// The MIT License (MIT)
//
// Copyright (c) 2014 griffin-stewie
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
@griffin-stewie
griffin-stewie / 0_reuse_code.js
Created March 24, 2014 13:36
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@griffin-stewie
griffin-stewie / github.css
Last active April 27, 2021 00:46 — forked from andyferra/github.css
Pandoc で github 風 CSS を使った standalone な html を生成するための CSS(要 pandoc 1.12.3) http://griffin-stewie.hatenablog.com/entry/2014/03/28/125029
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
//
// UIColor+CSNAdditions.h
//
// The MIT License (MIT)
//
// Copyright (c) 2014 griffin-stewie
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of
// this software and associated documentation files (the "Software"), to deal in
// the Software without restriction, including without limitation the rights to
@griffin-stewie
griffin-stewie / sample.adoc
Created April 18, 2015 12:49
this is sample

Asciidoc Sample