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.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using Esprima; | |
using Esprima.Ast; | |
// 2clause BSD licence applies. | |
namespace EsprimaSourceMap |
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
// node.js is about 4-5x faster than JS->C compiler and 470x faster than duktape | |
var obj1,obj2; | |
obj1={x:12,y:34}; | |
obj2={x:56,y:78}; | |
var start,stop; | |
console.log("Warmup"); | |
rot(obj1,obj2); | |
console.log("Bench"); | |
start=new Date().valueOf(); |
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
cl /Ox /O2 /EHsc /Fetpp.exe /DPLAINPROP t.cpp | |
cl /Ox /O2 /EHsc /Fetvirt.exe /DVIRT t.cpp | |
cl /Ox /O2 /EHsc /Fetvoff.exe /DVOFF t.cpp |
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
With visual studio 2015 begin with upgrading to update3 since there's warnings about lower versions in the build scripts. | |
Also make sure python is in the path (tried with python2) | |
Building win32 won't work, neither CL toolset nor final binary will work. Stick to x64 | |
Start with ahmidous comment https://github.com/root-project/cling/issues/186#issuecomment-341898792 | |
git clone http://root.cern.ch/git/llvm.git src | |
cd src | |
git checkout cling-patches |
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
package missilecommand_java; | |
import java.awt.Color; | |
import java.awt.Graphics; | |
import java.awt.GraphicsDevice; | |
import java.awt.GraphicsEnvironment; | |
import java.awt.event.ActionEvent; | |
import java.awt.event.ActionListener; | |
import java.awt.event.KeyAdapter; | |
import java.awt.event.KeyEvent; |
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
exports.bah=function(count,name){ | |
let out=""; | |
while(count--) | |
out+=name+" "; | |
return out; | |
}; |
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
// Syntax demo for writing Cheney on the MTA style code in C++11 | |
// (see http://home.pipeline.com/~hbaker1/CheneyMTA.html for more info) | |
// | |
// Using variadic macros, I managed to design a syntax that is good enough | |
// to write in, as opposed to the automated code generation that COTMTA | |
// originally envisioned. | |
// | |
// key reasons why I intend to use this: | |
// * Writing a Scheme interpreter that keeps the C stack compact |
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
<!-- find the bug --> | |
<html> | |
<head> | |
<script> | |
"use strict"; | |
function iny() { | |
let body=document.getElementById("bod"); | |
let nums=[1,2,3]; |
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
[groups] | |
grp1=user2 | |
[/] | |
user1=rw | |
@grp1= | |
user3= | |
[/some/path] | |
user3=rw |