Skip to content

Instantly share code, notes, and snippets.

@anekos
anekos / .ghci
Created February 17, 2014 12:24
ghci のプロンプト
:set prompt "\x1b[33;1;5m(◕‿‿◕)\x1b[0m "
@anekos
anekos / yamr.sh
Last active August 29, 2015 13:57
yamr 起動用スクリプト
#!/bin/sh
DIR=/home/anekos/project/yamr
SCRIPT="$DIR/yamr.rb"
if [ -z "$1" ]
then
if [ "$XMONAD_LAUNCHER" = 1 ]
then
prefix=setsid
package example
import scala.scalajs.js
import js.Dynamic.{ global => g }
import js.annotation.JSExport
@JSExport
object ScalaJSExample {
@JSExport
def main(): Unit = {
@anekos
anekos / btopen.js
Created April 16, 2014 14:29
Open one or more URLs in a new background tab
js << EOM
commands.add(
["backgroundtabopen", "bt[open]", "btabnew"],
"Open one or more URLs in a new background tab",
function (args) {
let index = tabs.getTab();
let special = args.bang;
args = args.string;
if (options.get("activate").has("all", "tabopen"))
special = !special;
@anekos
anekos / generate-font-sample-html.bash
Created April 18, 2014 11:31
フォントサンプルの HTML を出力する #Linux
#!/bin/bash
text="${1:-'ねこ 猫 ネコ cat CAT Cat 1234567890 + - * / λ'}"
font_size=20
OLD_IFS="$IFS"
cat <<-EOT
@anekos
anekos / rc.cl
Last active August 29, 2015 14:00
iron-maiden 取扱説明書
インストール
1. sbcl をインストール
2. quicklisp をインストール http://www.quicklisp.org/beta/
3. sbcl で以下の実行
> (ql:quickload :clx)
> (ql:quickload :cl-ppcre)
4. git checkout -t origin/feature/key-map-with-class
5. iron-maiden のディレクトリで make
@anekos
anekos / cl-join.cl
Created June 1, 2014 11:35
format 関数で join ができる common lisp
(format t "PATH=~{~A~^:~}" '(cat is kawaii)) ; PATH=CAT:IS:KAWAII
@anekos
anekos / refe-color
Created June 8, 2014 05:56
refe-color: Ruby の refe コマンドの出力に色つけたりする
#!/bin/bash
VAL_m='1'
VAL_header='1;4'
VAL_at='1;34'
VAL_quote='44'
sed_pattern=`printf '
s/\[\[m:/\[%sm/g ;
s/\]\]/\[0m/g ;
@anekos
anekos / README.md
Last active August 29, 2015 14:03
ranger command - :mark_similars - Mark the files whose name is similar to the selected file.

Before

Before

After :mark_simalars

After

Requirements

@anekos
anekos / .compton.conf
Created September 24, 2014 22:34
compton の設定
# Shadow
shadow = false;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 7;
shadow-offset-x = -7;
shadow-offset-y = -7;
# shadow-opacity = 0.7;
# shadow-red = 1.0;