Git是目前最流行的版本管理系统,学会Git几乎成了开发者的必备技能。Git有很多优势,其中之一就是远程操作非常简便。本文详细介绍5个Git命令,它们的概念和用法,理解了这些内容,你就会完全掌握Git远程操作。git clonegit remotegit fetchgit pullgit push本...
分类:
其他好文 时间:
2014-06-14 20:40:33
阅读次数:
281
源码如下:#!/usr/bin/env pythonclass Bird(): def __init__(self): self.hungry = True def eat(self): if self.hung...
分类:
编程语言 时间:
2014-06-14 18:23:05
阅读次数:
242
//上一篇写了LCD驱动,本篇写下LED驱动
//DISPCON 最高位为1时, 选择LED驱动,LCD驱动无效
最高位为0时, 选择LCD驱动,LED驱动无效
void Sh79fLed_Init(void)
{
uint8 i ;
Bank0;
DISPCLK0 = 0x6e;//0X6E //帧频率 64HZ 此设置无效
DISPCLK1 = 0x01;//0X01
...
分类:
其他好文 时间:
2014-06-14 17:44:05
阅读次数:
228
以下步骤在MAC下测试通过:
首先是安装CCache,
可以用homebrew
brew install --HEAD ccache
也可以用源码安装
git clone https://github.com/jrosdahl/ccache.git
cd ccache
./autogen.sh
./configure
make
make install
如果提示autohe...
分类:
移动开发 时间:
2014-06-14 12:28:49
阅读次数:
263
Uva 11728 - Alternate Task
题目链接
题意:给定一个因子和,求出对应是哪个数字
思路:数字不可能大于因子和,对于每个数字去算出因子和,然后记录下来即可
代码:
#include
#include
const int N = 1005;
int n, ans[N];
void init() {
memset(ans, -1, sizeo...
分类:
其他好文 时间:
2014-06-14 11:59:06
阅读次数:
264
先上GitHub链接:
https://github.com/songrotek/PlaneWar.git...
分类:
微信 时间:
2014-06-14 11:43:46
阅读次数:
448
1. PyIntObject --> long的一个简单包装
typedef struct{
PyObject_HEAD
long ob_ival;
} PyIntObject;
PyInt_Type --> PyIntObject的类型对象。与对象相关的元信息实际上都是保存在与对象对应的类型对象中的
PyTypeObject PyInt_Type = {
PyObject_HEAD_INIT(&PyType_Type)
0,
“int”,
//…
}
PyIntObject 所...
分类:
编程语言 时间:
2014-06-14 10:42:19
阅读次数:
313
回家安装了开始用虚拟机运行,然后坐等。他自己会联互联网下载所需的软件中途物理机死机一次……我去……重新开机再搞一次也就下载了100M左右的东西,花了20多分钟,要从git等下载一大截东西。进入后修改默认密码,然后自动启动了bbb,用IE输入IP访问,成功了,本地局域网双机互联,测试成功,没问题。接下...
分类:
其他好文 时间:
2014-06-14 10:13:36
阅读次数:
199
利用了大约一个多小时来搞明白OC中Blocks反向传值和Swift中Closure反向传值的差别,下面直接贴上代码:
一、第一个界面
// Created by 秦志伟 on 14-6-13.
import UIKit
class ZWRootViewController: UIViewController {
init(nibName nibNameOrNil: String?...
分类:
其他好文 时间:
2014-06-14 10:00:19
阅读次数:
451
define([],function(){ var myChart={ init:function(options){ this.ctx = options.ctx; this.data = options.data; ...
分类:
其他好文 时间:
2014-06-14 09:58:19
阅读次数:
195