This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# 参考サイト: http://tukaikta.blog135.fc2.com/blog-entry-224.html | |
# ================各種設定================ | |
# ダウンロードするファイル (GNU 日本語man) | |
# | |
# http://linuxjm.sourceforge.jp/ からダウンロードするファイルを指定します。 | |
#export GNUJMAN=man-pages-ja-20120915.tar.gz | |
#export GNUJMAN=man-pages-ja-20150315.tar.gz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@misc{soumu, | |
author = {総務省}, | |
title = {平成25年通信利用動向調査の結果}, | |
note = {\url{http://www.soumu.go.jp/menu_news/s-news/01tsushin02_02000072.html}}, | |
year = {2014} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* poker.js | |
* | |
* @version 0.1.1 | |
* @author think49 | |
* @url https://gist.github.com/think49/39c020a54939513cb2fd | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
'use strict'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bad | |
def compute_thing(thing) | |
if thing[:foo] | |
update_with_bar(thing) | |
if thing[:foo][:bar] | |
partial_compute(thing) | |
else | |
re_compute(thing) | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# ブレース展開に変数を使う(実行例) | |
# | |
$ target=10 | |
$ | |
$ echo {1..$target} | |
{1..10} | |
$ | |
$ eval echo {1..$target} | |
1 2 3 4 5 6 7 8 9 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
#数値を16進数文字列に | |
p 65.to_s(16) #=> "41" | |
#数値をASCII文字に | |
p 65.chr #=> "A" | |
#文字列を16進数とみなして数値に | |
p "41".hex #=> 65 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Rarejob Note Creator | |
// @namespace maripo.org | |
// @description Create evernote notes for RareJob lessons | |
// @include https://www.rarejob.com/login/top.php* | |
// @grant none | |
// @version 1 | |
// ==/UserScript== | |
(function () { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface キャラ { | |
public void 死ぬ() | |
} | |
abstract class Abs敵キャラ implements キャラ{ | |
String _name = "名無しさん" | |
public void 死ぬ(){ | |
println "${_name}死亡" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
シェルスクリプト問題 | |
はじめに | |
シェルスクリプトでは算術演算にexprコマンドを使います。 | |
# exprコマンドで実行した結果をaの変数に格納する | |
a=`expr 1+2` | |
またbashの機能として |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var interval = 10 * 60 * 1000; // 10分 | |
var where = '#limechat'; | |
function setTimeout(func, time) | |
{ | |
println("タイマーを開始します。: " + time); | |
java.lang.Thread.sleep(time); | |
func(); | |
} |