This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
So, this is where swift lives, after you've installed XCode 6 Beta: | |
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift | |
Also, there's a directory named swift which has various libraries: | |
/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift | |
To start playing in a terminal: | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# | |
#author: rex | |
#blog: http://iregex.org | |
#filename test.py | |
#created: 2010-12-18 22:42 | |
import re | |
import pycurl | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@start: #9bce4c; @end: #6f9f27; | |
.button-gradient (@start, @end); | |
&:hover { | |
.button-gradient (darken(@start, 2%), darken(@end, 2%)); | |
} | |
&:active { | |
.button-gradient (darken(@end, 2%), darken(@start, 2%)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# author: Zeray Rice <fanzeyi1994@gmail.com> | |
import urllib | |
import logging | |
import tornado.auth | |
from tornado import escape | |
from tornado import httpclient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFLAGS=-fextended-identifiers -std=c99 | |
objects=chinese.ucn.o | |
target=chinese | |
.PHONY: all clean | |
all: $(target) | |
$(target): $(objects) | |
$(CC) $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding:utf-8 -*- | |
from Queue import Queue | |
# --------------------- | |
# Corotine Task Manager | |
# --------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import collections | |
import errno | |
import re | |
from hashlib import md5, sha1 | |
import base64 | |
from base64 import b64encode, b64decode | |
import socket | |
import struct | |
import logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Zeray Rice's New Vimrc | |
" Created: Augest 24, 2013 | |
" =============== | |
" Vundle | |
" =============== | |
set nocompatible | |
filetype off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*- coding:utf-8 -*- | |
# Author: @chuangbo | |
# For: @likexian | |
import socket | |
import struct | |
class CIDR: | |
'''Check if ip in cidr |
OlderNewer