Skip to content

Instantly share code, notes, and snippets.

@jackywyz
jackywyz / git_guidline.md
Created August 1, 2016 04:51 — forked from onlytiancai/git_guidline.md
git分支使用规范

分支管理

最少有三个长期分支

  • master: 用于生产环境部署
  • testing: 用于测试环境测试
  • dev: 用于日常开发

有一些临时分支

@jackywyz
jackywyz / String format.scala
Created October 26, 2011 06:22 — forked from brianhsu/gist:792885
[Scala] 剪刀石頭布猜拳大亂鬥
'''print 格式化 => String 格式化,适用于python 的print语法
println("welcome %s ." format("jack"))
'''Java 版
String s = String.format("%d", factor);
System.out.println(s);
'''1.格式
%s 为字符串
@jackywyz
jackywyz / scala_links.md
Created October 26, 2011 02:42 — forked from ericacm/scala_links.md
Scala Links
@jackywyz
jackywyz / type-bounds.scala
Created September 26, 2011 08:02 — forked from retronym/type-bounds.scala
Tour of Scala Type Bounds
class A
class A2 extends A
class B
trait M[X]
//
// Upper Type Bound
//
def upperTypeBound[AA <: A](x: AA): A = x
@jackywyz
jackywyz / Regular.java
Created September 22, 2011 09:37 — forked from codahale/Regular.java
An example of the utility of private[this]
//decompiled with JD-GUI
import scala.ScalaObject;
import scala.reflect.ScalaSignature;
@ScalaSignature(bytes="\006\00192A!\001\002\001\013\t9!+Z4vY\006\024(\"A\002\002\017q*W\016\035;z}\r\0011c\001\001\007\035A\021q\001D\007\002\021)\021\021BC\001\005Y\006twMC\001\f\003\021Q\027M^1\n\0055A!AB(cU\026\034G\017\005\002\020%5\t\001CC\001\022\003\025\0318-\0317b\023\t\031\002CA\006TG\006d\027m\0242kK\016$\b\"B\013\001\t\0031\022A\002\037j]&$h\bF\001\030!\tA\002!D\001\003\021\035Q\002\0011A\005\nm\t\021![\013\0029A\021q\"H\005\003=A\0211!\0238u\021\035\001\003\0011A\005\n\005\nQ![0%KF$\"AI\023\021\005=\031\023B\001\023\021\005\021)f.\033;\t\017\031z\022\021!a\0019\005\031\001\020J\031\t\r!\002\001\025)\003\035\003\tI\007\005C\003+\001\021\0051&A\002j]\016$\022A\t\005\006[\001!\taG\001\004O\026$\b")
public class Regular
implements ScalaObject
{
private int i = 0;
@jackywyz
jackywyz / broker.py
Created September 1, 2011 01:27 — forked from derekwyatt/broker.py
This is an ENSIME broker to be used for Vim integration to ENSIME... just a prototype at this point
#!/usr/bin/python
import socket
import re
from time import sleep
from os import system
from threading import Thread
from optparse import OptionParser
parser = OptionParser()