编译环境:windows8.1Anaconda python2.7Visual studio 2012CUDA6.0Pthread for windowsIntel Math Kernel Librarycuda-convnet 原始文件下载地址:https://github.com/dnouri/...
175 游戏角色变得越来越黑暗向,这只是因为我们长大了,我们希望我们喜欢的角色也长大.176 3D眩晕的产生与避免1.在黑暗环境下玩2.少玩一点3.少喝咖啡4.一些药物177,178 MMO中的quest现在的quest重要是以下几种:1.Kill杀戮任务2.Fetch取物任务3.FedEx送货任务...
分类:
其他好文 时间:
2014-06-14 20:38:30
阅读次数:
165
源码如下:#!/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
一、NSString创建字符串。NSString*astring=@"ThisisaString!";创建空字符串,给予赋值。NSString*astring=[[NSStringalloc]init];astring=@"ThisisaString!";NSLog(@"astring:%@",as...
分类:
其他好文 时间:
2014-06-14 16:09:34
阅读次数:
237
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
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
Mock的使用有很多方式,我们常用的有以下几种,看示例代码
public class TestMock {
@Mock
A a;//生成一个A的Mock
@Spy
A a1 = new A();//生成一个A的Spy, Spy或是InjectMocks必需自己初始化对象,Mock可以不用初始化
@Before
public void init...
分类:
其他好文 时间:
2014-06-14 10:16:42
阅读次数:
230
利用了大约一个多小时来搞明白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