码迷,mamicode.com
首页 > 其他好文
#SORA#celery研究笔记
最近看到celery文档task部分,做一下小结 实际处理时,我们可以使用一个类似于logging的模块生成日志。 对于某些任务,你可以设置当满足某些条件时,重试任务、拒绝任务或忽略任务 在定义task时,@app.task(bind=...
分类:其他好文   时间:2015-04-12 17:55:05    阅读次数:201
Django 中文注释报错问题
views.py 前面一定要加#?-*-?coding:?utf-8?-*-否则报错 #?-*-?coding:?utf-8?-*- from?django.shortcuts?import?render_to_response def?index(req): ????return?render_to_response(‘index...
分类:其他好文   时间:2015-04-12 17:52:47    阅读次数:160
HDOJ刷题(1093)
A+B for Input-Output Practice (V) Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 55226    Accepted Submission(s): 37126 Problem Descripti...
分类:其他好文   时间:2015-04-12 17:54:05    阅读次数:234
《游戏人工智能编程》感想一
书名《游戏人工智能编程》作者mat buckland 里面讲了一个west world项目。这是一个简单的玩具教学项目,为了让读者能够实现一个稍微具有智能的智能体。游戏的内容是 1一个矿工在挖金矿,会随机得到金矿,放入背包 2背包的容量有限,背包满则一定要去卖掉 3矿工有体力值,体力为0要休息。 ps,书中有口渴值的存在。但是口渴饥饿什么的都是一种“疲劳值”引入游戏就是为了增加限制条件和...
分类:其他好文   时间:2015-04-12 17:52:26    阅读次数:158
notepad++插件及配置相关
插件推荐 Explorer是文件浏览插件,可以快速的定位当前正在编辑的文件的位置,支持在搜索目录下文件的内容(Find in files)。收藏夹功能可以保存经常使用的目录或文件。 Compare, 文件对比插件,可以进行简单快速的对比,不过进行复杂点的对比,我一般用WinMerge。 TagsView,文档的Class, 属性, 方法列表。比另一个叫做FunctionList的插件更好...
分类:其他好文   时间:2015-04-12 17:52:22    阅读次数:161
leetcode-18 4Sum
?? 问题描述:Givenan array S of n integers, are there elements a, b, c,and d in S such that a + b + c + d =target? Find all unique quadruplets in the array which gives the sum of target. Note: ...
分类:其他好文   时间:2015-04-12 17:52:44    阅读次数:125
G.711编码原理及代码
G711音频编码原理及代码。...
分类:其他好文   时间:2015-04-12 17:51:26    阅读次数:177
poj1088 滑雪 记忆化搜索
我是渣渣 我是渣渣 。。。。记忆化搜索 看了学长的代码 和算法竞赛入门经典这本书才勉勉强强看懂点。。。 #include #include int dir[4][2]={1,0,-1,0,0,1,0,-1};//方向 int dp[101][101],map[101][101]; int m,n; int max(int x,int y) { return x>y?x:y; } bo...
分类:其他好文   时间:2015-04-12 17:51:39    阅读次数:127
我的第一个编译器之符号表
符号表 符号表是一种供编译器用于保存有关源程序构造的各种信息的数据结构,这些信息在编译器的分析阶段被逐步收集并放入符号表。 如我们输入 {int x;char y;{bool y; x; y; }x; y;} 期望生成: {{x:int; y:bool;} x:int; y:char;} 内层块的x来源于外部。 为每个作用域设置一个符号表 package com.bigb...
分类:其他好文   时间:2015-04-12 17:50:22    阅读次数:132
[LeetCode] Intersection of Two Linked Lists
Intersection of Two Linked Lists   Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1...
分类:其他好文   时间:2015-04-12 17:51:57    阅读次数:146
初识NuGet
因为想查一查opencvsharp的东西,然后发觉这个包可以再NuGet上面可以直接下载。我也经常在很多地方都可以看到NuGet,所以我想写下来,记录下来。 NuGet是一个免费的并且开源的包管理器在微软的开发平台上。NuGet发布在Visual Studio的拓展插件上。 NuGet现在已经移植到代码管理平台github了,链接地址为https://github.com/nuget/home。...
分类:其他好文   时间:2015-04-12 17:50:51    阅读次数:117
Sort Colors -- leetcode
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers ...
分类:其他好文   时间:2015-04-12 17:48:54    阅读次数:131
xcode archive意外退出
昨天把xcode 6.1.1升级到了6.3,archive时xcode意外退出,尝试了各种方法,甚至都把证书重新生成一遍还是没法解决。最后都做好回退xcode的准备。用了百度,国内还没相关的信息,试着去stackoverflow.com查找最后还真解决了。 这可能是xcode的问题,已经有国外网友反馈到苹果论坛了,苹果也接受了这个问题。 解决方法就是:source contro...
分类:其他好文   时间:2015-04-12 17:49:29    阅读次数:147
canvas绘制动画效果
绘制一个笑脸,实现笑脸的左右匀速运动 html代码:js代码: function $(id) { return document.getElementById(id); }...
分类:其他好文   时间:2015-04-12 17:48:29    阅读次数:83
游戏引擎/GUI的设计与实现-序
几年前写《嵌入式GUI FTK设计与实现》,没写几篇就停止更新了。当时自己研究过MicroWindows, X Window, DirectFB, GTK+和Android的GUI,又写过嵌入式GUI FTK,以为自己对GUI还算熟悉,但是真正写起来还是有些力不从心。另外硬件的飞速发展,我感觉FTK的实用价值不大了,自己的精力转向了CANTK的开发,所以没有再写下去。...
分类:其他好文   时间:2015-04-12 17:48:46    阅读次数:137
ACM刷题需要注意关于输入输出的问题
下面总结一下刷题需要注意的问题: 1. scanf函数返回值就是读出的变量个数,没有读到数据返回-1,EOF是一个预定义的常量,为-1; 2. scanf函数读入数据,不能规定精度。如:scanf("%7.2f", &n);是不合法的; 3. C语言不支持在for语句里定义变量。如:for(int i=0; i 三种输入: 1. 数据量不定的情况:用while(scanf("%d...
分类:其他好文   时间:2015-04-12 17:50:14    阅读次数:115
[LeetCode] Find Peak Element
Find Peak Element A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may co...
分类:其他好文   时间:2015-04-12 17:49:04    阅读次数:139
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!