Skip to content

Instantly share code, notes, and snippets.

Avatar
💩
ときどき引っかかって流れない( ・ั﹏・ั)

Harai Akihiro harai

💩
ときどき引っかかって流れない( ・ั﹏・ั)
View GitHub Profile
@harai
harai / suii
Created Jun 8, 2012 — forked from anonymous/suii
野菜の栄養価の推移
View suii
キャベツ, 水分(g), カルシウム(mg), 鉄(mg), A(IU), B1(mg), B2(mg), C(mg)
1947, 94.5, 9, 3 , 10, 0.08, 0.16, 40
1950, 94.4, 9, 3 , 0, 0.08, 0.30, 40
1954, 94.4, 47, 0.4, 0, 0.08, 0.30, 40
1963, 92.3, 45, 0.4, 100, 0.08, 0.05, 50
1982, 92.4, 43, 0.4, 5, 0.05, 0.05, 44
2000, 92.7, 43, 0.3, 14, 0.04, 0.03, 41
2010, 92.7, 43, 0.3, 14, 0.04, 0.03, 41
たまねぎ, 水分, カルシウム, 鉄, A, B1, B2, C
@harai
harai / gist:3942771
Created Oct 24, 2012
refinerycms Error
View gist:3942771
$ refinerycms rickrockstar
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/images/rails.png
create app/assets/javascripts/application.js
View gist:3956013
$ pry
[1] pry(main)> $:.sort
=> ["/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/coderay-1.0.7/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/method_source-0.8/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/pry-0.9.10/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/pry-doc-0.4.4/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/rb-readline-0.4.2/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/slop-3.3.3/lib",
"/home/jharai/.rvm/gems/ruby-1.9.3-p0/gems/yard-0.8.2.1/lib",
"/home/jharai/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1",
View order before and after tsort
before tsort: [[nil]]-> [[:load_environment_hook]] ->[[nil]]
before tsort: [[:load_environment_hook]]-> [[:load_active_support]] ->[[nil]]
before tsort: [[:load_active_support]]-> [[:preload_frameworks]] ->[[nil]]
before tsort: [[:preload_frameworks]]-> [[:initialize_logger]] ->[[nil]]
before tsort: [[:initialize_logger]]-> [[:initialize_cache]] ->[[nil]]
before tsort: [[:initialize_cache]]-> [[:initialize_dependency_mechanism]] ->[[nil]]
before tsort: [[:initialize_dependency_mechanism]]-> [[:bootstrap_hook]] ->[[nil]]
before tsort: [[nil]]-> [["i18n.callbacks"]] ->[[nil]]
before tsort: [[nil]]-> [["active_support.initialize_whiny_nils"]] ->[[nil]]
before tsort: [["active_support.initialize_whiny_nils"]]-> [["active_support.deprecation_behavior"]] ->[[nil]]
@harai
harai / .mayu
Created Jun 28, 2013
mayu for linux Dvorak on MacBook key binding
View .mayu
include "109.mayu"
# mac key def
def key MacEisuu = 0x7b
def key MacKana = 0x7a
# Dvorak1
def subst *Minus = *Atmark
def subst *CircumflexAccent = *LeftSquareBracket
@harai
harai / Font Changer for Kindle Cloud Reader
Last active May 23, 2020
A Greasemonkey script which changes the font family of Kindle Cloud Reader to sans-serif
View Font Changer for Kindle Cloud Reader
// ==UserScript==
// @name Font Changer for Kindle Cloud Reader
// @namespace https://github.com/harai/
// @include https://read.amazon.com/*
// @run-at document-start
// @version 1
// ==/UserScript==
if (!location.pathname.match(/KindleReaderApp.html$/)) {
return;
@harai
harai / Mapsだけは日本語で! for Google Maps™ Greasemonkey Script
Last active Dec 23, 2015
Mapsだけは日本語で! for Google Maps™ Greasemonkey Script
View Mapsだけは日本語で! for Google Maps™ Greasemonkey Script
// ==UserScript==
// @name Mapsだけは日本語で! for Google Maps™
// @namespace https://github.com/harai/
// @include https://www.google.co.jp/maps*
// @include http://www.google.co.jp/maps*
// @include https://www.google.com/maps*
// @include http://www.google.com/maps*
// @include https://maps.google.co.jp/*
// @include http://maps.google.co.jp/*
// @include https://maps.google.com/*
View gist:6699116
<?xml version="1.0"?>
<root>
<item>
<name>Key Bindings of Akihiro HARAI</name>
<identifier>private.akihiro_default</identifier>
<autogen>__KeyToKey__ KeyCode::I, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L | ModifierFlag::NONE, KeyCode::CURSOR_UP, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::J, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L | ModifierFlag::NONE, KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::K, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L | ModifierFlag::NONE, KeyCode::CURSOR_DOWN, ModifierFlag::OPTION_L</autogen>
<autogen>__KeyToKey__ KeyCode::L, ModifierFlag::COMMAND_L | ModifierFlag::OPTION_L | ModifierFlag::NONE, KeyCode::CURSOR_RIGHT, ModifierFlag::OPTION_L</autogen>
View gist:9049959
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_45, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.11.0-15-generic", arch: "amd64", family: "unix"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from /usr/share/maven/conf/settings.xml
[DEBUG] Reading user settings from /home/jharai/.m2/settings.xml
[DEBUG] Using local repository at /home/jharai/.m2/repository
@harai
harai / gist:91c87437b18331e51a23
Last active Aug 29, 2015
ライフチェンジングなpercolとautojumpの紹介 - 404 Engineer Logs http://blog.zoncoen.net/blog/2014/01/14/percol-autojump-with-zsh/ のUbuntu 14.04対応版
View gist:91c87437b18331e51a23
function exists { which $1 &> /dev/null }
if exists percol; then
function percol_select_history() {
local tac
BUFFER=$(history | sed -e "s/^\\s*[0-9]*\\s*\\*\?\\s*//g" | tac | percol --query "$LBUFFER")
CURSOR=$#BUFFER # move cursor
zle -R -c # refresh
}
You can’t perform that action at this time.