摘要: var _jq, _hc;var jqsrc = "http://code.jquery.com/jquery-1.7.min.js";var hcsrc = "http://code.highcharts.com/highcharts.js";function checkJquery() { ... 阅读全文
posted @ 2014-06-20 02:03 jieyuefeng 阅读(320) 评论(0) 推荐(0) 编辑
摘要: public static int byte2int(byte b) { int i = b & 0x07f; if (b < 0) { i |= 0x80; } return i;}//运行代码function runEx(cod1) { cod=document.getElementById(cod1) var code=cod.value; if (code!=""){ var newwin=window.open('','',''); newwin.opener = null ... 阅读全文
posted @ 2014-03-04 16:03 jieyuefeng 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 先说Linux下C语言程序:使用Eclipse创建一个GUN Autotools的Hello World ANSI C Autotools Project生成可以自动打包的目录结构,然后修改Makefile.am文件,configure、make之后make dist打包。再说Maven管理的Java的Runnable Jar程序:增加POM文件plugins项的maven shade plugin: org.apache.maven.plugins maven-shade-plugin 2.2 package ... 阅读全文
posted @ 2014-01-03 01:45 jieyuefeng 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 1 using System; 2 using Microsoft.Office.Interop.Word; 3 using Word = Microsoft.Office.Interop.Word; 4 namespace WordList 5 { 6 class WordList 7 { 8 static void Main(string[] args) 9 {10 string message = "";11 try12 {13 Obj... 阅读全文
posted @ 2013-11-19 14:27 jieyuefeng 阅读(1318) 评论(0) 推荐(0) 编辑
摘要: 我已经受不了每次用的时候去百度了,还百度不出来。。。。。【数字字符串转换篇】atof - convert a string to a double#include double atof(const char *nptr);atoi, atol, atoll, atoq - convert a string to an integer#include int atoi(const char *nptr); long atol(const char *nptr); long long atoll(const char *nptr); long long at... 阅读全文
posted @ 2013-11-15 11:00 jieyuefeng 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 1. 字符串的replaceAllString.prototype.replaceAll = function(reallyDo, replaceWith, ignoreCase) { if (!RegExp.prototype.isPrototypeOf(reallyDo)) { return this.replace(new RegExp(reallyDo, (ignoreCase ? "gi": "g")), replaceWith); } else { return this.replace(rea... 阅读全文
posted @ 2013-10-09 11:33 jieyuefeng 阅读(763) 评论(0) 推荐(0) 编辑
摘要: 在不怎么了解libevent的情况下,看到timer这个关键字想到可以用来做定时任务,官方资料也不齐全,就从代码里看到了TIMEOUT字样,这么说来应该是支持timeout了,那interval呢,貌似没有发现更好的办法,姑且在timeout里再timeout一次吧,留代码备用。 1 #include 2 #include 3 #include 4 5 typedef struct { 6 struct timeval tv; 7 struct event * ev; 8 } timer_param_t; 9 10 11 void timer_task(... 阅读全文
posted @ 2013-08-29 18:25 jieyuefeng 阅读(1397) 评论(0) 推荐(0) 编辑
摘要: http://java.sun.com/products/archive/ 阅读全文
posted @ 2013-07-17 09:50 jieyuefeng 阅读(151) 评论(0) 推荐(0) 编辑
摘要: -- 查询id=100的所有父节点select * from TABLE start with id = 100 connect by nocycle prior pid = id-- 查询id=100的所有子节点select * from TABLE start with id = 100 connect by nocycle prior id = pid 阅读全文
posted @ 2013-05-10 15:24 jieyuefeng 阅读(161) 评论(0) 推荐(0) 编辑
摘要: Dim WshShellSet WshShell=WScript.CreateObject("WScript.Shell")WshShell.Run "notepad"WScript.Sleep 1500While TrueWshShell.AppActivate "无标题 - 记事本"WScript.Sleep 500WshShell.SendKeys "A"WScript.Sleep 60000Wend'taskkill /f /im wscript.exe /t 阅读全文
posted @ 2013-05-04 04:02 jieyuefeng 阅读(851) 评论(0) 推荐(0) 编辑