This file contains 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
Linux | |
<CustomCommands> | |
<CustomCommands> | |
<Command type="Execute" command="/opt/monodevelop/lib/monodevelop/bin/MonoDevelop.exe" workingdir="/opt/monodevelop/lib/monodevelop/bin"> | |
<EnvironmentVariables> | |
<Variable name="MONODEVELOP_DEV_ADDINS" value="${TargetDir}" /> | |
</EnvironmentVariables> | |
</Command> | |
</CustomCommands> |
This file contains 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.IO; | |
using System.Threading; | |
using V8.Net; | |
namespace SegmentationFault | |
{ | |
public class Alpha | |
{ |
This file contains 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
Run till exit from #0 CreateHandleProxyTest () at Exports.cpp:610 | |
0x000000004001c275 in ?? () | |
Value returned is $1 = (HandleProxy *) 0x7fffe80a8d50 | |
(gdb) p * (HandleProxy *) 0x7fffe80a8d50 | |
$2 = { | |
<ProxyBase> = { | |
Type = HandleProxyClass | |
}, | |
members of HandleProxy: | |
_ID = 117835012, |
This file contains 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
{ | |
"includes": [ | |
"common.gypi" | |
], | |
'variables':{ | |
'base_dir%':'<(base_dir)', | |
'target_arch%':'x64', | |
'build_option%':'release', | |
}, |
This file contains 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
sudo lldb | |
(lldb) target create mono | |
Current executable set to 'mono' (i386). | |
(lldb) run --debug V8.Net-Console.exe | |
Process 12784 launched: '/usr/bin/mono' (i386) | |
warning: (i386) /Library/Frameworks/Mono.framework/Versions/3.10.0/lib/mono/4.5/mscorlib.dll.dylib empty dSYM file detected, dSYM was created with an executable with no debug info. | |
(lldb) c | |
Creating a V8Engine instance ... Done! |
This file contains 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
// This is the correct solution provided by jamesnw | |
// https://gist.github.com/rjamesnw/5ee5a0a2a769b321e1d0 | |
// I added my solution based on his at the bottom. | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using V8.Net; |
This file contains 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
public class setTimeout : V8Function | |
{ | |
public override ObjectHandle Initialize(bool isConstructCall, params InternalHandle[] args) | |
{ | |
Callback = setTimeoutConstructWrapper; | |
return base.Initialize(isConstructCall, args); | |
} |
This file contains 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
dtmc | |
module statechart | |
// local state | |
s : [0..4] init 0; | |
[] s=0 -> 1.0 : (s'=1) ; | |
[] s=1 -> 0.2 : (s'=3) + 0.8 : (s'=2); | |
[] s=2 -> 1.0 : (s'=1); |
This file contains 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
public static void CleanupSemanticCache() | |
{ | |
var ls = v8Engine.GlobalObject.GetProperty("languageService"); | |
var resultHandle = ls.Call("cleanupSemanticCache", null); | |
} | |
public static Diagnostic[] GetSyntacticDiagnostics(string fileName) | |
{ | |
Handle fileNameHandle = v8Engine.CreateValue(fileName); | |
var ls = v8Engine.GlobalObject.GetProperty("languageService"); |
This file contains 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
// Blog post from Nicholas Wolverson | |
// http://www.scottlogic.com/blog/2015/01/20/typescript-compiler-api.html | |
function getCompilerOutput(text) { | |
host.addFile(dummyScriptName, text); | |
var output = languageService.getEmitOutput(dummyScriptName).outputFiles; | |
return output && output.length > 0 ? output[0].text : ""; | |
} | |
function getMatchingBracePosition(text, pos) { | |
host.addFile(dummyScriptName, text); |
OlderNewer