Skip to content

Instantly share code, notes, and snippets.

@foo9
foo9 / 学年別漢字配当表.js
Created October 28, 2011 06:50
学年別漢字配当表.js
(function(global) {
global['小学校指導要領'] = {
'国語': {
//小学校指導要領 第1節 国語:文部科学省 http://www.mext.go.jp/b_menu/shuppan/sonota/990301b/990301d.htm
'学年別漢字配当表': {
//80字
'第一学年': ["一", "右", "雨", "円", "王", "音", "下", "火", "花", "貝", "学", "気", "九", "休", "玉", "金", "空", "月", "犬", "見", "五", "口", "校", "左", "三", "山", "子", "四", "糸", "字", "耳", "七", "車", "手", "十", "出", "女", "小", "上", "森", "人", "水", "正", "生", "青", "夕", "石", "赤", "千", "川", "先", "早", "草", "足", "村", "大", "男", "竹", "中", "虫", "町", "天", "田", "土", "二", "日", "入", "年", "白", "八", "百", "文", "木", "本", "名", "目", "立", "力", "林", "六"],
//160字
'第二学年': ["引", "羽", "雲", "園", "遠", "何", "科", "夏", "家", "歌", "画", "回", "会", "海", "絵", "外", "角", "楽", "活", "間", "丸", "岩", "顔", "汽", "記", "帰", "弓", "牛", "魚", "京", "強", "教", "近", "兄", "形", "計", "元", "言", "原", "戸", "古", "午", "後", "語", "工", "公", "広", "交", "光", "考", "行", "高", "黄", "合", "谷", "国", "黒", "今", "才", "細", "作", "算", "止", "市", "矢", "姉", "思", "紙", "寺", "自", "時", "室", "社", "弱", "首", "秋", "週", "春", "書", "少", "場", "色", "食",
$ bash < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
$ echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile
$ brew install libiconv
$ rvm install 1.9.2 --with-iconv-dir=/usr/local/Cellar/libiconv/1.14/
@foo9
foo9 / recipe.html
Created December 4, 2012 05:07 — forked from machida/html_practice.html
HTMLの練習(このレシピにマークアップをしてみましょう)
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<title>レシピ</title>
</head>
<body>
<header>
<h1>レシピ</h1>
</header>
@foo9
foo9 / recipe.haml
Created December 4, 2012 08:14
HTMLの練習(このレシピにマークアップをしてみましょう)
!!! 5
%html
%head
%meta{:charset => "UTF-8"}
%title レシピ
%body
%header
%h1 レシピ
%article
%header
#include<stdio.h>
int main()
{
const char* hello = "https://www.hellowork.go.jp/";
printf("%s\n", hello);
return 0;
}
# encoding: utf-8
# 参考:Rake http://www2s.biglobe.ne.jp/~idesaku/sss/tech/rake/
require 'rake/clean'
CC = "gcc"
SRCS = FileList["**/*.c"]
OBJS = SRCS.ext("o")
/*!
* jQuery preventDLImg - prevent download image
*
* Copyright 2013, Kouta Fukuhara
*
* Released under the MIT license.
*
* $('img').preventDLImg();
*/
;(function ($) {
/*!
* jQuery preventDLImg - prevent download image
*
* Copyright 2013, Kouta Fukuhara
*
* Released under the MIT license.
*
* $('img').preventDLImg();
*/
;(function(e){e.fn.preventDLImg=function(){var b,c,d,a;return this.each(function(){if("IMG"!==this.tagName)return!0;b=this.src;this.src="data:image/gif;base64,R0lGODlhAQABAIAAAP///////yH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";c=this.width;d=this.height;a=c+"px "+d+"px";this.style.backgroundImage="url("+b+")";this.style.userSelect="none";this.style.webkitUserSelect="none";this.style.MozUserSelect="none";this.style.OUserSelect="none";this.setAttribute("unselectable","on");this.style.backgroundSize=a;this.style.webkitBackgroundSize=
# 命令を受けて処理を実行する
class Receiver
up: ->
console.log "up"
down: ->
console.log "down"
right: ->
console.log "right"
import bpy
import os
wm = bpy.context.window_manager
kc = wm.keyconfigs.new(os.path.splitext(os.path.basename(__file__))[0])
# Map Text
km = kc.keymaps.new('Text', space_type='TEXT_EDITOR', region_type='WINDOW', modal=False)
kmi = km.keymap_items.new('text.move', 'LEFT_ARROW', 'PRESS', oskey=True)