This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //server's code: | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text.RegularExpressions; | |
| using System.Web; | |
| using System.Web.Mvc; | |
| using System.Web.Script.Serialization; | |
| using reExp.Utils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Threading; | |
| using System.Timers; | |
| using System.Runtime.InteropServices; | |
| using System.IO; | |
| using System.Text; | |
| /******************************************** | |
| * 一个完整的linux daemon示例,作者宇内流云 * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void Main() | |
| { | |
| dynamic model = new System.Dynamic.ExpandoObject(); | |
| model.IsTransferOut = null; | |
| model.OwnerId = -1; | |
| if(model.IsTransferOut == true) | |
| { | |
| Console.WriteLine(model.IsTransferOut); | |
| } | |
| var t1 = Convert.ToDateTime("2016-05-02"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var page = require('webpage').create(); | |
| page.open('http://jsbin.com/ifuma#noedit', function () { | |
| setTimeout(function () { | |
| page.sendEvent("mousedown", 10, 10); | |
| page.sendEvent("mousemove", 200, 200); | |
| page.sendEvent("mouseup", 200, 200); | |
| page.render('ss.png'); | |
| phantom.exit(); | |
| }, 3000); | |
| }); |
NewerOlder