Skip to content

Instantly share code, notes, and snippets.

@anekos
anekos / .ghci
Created Feb 17, 2014
ghci のプロンプト
View .ghci
:set prompt "\x1b[33;1;5m(◕‿‿◕)\x1b[0m "
@anekos
anekos / yamr.sh
Last active Aug 29, 2015
yamr 起動用スクリプト
View yamr.sh
#!/bin/sh
DIR=/home/anekos/project/yamr
SCRIPT="$DIR/yamr.rb"
if [ -z "$1" ]
then
if [ "$XMONAD_LAUNCHER" = 1 ]
then
prefix=setsid
View nazo.scala
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 Apr 16, 2014
Open one or more URLs in a new background tab
View btopen.js
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 Apr 18, 2014
フォントサンプルの HTML を出力する #Linux
View generate-font-sample-html.bash
#!/bin/bash
text="${1:-'ねこ 猫 ネコ cat CAT Cat 1234567890 + - * / λ'}"
font_size=20
OLD_IFS="$IFS"
cat <<-EOT
@anekos
anekos / rc.cl
Last active Aug 29, 2015
iron-maiden 取扱説明書
View rc.cl
インストール
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 Jun 1, 2014
format 関数で join ができる common lisp
View cl-join.cl
(format t "PATH=~{~A~^:~}" '(cat is kawaii)) ; PATH=CAT:IS:KAWAII
@anekos
anekos / refe-color
Created Jun 8, 2014
refe-color: Ruby の refe コマンドの出力に色つけたりする
View refe-color
#!/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 Aug 29, 2015
ranger command - :mark_similars - Mark the files whose name is similar to the selected file.
View README.md

Before

Before

After :mark_simalars

After

Requirements

@anekos
anekos / .compton.conf
Created Sep 24, 2014
compton の設定
View .compton.conf
# 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;