码迷,mamicode.com
首页 > 其他好文
怎样将io.ReadCloser转换成string
buf?:=?new(bytes.Buffer) buf.ReadFrom(yourReader) s?:=?buf.String() http://stackoverflow.com/questions/9644139/from-io-reader-to-string-in-go...
分类:其他好文   时间:2015-01-06 23:19:13    阅读次数:849
Stylish 样式
/*三行分别是字体粗细(整百数字),字体样式,字体阴影*/ *{font-weight:500!important;} *{font-family: "Microsoft Yahei", "Microsoft Yahei" !important; } *{text-shadow:0.01em 0.01em 0.01em #999999 !im...
分类:其他好文   时间:2015-01-06 23:21:42    阅读次数:489
JVM中Instrumentation实现
想必不少人听说过javaagent,但是很少人听说Instrumentation,其实Instrumentation就是javaagent的实现机制,说到Instrumentation,就必须想了解java的attach机制,那就先说下attach的实现。 ![在此输入图片描述]...
分类:其他好文   时间:2015-01-06 23:21:20    阅读次数:434
SharePoint Workflow架构(一)SharePoint 和Workflow Runtime的结合
Andy Li这篇文章,是我看过的最好的,最透彻的关于SharePoint Workflow架构的文章。本文介绍SharePoint和Workflow的结合。...
分类:其他好文   时间:2015-01-06 23:17:54    阅读次数:496
毕业设计——基于STM32的音乐播放器设计(一)
基于STM32的音乐播放器设计, 源代码下载地址:http://download.csdn.net/detail/cxp2205455256/8334021      SD卡文件下载地址:http://download.csdn.net/detail/cxp2205455256/8334089 电路图下载地址:文件太大了,上传不了。。。。。。。 以下是截图: 1、硬件电路 ...
分类:其他好文   时间:2015-01-06 23:18:44    阅读次数:549
hdu-1232 畅通工程
http://acm.hdu.edu.cn/showproblem.php?pid=1232 并查集 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #...
分类:其他好文   时间:2015-01-06 23:16:38    阅读次数:300
hdu-1213 how many tables
http://acm.hdu.edu.cn/showproblem.php?pid=1213 并查集 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #...
分类:其他好文   时间:2015-01-06 23:19:02    阅读次数:397
hdu 5155(DP)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5155 Harry And Magic Box Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 273    Accepted Su...
分类:其他好文   时间:2015-01-06 23:18:41    阅读次数:397
Opencv下图像对鼠标事件的响应
直接上代码: //////////////////////////////////////////////////////////////////////// // // 该程序从文件中读入一幅图像,响应在图片上的左键右键消息 // 并显示点击图像的坐标,然后显示出来. // ///////////////////////////////////////////////////////////...
分类:其他好文   时间:2015-01-06 23:17:58    阅读次数:322
UVA - 133 The Dole Queue(模拟链表)
点击打开链接 n的人围成一个环,然后按逆时针编号1-n,一个人从1开始逆时针数k个数,另一个人从N开始顺时针数m个数,然后 数出来的两个人出列(两个人可能一样)出列,然后继续此过程,直到全部人都出列为止。 思路是用循环链表来模拟,注意 要分情况来讨论。 #include #include #include #include #include #include #include ...
分类:其他好文   时间:2015-01-06 23:16:19    阅读次数:232
POJ 2524-Ubiquitous Religions(并查集)
Ubiquitous Religions Time Limit: 5000MS   Memory Limit: 65536K Total Submissions: 25383   Accepted: 12530 Description There are so many different religions in the world...
分类:其他好文   时间:2015-01-06 23:18:05    阅读次数:325
jfinal
JFinal  是基于 Java  语言的极速  WEB  + ORM  开发框架,其核心设计目标是开发迅速、代码量少、学习简单、功能强大、轻量级、易扩展、Restful。在拥有Java 语言所有优势的同时再拥有 ruby、python、php 等动态语言的开发效率!为您节约更多时间,去陪恋人、家人和朋友!(鼓掌!~~) JFinal 有如下主要特点: ?  MVC 架构,设计精巧,使用简...
分类:其他好文   时间:2015-01-06 23:17:43    阅读次数:339
[leetcode]Word Break
问题描述: Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words. For example, given s = "leetcode", dict =...
分类:其他好文   时间:2015-01-06 23:14:33    阅读次数:229
jfinal2
jfinal框架的简单搭建,这节通过一个小例子了解jfinal的结构和特点 先上图 1、建数据库(我用的是oracle数据库,其他的相对也差不多) -- Create table create table CLASSES ( classesid NUMBER not null, classesname VARCHAR2(20), classesaddres...
分类:其他好文   时间:2015-01-06 23:14:50    阅读次数:286
Cocos2d-x 自定义血条及其美化----之游戏开发《赵云要格斗》(4)
本章要讲解给怎么在界面上加一个血条,老规矩,还是在Cocos2d-x地图随精灵无限滚动与边缘检测----之游戏开发《赵云要格斗》   的基础上进行增加功能的。  先来看看效果吧:由于还没有引入怪物,所以我弄成攻击一次,血条少1或10两种来看看效果 目录: 一、自定义血条类 二、使用自定义血条类并进行美化 三、改变英雄血量 一、自定义血条类...
分类:其他好文   时间:2015-01-06 23:15:47    阅读次数:583
Curator源码解析(四)ZooKeeper存在的连接问题
都说Curator的连接机制比较牛逼,所以在分析Curator的连接和重试机制之前,我想先搞清楚原生的ZooKeeper的连接存在哪些问题。 下面是我查阅资料总结的结果,转载请注明出处: jiq?钦's technical Blog Curator虽然提供所谓的高层抽象API来简化了ZooKeeper的使用,但更重要的是封装了管理到ZooKeeper集群的连接以及重试机制的复杂性,...
分类:其他好文   时间:2015-01-06 23:13:47    阅读次数:339
Nginx 哈希表结构 ngx_hash_t
哈希表结合了数组和链表的特点,使其寻址、插入以及删除操作更加方便。哈希表的过程是将关键字通过某种哈希函数映射到相应的哈希表位置,即对应的哈希值所在哈希表的位置。但是会出现多个关键字映射相同位置的情况导致冲突问题,为了解决这种情况,哈希表使用两个可选择的方法:拉链法和开放寻址法。 Nginx 的哈希表中使用开放寻址来解决冲突问题,为了处理字符串,Nginx 还实现了支持通配符操作的相关函数,...
分类:其他好文   时间:2015-01-06 23:11:57    阅读次数:427
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!