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
function foo() { | |
throw new Error('foo') | |
} | |
foo.createApp(); |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
struct Foo { | |
string: String, | |
state: i32, | |
} | |
// immutable borring N | |
// mutable - 1 EXCLUSIVE |
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
/** | |
* Generated parser in Rust. | |
* | |
* ./bin/syntax -g examples/calc.rs.g -m lalr1 -o lib.rs | |
* | |
* use syntax::Parser; | |
* | |
* let parser = Parser::new(); | |
* | |
* println!("{:?}", parser.parse("2 + 2 * 2")); // 6 |
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
console.log('cookies:', document.cookie) |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"regexp" | |
) | |
func main() { | |
reg := regexp.MustCompile("^/greeting/([a-z]+)$") |
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 s = `This ${ Math.random() > 0.5 ? 'abc' : `Hello ${ 'inner backtick' + ' str' } !` } is .` | |
const value = if (s.length > 14) { | |
a | |
} else { | |
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
var blacklist = [ | |
'es6.arrowFunctions', // supported | |
'es6.blockScoping', // supported | |
'es6.constants', // supported | |
'es6.forOf', // supported | |
//'es6.modules', // supported | |
'regenerator' | |
]; | |
try { |
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
var gulp = require('gulp'); | |
var rsvg = require('gulp-rsvg'); | |
var through = require('through2'); | |
var pot = gulp.pot; | |
var N = 110; | |
var C = 2; | |
gulp.task('st', function(cb) { |