Skip to content

Instantly share code, notes, and snippets.

FROM centos:7.3.1611
RUN yum update -y && yum install -y wget make gcc gcc-c++ unzip git patch readline-devel \
bzip2 zlib zlib-devel
ENV BUILD_PATH=/tmp/build
RUN mkdir --verbose -p "$BUILD_PATH"
ENV PCRE_VERSION=8.43
# coding: utf-8
import random
menu = '''
菜心18
茄子18
芋艿18
红烧豆腐18
干锅土豆片22
@yejingx
yejingx / echo.go
Created November 3, 2016 03:33 — forked from paulsmith/echo.go
A simple echo server testing a few interesting Go language features, goroutines and channels.
// $ 6g echo.go && 6l -o echo echo.6
// $ ./echo
//
// ~ in another terminal ~
//
// $ nc localhost 3540
package main
import (
@yejingx
yejingx / cjk_auto_formating.py
Created March 25, 2016 01:28 — forked from tianchaijz/cjk_auto_formating.py
CJK Auto Formating
#!/usr/bin/env python
# encoding: utf-8
from __future__ import (unicode_literals, print_function)
import os
import re
import sys
import codecs
马驰.*新加坡|新加坡.*马驰
自由光诚
陈光诚事件
光诚.*沂南|沂南.*光诚
陈光诚.*使馆|使馆.*陈光诚
职称英语.*答案|答案.*职称英语
公务员.*答案|答案.*公务员
薄瓜瓜
海伍德
尼尔伍德