Skip to content

Instantly share code, notes, and snippets.

View kdxu's full-sized avatar
😈
focusing

Kyoko KADOWAKI kdxu

😈
focusing
View GitHub Profile
SHELL=/bin/sh
ifndef SKETCH_DIRECTORY
SKETCH_DIRECTORY = ${CURDIR}
endif
ifndef OUTPUT_FOLDERNAME
OUTPUT_FOLDERNAME = output
endif
defmodule MyList do
def len([]), do: 0
def len([_head | tail]), do: 1 + len(tail)
def square([]), do: []
def square([head | tail]), do: [head*head | square(tail)]
def map([], _func), do: []
def map([head | tail], func), do: [func.(head) | map(tail, func)]
@kdxu
kdxu / bomb.js
Last active October 4, 2016 10:10
#!/usr/bin/env node
var optimist = require('optimist');
var fs = require('fs');
var path = require('path');
var blessed = require('blessed');
function run () {
var frames = getFrames();
var screen = blessed.screen();
play(screen, frames);
#!/bin/sh
format=$(cat << EOS
Merge pray
feat sparkles
fix wrench
chore tea
refactor hammer
docs memo
@kdxu
kdxu / Dockerfile
Last active February 8, 2017 15:27
Elixir with distillery 用 Dockerfile
FROM trenpixster/elixir:1.4.1
# Compile app
RUN mkdir /app
WORKDIR /app
# Install Elixir Deps
ADD mix.* ./
RUN MIX_ENV=prod mix local.rebar
RUN MIX_ENV=prod mix local.hex --force
if &compatible
set nocompatible
endif
let s:dein_dir = expand('~/.config/nvim/dein')
let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
execute 'set runtimepath^=' . s:dein_repo_dir
call dein#begin(s:dein_dir)
let s:toml = '~/.dein.toml'
call dein#load_toml(s:toml, {'lazy': 0})

Keybase proof

I hereby claim:

  • I am kdxu on github.
  • I am kdxu (https://keybase.io/kdxu) on keybase.
  • I have a public key ASDP3BLmp9FM1wzjAA0aFNZZaOhUZH4IlHlWpETZtC_qqwo

To claim this, I am signing this object:

[[plugins]]
repo = 'Shougo/dein.vim'
[[plugins]]
repo = 'ctrlpvim/ctrlp.vim'
[[plugins]]
repo = 'Shougo/vimproc.vim'
build = 'make'
bind-key -T copy-mode C-Space send-keys -X begin-selection
bind-key -T copy-mode C-a send-keys -X start-of-line
bind-key -T copy-mode C-b send-keys -X cursor-left
bind-key -T copy-mode C-c send-keys -X cancel
bind-key -T copy-mode C-e send-keys -X end-of-line
bind-key -T copy-mode C-f send-keys -X cursor-right
bind-key -T copy-mode C-g send-keys -X clear-selection
bind-key -T copy-mode C-k send-keys -X copy-end-of-line
bind-key -T copy-mode C-n send-keys -X cursor-down
bind-key -T copy-mode C-p send-keys -X cursor-up
bind-key -T copy-mode C-Space send-keys -X begin-selection
bind-key -T copy-mode C-a send-keys -X start-of-line
bind-key -T copy-mode C-b send-keys -X cursor-left
bind-key -T copy-mode C-c send-keys -X cancel
bind-key -T copy-mode C-e send-keys -X end-of-line
bind-key -T copy-mode C-f send-keys -X cursor-right
bind-key -T copy-mode C-g send-keys -X clear-selection
bind-key -T copy-mode C-k send-keys -X copy-end-of-line
bind-key -T copy-mode C-n send-keys -X cursor-down
bind-key -T copy-mode C-p send-keys -X cursor-up