Skip to content

Instantly share code, notes, and snippets.

Gimi Liang Gimi

Block or report user

Report or block Gimi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Gimi on github.
  • I am gimi ( on keybase.
  • I have a public key whose fingerprint is CEE0 4921 9D22 B667 BA0D 88B4 2E88 203B 8E03 1F35

To claim this, I am signing this object:

View .tmux.conf
set -g prefix C-x
unbind C-b
set -sg escape-time 1
setw -g mode-keys vi
set -g base-index 1
setw -g pane-base-index 1
[ -f "$rvm_path/scripts/rvm" ]
__env="$( "$rvm_path/bin/rvm" . do env --path )"
[ -n "$__env" ] &&
[ -s "$__env" ]
source "$__env"
Gimi / molokai.vim
Created Jul 27, 2012
The vim colorscheme of molokai (from
View molokai.vim
" Vim color file
" Author: Tomas Restrepo <>
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
hi clear
Gimi / parse-json.rb
Created Dec 21, 2011 — forked from mislav/stupid-json.rb
Stupid simple JSON parser
View parse-json.rb
require 'strscan'
require 'forwardable'
# Stupid JSON parser. Only handles well-formed JSON.
# Otherwise, it may go into an endless loop.
class Parser
WSP = /\s+/
OBJ = /[{\[]/
NUM = /-?\d+(\.\d+)?([eE][+-]?\d+)?/
BOL = /(?:true|false)\b/
Gimi / example.rb
Created Nov 10, 2011
You don't need a library for everything. For example, :)
View example.rb '' '', 'gimi' ''
Gimi / README.markdown
Created Nov 7, 2011 — forked from weakish/README.markdown
#Solarized themes (dark and light) for #roxterm.
View README.markdown

Roxterm solarized theme


Solarized themes (dark and light) for roxterm.

Gimi / fiber_race.rb
Created Nov 3, 2011 — forked from raggi/fiber_race.rb
An example race condition using fibers
View fiber_race.rb
# Author:: Mohammad A. Ali (
# Copyright:: Copyright (c) 2008 eSpace, Inc.
# License:: Distributes under the same terms as Ruby
require 'fiber'
class Fiber
#Attribute Reference--Returns the value of a fiber-local variable, using
#either a symbol or a string name. If the specified variable does not exist,
View fiddle_ffi.rb
require 'dl'
require 'fiddle'
module FFI
module Library
def ffi_lib *libs
libs.each { |lib| DL.dlopen lib }
def attach_function name, arg_types, return_type
Gimi / high_function.scala
Created Aug 10, 2011
Use scala high functions in JRuby!
View high_function.scala
object HighFunction {
def foo(num : Int)(f : Int => Int) = f(num)
You can’t perform that action at this time.