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 List = React.createClass({ | |
renderList: function () { | |
return this.props.items.map(function (item) { | |
return <ListItem item={value} key={keyvalue.id} />; | |
}); | |
}, | |
render: function () { | |
return <ul className="List"> | |
this.renderList() |
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 changeColor(str) { | |
const arr = str.split(""); | |
let a = arr.length - 1, | |
b = 8; | |
do { | |
arr[a] = `\u001b[3${b}m${arr[a]}`; | |
a = a - 1; | |
b = b - 1; | |
if (b < 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
window.parseFramework={language:function framework_language(){"use strict";return},lexer:{},parse:{},parseerror:"",parser:function framework_parser(){"use strict";return}};/* | |
Parse Framework | |
*/ | |
/*jslint node:true */ | |
/*eslint-env node*/ | |
/*eslint no-console: 0*/ | |
/*global global, location*/ | |
(function parse_init() { | |
"use strict"; | |
let framework; |
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
users.put('/users/:id', (req, res, next) => { | |
function validateAuthentication(userId) { | |
if (userId) { | |
throw Unauthenticated('You have to log in'); | |
} | |
} | |
function ValidateOtherPermission(user) { | |
const hasPermission = checkPermission({ | |
actualRole: user.Role, |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>dom walking versus querySelector - 3</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>dom walking versus querySelector - 2</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>dom walking versus querySelector - 1</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"/> | |
<title>dom walking versus querySelector</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/benchmark/1.0.0/benchmark.min.js"></script> | |
<script src="./suite.js"></script> | |
</head> | |
<body> | |
<h1>Open the console to view the results</h1> |
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
/*jshint laxbreak: true*/ | |
/*jslint node: true, for: true*/ | |
(function biddle() { | |
"use strict"; | |
var node = { | |
child: require("child_process").exec, | |
fs: require("fs"), | |
http: require("http"), | |
https: require("https"), | |
path: require("path") |
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
[Enter steps to reproduce below:] | |
1. ... | |
2. ... | |
**Atom Version**: 1.10.2 | |
**Electron Version**: 0.37.8 | |
**System**: Mac OS X 10.11.6 | |
**Thrown From**: Atom Core |