Skip to content

Instantly share code, notes, and snippets.

View ijingo's full-sized avatar
🐽

WANG Ji 王冀 ijingo

🐽
View GitHub Profile
@ijingo
ijingo / config
Last active August 5, 2016 02:37
.config/terminator/config
#~/.config/terminator/config
[global_config]
title_transmit_bg_color = "#d30102"
focus = system
suppress_multiple_term_dialog = True
[keybindings]
[profiles]
[[default]]
palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3"
@ijingo
ijingo / .dircolors
Last active August 5, 2016 02:38
dircolors.ansi-dark
# ~/.dircolors
# Exact Solarized Dark color theme for the color GNU ls utility.
# Designed for dircolors (GNU coreutils) 5.97
#
# This simple theme was simultaneously designed for these terminal color schemes:
# - Solarized dark (best)
# - Solarized light
# - default dark
# - default light
import sys
import os
sys.path.append(os.path.join(os.path.dirname(__file__), '../../build/python'))
from singa import layer
from singa import metric
from singa import loss
from singa import net as ffnet
from singa.proto import core_pb2
@ijingo
ijingo / .vimrc
Created August 5, 2016 02:38
vimrc
" Vundel initialization
set nocompatible " be iMproved, required
filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Bundle 'Valloric/YouCompleteMe'
Plugin 'scrooloose/nerdtree'
Bundle 'derekwyatt/vim-scala'
package main
import "fmt"
func main() {
LOOP:
for{
x := 1
switch {
case x > 0:
for{
x := 1
switch {
case x > 0:
fmt.Println("a")
case x == 1:
fmt.Println("b")
default:
fmt.Println("c")
}
for{
x := 1
switch {
case x > 0:
fmt.Println("a")
break
case x == 1:
fmt.Println("b")
default:
fmt.Println("c")
package shared
type Args struct {
A, B int
}
type Quotient struct {
Quo, Rem int
}
package main
import (
"errors"
"log"
"net"
"net/http"
"net/rpc"
"shared"
package main
import (
"fmt"
"log"
"net/rpc"
"shared"
)