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
View keybase.md

Keybase proof

I hereby claim:

  • I am Gimi on github.
  • I am gimi (https://keybase.io/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
View powrc.sh
if
[ -f "$rvm_path/scripts/rvm" ]
then
__env="$( "$rvm_path/bin/rvm" . do env --path )"
if
[ -n "$__env" ] &&
[ -s "$__env" ]
then
source "$__env"
fi
@Gimi
Gimi / molokai.vim
Created Jul 27, 2012
The vim colorscheme of molokai (from github.com/tomasr/molokai).
View molokai.vim
" Vim color file
"
" Author: Tomas Restrepo <tomas@winterdom.com>
"
" Note: Based on the monokai theme for textmate
" by Wimer Hazenberg and its darker variant
" by Hamish Stuart Macpherson
"
hi clear
@Gimi
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
Gimi / example.rb
Created Nov 10, 2011
You don't need a library for everything. For example, git.io :)
View example.rb
Git.io.generate 'https://gist.github.com/gists/1355677'
Git.io.generate 'https://github.com/gimi', 'gimi'
Git.io.recognize 'http://git.io/gimi'
@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

Description

Solarized themes (dark and light) for roxterm.

@Gimi
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 (mailto:oldmoe@gmail.com)
# 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 }
end
def attach_function name, arg_types, return_type
@Gimi
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.