如何創建一個自己的 Composer/Packagist 包首先讓我們踏着歡快的腳步去Github創建一個新庫,這裏取名composer-car,又歡快的將它克隆到本地:git clone http://go.rritw.com/github.com/GeHou/composer-car.gitcd...
分类:
Web程序 时间:
2014-08-24 17:58:12
阅读次数:
293
LeetCode: Gas StationThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited ...
分类:
其他好文 时间:
2014-08-23 19:03:31
阅读次数:
177
Description
Nowadays it is becoming increasingly difficult to park a car in cities successfully. Let's imagine a segment of a street as long as
L meters along which a parking lot is located. Drive...
分类:
其他好文 时间:
2014-08-23 17:48:11
阅读次数:
249
1. Package ControlGetPackage Control here.2. Theme - Phoenix and Flatland(扁平)If Sublime Text 2 is a highly tuned race car, then this plugin is the fl....
分类:
Web程序 时间:
2014-08-23 05:39:39
阅读次数:
647
OC -- 第一个类
类名:Car
属性:轮胎个数、时速
行为:跑
完整写一个类:类的声明和实现
1. 类的声明
代码:
// NSObject 再Foundation框架中
#import
// NSObject 基类
@interface Car : NSObject
{
// 声明对象属性(成员变量,默认会初始化为0)
...
分类:
其他好文 时间:
2014-08-21 22:49:55
阅读次数:
205
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:
其他好文 时间:
2014-08-19 22:09:35
阅读次数:
198
使用析构函数释放资源析构函数用于析构类的实例。1)不能在结构中定义析构函数。只能对类使用析构函数。2)一个类只能有一个析构函数。3)无法继承或重载析构函数。4)无法调用析构函数。它们是被自动调用的。5)析构函数既没有修饰符,也没有参数。例如,下面是类Car的析构函数的声明:[csharp]view ...
分类:
其他好文 时间:
2014-08-19 16:00:14
阅读次数:
293
common lisp的let宏定义如下 (defmacro?our-left?(binds?&body?body)
??`((lambda?,(mapcar?#‘(lambda?(x)
?(if?(consp?x)?(car?x)?x))
?????binds)
??????,@body)
??????,...
分类:
其他好文 时间:
2014-08-18 16:38:12
阅读次数:
252
原本打算用 Cpp,Ada,Python 各重写一份,觉得这种行为比较2.
因为还是 Scheme 的表达最优雅.
#lang scheme
( define nil '() )
( define ( root tree )( car tree ) )
( define ( left-tree tree )( cadr tree ) )
( define ( right...
分类:
其他好文 时间:
2014-08-17 01:06:41
阅读次数:
266
题目描述 Description 又到暑假了,住在城市A的Car想和朋友一起去城市B旅游。她知道每个城市都有四个飞机场,分别位于一个矩形的四个顶点上,同一个城市中两 个机场之间有一条笔直的高速铁路,第I个城市中高速铁路了的单位里程价格为Ti,任意两个不同城市的机场之间均有航线,所有航线单位里程的价....
分类:
其他好文 时间:
2014-08-14 16:33:48
阅读次数:
171