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
const jquery = require("jquery"); | |
$ = window.$ = window.jQuery = jquery; | |
$(document).ready(function () { | |
$('#main').on('click', function() { $(this).remove()}); | |
}) |
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
<html> | |
<head> | |
<script type="text/javascript" src="index.js"> </script> | |
</head> | |
<body> | |
<h1> table here</h1> | |
<div id="hot"> | |
</div> | |
</body> | |
</html> |
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
#![feature(test)] | |
extern crate test; | |
use test::Bencher; | |
pub fn bounds() { | |
let mut pos = 0; | |
let data = vec![1,2,3,4,5,6,7,8,9,10]; | |
loop { | |
let stuff = data[pos]; |
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
extern crate csv; | |
extern crate serde; | |
#[macro_use] | |
extern crate serde_derive; | |
#[derive(Debug, Serialize, Deserialize)] | |
struct Test { | |
name: String, | |
start: u64, | |
stop: u64, |
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
task("A", {async: true}, function() { | |
console.log("Started A"); | |
var task = this; | |
setTimeout(function() { | |
console.log("Finished A"); | |
task.complete(); | |
}, 5000); | |
}); | |
task("B", ["A"], {async: true}, function() { | |
console.log("Started B"); |
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
[1,2,3,4,5,6,7,8,9,10,11,12].forEach(function(i) { | |
jake.exec("echo ".concat(i," > ", i, ".c")); | |
}); | |
rule('.o', '.c', {async: true}, function () { | |
var cmd = 'cp ' + this.source + ' ' + this.name; | |
var task = this; | |
setTimeout(function() { |