码迷,mamicode.com
首页 >  
搜索关键字:HERE    ( 6715个结果
php给图片加文字
在图片上加文字是论坛,博客,新闻网站上最喜欢用的功能,防止盗图。这里看看代码是如何实现的。首先还是upload_image.php这个文件,注意这里的caption文本框中输入的内容最终会写到图片上面 Here is your pic! ...
分类:Web程序   时间:2014-05-20 01:48:11    阅读次数:687
玩转codecademy (二)
1 // create your Animal class here 2 function Animal(name,numLegs){ 3 this.name=name, 4 this.numLegs=numLegs 5 } 6 // create the sayName ...
分类:其他好文   时间:2014-05-18 19:45:23    阅读次数:246
mFC 橡皮线
一般都用GDI实现:void CXiangpijinView::OnMouseMove(UINT nFlags, CPoint point) { // TODO: Add your message handler code here and/or call default CVi...
分类:其他好文   时间:2014-05-15 21:04:55    阅读次数:330
Git服务器代理上网安装出现问题的几个解决办法。
1、gem安装出现下面错误 root@ubuntu:/home/git/gitlab# sudo gem install bundler --no-ri --no-rdoc ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:           Unable to download data from https...
分类:其他好文   时间:2014-05-15 18:19:48    阅读次数:304
emacs quick open and jump file (or buffer) which name is current word
Sometime, we need to open a file or buffer which name began with current word in emacs. Here I give the solution as follows. (provide 'quick-file-jump) (defun ab/quick-buffer-jump () "Quickly jum...
分类:其他好文   时间:2014-05-15 15:02:20    阅读次数:373
dotfiles for linux/unix users automatically! (python Vim IDE)
Here is a brief introduction and package of dotfiles for linux/unix user.I think there are enough informative description about the package.Here is th...
分类:编程语言   时间:2014-05-15 12:01:37    阅读次数:370
Multi-Thread 1: how to use synchronized
1. synchronized If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other. ...
分类:其他好文   时间:2014-05-15 11:14:14    阅读次数:389
ZOJ 3640 Help Me Escape
OJ题目:click here~~ 题目分析:有n条路径逃出洞穴,第i条路径有一个难度值ci。某人开始有战斗值f,每天随机选择某一条路径想要逃出。只要此时的 f 大于所选路径的ci,就能花费ti的天数逃出。这里。否则,等待明天再试吧,但是战斗值能增加ci。求逃出的期望天数。 设dp[ i ] 为战斗值为i时,逃出的期望天数。详细解释见代码。 AC_CODE int const maxn =...
分类:其他好文   时间:2014-05-15 06:38:40    阅读次数:406
FZOJ 2129 子序列个数
OJ题目:click here~~ 题目分析:设dp[ i ] 为前i个数的子序列的个数 , 下标从1开始。计算dp[ i ] 。第一种情况, 如果x[ i ] 与前面的数都不相同 , 则 dp[ i ] = dp[ i - 1] + dp[ i - 1] + 1 , 即 = 都把x[ i ] 放在后面 + 都不把x[ i ]放在后面 + x[ i ] 单独成一个序列。 第二种情况,如果x[...
分类:其他好文   时间:2014-05-15 05:13:13    阅读次数:223
HDU 4768 Flyer (二分)
OJ题目:click here~~ 题目分析:n个[a  b] 区间,对于i 属于[a  b]  ,从a开始,间隔c ,即i = a , i = a + c , i = a + 2*c …… 将x[ i ] 加1 ,x[ i ] 初值为0 。 已知最多只有一个x[ i ] 为奇数。找到这个i , 和这个奇数。 由于最多只有一个奇数,且奇数 + 偶数 = 奇数。用二分夹逼出这个奇数的位置。找到...
分类:其他好文   时间:2014-05-14 21:27:36    阅读次数:176
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!