Skip to content

Instantly share code, notes, and snippets.

View nishigori's full-sized avatar
🏠
Working from home

Tak Nishigori nishigori

🏠
Working from home
View GitHub Profile
@hail2u
hail2u / css.vim
Created November 6, 2009 17:58
http://www.vim.org/scripts/script.php?script_id=2150 にrgb()/rgba()のサポートを追加したもの
" Language: Colored CSS Color Preview
" Maintainer: Niklas Hofer <niklas+vim@lanpartei.de>
" URL: svn://lanpartei.de/vimrc/after/syntax/css.vim
" Last Change: 2008 Feb 12
" Licence: No Warranties. Do whatever you want with this. But please tell me!
" Version: 0.6
function! s:FGforBG(bg)
" takes a 6hex color code and returns a matching color that is visible
let pure = substitute(a:bg,'^#','','')
@Jagua
Jagua / .vimperatorrc.readable.vimp
Last active December 17, 2015 18:29
support commands for reading now and/or later on Vimperator.
" Evernote Clearly: Clipper: Clip: " {{{
" Evernote Clearly :: Add-ons for Firefox
" https://addons.mozilla.org/ja/firefox/addon/clearly/
" Evernote Web Clipper :: Add-ons for Firefox
" https://addons.mozilla.org/ja/firefox/addon/evernote-web-clipper/
" Clearly (toggle)
nnoremap e :<C-u>js __readable_by_evernote.__readable_by_evernote__launch(false)<CR>
" Clip to Evernote
nnoremap E :<C-u>js __readable_by_evernote.__readable_by_evernote__launch(true)<CR>
open Spotlib.Spot
open GapiUtils.Infix
open GapiLens.Infix
open GapiLens.StateInfix
open GapiMonad.SessionM
module OAuth2 = GapiOAuth2
module Conv = GapiConversation
module Service = GapiService
@koron
koron / pyibus.vim
Last active December 19, 2015 17:39
Vim 7.4a + if_python on ubuntuでIME(ibus)の制御するスクリプト
" vim:set sts=2 sw=2 tw=0 et:
scriptencoding utf-8
function! s:IsEnable()
" Check version (and patch)
if !(v:version == 703 && has('patch1248') || v:version >= 704)
return 0
end
" Check python
@mgmcintyre
mgmcintyre / Dockerfile
Last active December 27, 2015 23:59
HHVM on Docker on Vagrant
# DOCKER-VERSION 0.6
FROM ubuntu:precise
MAINTAINER Mark McIntyre, m@mgm.io
# Install HHVM
RUN echo deb http://dl.hhvm.com/ubuntu precise main >> /etc/apt/sources.list
RUN echo deb http://archive.ubuntu.com/ubuntu precise main universe >> /etc/apt/sources.list
RUN apt-get update
@voluntas
voluntas / erlang_release.rst
Last active April 7, 2016 13:30
Erlang リリース コトハジメ

Erlang リリース コトハジメ

更新

2014-04-10

バージョン

0.2.1

作者

@voluntas

URL

http://voluntas.github.io/

reltool 周りについて勉強がてらまとめてみました

@voluntas
voluntas / erlang_maps.rst
Last active December 5, 2016 01:54
Erlang/OTP Map コトハジメ

Erlang で、relx と sync を使ったお手軽自動リロード開発環境コトハジメ

relx コトハジメ の内容を把握している読者を想定しています。

Dockerイメージなどを開発環境にしていると、なるべく実際に動く環境に近いような動作環境でテストしたくなります。

一方で、開発環境というのはなるべく手間なく勝手にコンパイルやテストが走ったり、変更点を勝手にリロードしてほしいものです。

relx を使ってリリースイメージに近いような環境でソフトウェアを起動しつつ、 sync を使って自動コンパイル&リロードする環境を作ろうというのがこの記事の趣旨です。

@y-ken
y-ken / nginx.conf
Last active November 19, 2019 08:11
流れに乗ってnginxのログフォーマットにLTSVを採用しました。 2013/03/05リリースのfluentd-0.10.32.gemなら標準のin_tailで、format ltsvとする事でそのまま読み込めます。 proxy先からの応答時間や送出したcookieも記録する汎用的な設定です。
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format ltsv 'domain:$host\t'
'host:$remote_addr\t'
'user:$remote_user\t'
'time:$time_local\t'
'method:$request_method\t'
'path:$request_uri\t'