#如何成为黑客 How To Become A Hacker
Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.20更新的原文修订版1.47。
//: Playground - noun: a place where people can play | |
import UIKit | |
class Foo { | |
class ArrayWrapper{ | |
var array:[Bool] = [false] | |
subscript(index: Int) ->Bool { | |
get{ | |
return array[index] |
# Git pre-commit hook to check all staged Ruby (*.rb/haml/coffee) files | |
# for Pry binding references | |
# | |
# Installation | |
# | |
# ln -s /path/to/pre-commit.sh /path/to/project/.git/hooks/pre-commit | |
# | |
# Based on | |
# | |
# http://codeinthehole.com/writing/tips-for-using-a-git-pre-commit-hook/ |
#如何成为黑客 How To Become A Hacker
Eric Steven Raymond, Thyrsus Enterprises, < [email protected] >
翻译:柯非, < [email protected] >
这篇译文基于2014.05.20更新的原文修订版1.47。
namespace :image_compression do | |
desc 'Optimize images with optipng and jpegoptim' | |
task :process do | |
# Check for optipng | |
if (!`which optipng`.empty? rescue false) # rescue on environments without `which` (windows) | |
# Crush all .png files inplace | |
run "find #{shared_path}/assets/ -type f -name '*.png' -print0 | xargs -0 optipng -quiet -o7 " | |
else |
private class Rect{ | |
public int x,y,width,height; | |
public Rect(int _x,int _y,int _width,int _height){ | |
x=_x;y=_y;width=_width;height=_height; | |
} | |
} | |
private LinkedList<Rect> queue; | |
private boolean isMoving; | |
private boolean isInc; | |
public void setup(){ |
typedef struct { | |
int x, | |
int y, | |
int width, | |
int height | |
} rect; | |
static int count = 1; | |
void spiltAndMerge(rect rec){ | |
if(count >= 272) return ; |
<project> | |
<taskdef resource="simiantask.properties" classpath="simian.jar"/> | |
<target name="simian_obj_c"> | |
<simian> | |
<fileset dir="./" includes="**/*.m"/> | |
<fileset dir="./" includes="**/*.h"/> | |
<formatter type="xml" toFile="simian.xml"/> | |
</simian> | |
</target> | |
</project> |