转自开源中国社区:http://www.oschina.net/code/snippet_94055_21640经常做jsp开发的朋友可能遇到一个情况,显示列表数据不是table,而是div或者其他很多标签做的一种更漂亮的样式列表。如果采用ajax更新列表数据,可能有些朋友采用“html代码拼接”的...
分类:
编程语言 时间:
2015-09-17 10:01:16
阅读次数:
216
转载:http://www.oschina.net/code/snippet_102306_47051.JS实现方法static string ConvertToChinese(double x) { string s = x.ToString("#L#E#D#C#K#E#D#C#J#E#D...
分类:
其他好文 时间:
2015-09-12 10:45:42
阅读次数:
235
Using MLLib in ScalaFollowing code snippets can be executed in spark-shell.Binary ClassificationThe following code snippet illustrates how to load a s...
分类:
编程语言 时间:
2015-09-06 19:49:55
阅读次数:
460
来自于http://www.oschina.net/code/snippet_1780998_36843$(".addFullIn").click( function () { $(".questionName").insertContent("( )"); });//$("....
分类:
其他好文 时间:
2015-09-06 18:04:09
阅读次数:
169
sublime text 小巧而功能强大,有着好看的外观,被誉为世界上最“性感”的IDE。sublime text也是本小白在最近的学习和做项目当中最常使用的IDE。小巧且功能强大,对于开发前端以及小型项目来说绰绰有余。 但对于诸多功能,本白也是通过网上的一些大神笔记以及官网上的一些功能才了解...
分类:
其他好文 时间:
2015-08-31 00:50:20
阅读次数:
261
前一篇介绍了serializer,但是SnipperSerializer类有很多在Snippet模型中的重复信息,如果我们能够去掉重复代码就相当不错,类似与django提供Form类和ModelForm类,RestFramework也包含了Serializer类和ModelSerializer类。一.使用ModelSerializer类重构后的序列化器,编辑snipp..
分类:
其他好文 时间:
2015-08-26 00:13:53
阅读次数:
337
原文:http://outofmemory.cn/code-snippet/3037/nginx-configuration-file-de-location-explain-in-detaillocation语法:location [=|~|~*|^~] /uri/ { … } 默认:否上下文:s...
分类:
其他好文 时间:
2015-08-13 11:30:38
阅读次数:
114
Code snippet about some Windows service operation methods.Install Service:public static void InstallService(string filepath, string serviceName, strin...
网上资源零碎,主要是整理下。整理的是主要核心内容,完整内容可以看后面标注的原文链接。代码段是什么 《VS2008中代码段(Snippet)的功能》在VS2008中,提供了代码段(Snippet)的功能。什么是代码段呢?即使你对这个词还不是很熟悉,但是极有可能的是——你已经在不知不觉中应用它了。举例....
分类:
其他好文 时间:
2015-08-04 14:53:42
阅读次数:
179
python(PIL)图像处理(等比例压缩、裁剪压缩) 缩略(水印)图http://outofmemory.cn/code-snippet/12264/python-PIL-image-process-kind-pack--pack--scheme
分类:
编程语言 时间:
2015-07-15 13:09:28
阅读次数:
397