Skip to content

Instantly share code, notes, and snippets.

Sakyaer sakyaer

Block or report user

Report or block sakyaer

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sakyaer
sakyaer / CallExteralExe.csharp
Last active May 25, 2020
|-|{"files":{"CallExteralExe.csharp":{"env":"plain","abbr":""}},"tag":"C#"}
View CallExteralExe.csharp
string fileName = @"c:\aaa.doc";//要检查被那个进程占用的文件
Process tool = new Process();
tool.StartInfo.FileName = "handle.exe";
tool.StartInfo.Arguments = fileName+" /accepteula";
tool.StartInfo.UseShellExecute = false;
tool.StartInfo.RedirectStandardOutput = true;
tool.Start();
tool.WaitForExit();
string outputTool = tool.StandardOutput.ReadToEnd();
@sakyaer
sakyaer / bezier.js
Created May 16, 2016 — forked from LiuJi-Jim/bezier.js
De Casteljau Bezier
View bezier.js
function DeCasteljauBezier(points, density, step){
//if (points.length < 3) return null;
console.time('bezier');
var ps = points.map(function(p){
return {
x: p.x,
y: p.y
};
}),
results = [],
You can’t perform that action at this time.