摘要:
var _jq, _hc;var jqsrc = "http://code.jquery.com/jquery-1.7.min.js";var hcsrc = "http://code.highcharts.com/highcharts.js";function checkJquery() { ... 阅读全文
摘要:
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 ... 阅读全文
摘要:
先说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 ... 阅读全文
摘要:
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... 阅读全文
摘要:
我已经受不了每次用的时候去百度了,还百度不出来。。。。。【数字字符串转换篇】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... 阅读全文
摘要:
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... 阅读全文
摘要:
在不怎么了解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(... 阅读全文
摘要:
http://java.sun.com/products/archive/ 阅读全文
摘要:
-- 查询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 阅读全文
摘要:
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 阅读全文