Skip to content

Instantly share code, notes, and snippets.

View prettydiff's full-sized avatar
💭
Home from military deployment

Austin Cheney prettydiff

💭
Home from military deployment
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Untitled benchmark</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>
Connection-specific DNS Suffix . : prettydiff
IPv6 Address. . . . . . . . . . . : 2600:1700:1220:76c9:f982:507a:283b:3df9
Temporary IPv6 Address. . . . . . : 2600:1700:1220:76c9:c8aa:b730:bad4:ece8
Link-local IPv6 Address . . . . . : fe80::f982:507a:283b:3df9%14
IPv4 Address. . . . . . . . . . . : 192.168.0.161
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : fe80::76da:daff:fead:ba8a%14
192.168.0.23
Ethernet adapter Ethernet 2:
security = function dom_load_security():void {
const scripts:HTMLCollectionOf<HTMLScriptElement> = document.getElementsByTagName("script"),
exclusions:string[] = [
"", //put relative addresses for your authorized scripts here
],
len:number = scripts.length,
exlen:number = exclusions.length;
let a:number = 0,
b:number = 0,
src:string = "";
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()
@prettydiff
prettydiff / gist:8682c3a4bbaadd1a0fe0103f1ad65c98
Last active March 18, 2018 11:50
color cycle text for the commandline
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) {
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;
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,
@prettydiff
prettydiff / index.html
Created July 11, 2017 18:35
dom walking versus querySelector - 3 (http://jsbench.github.io/#19326344341cbc33122e0e8fbbd21b5a) #jsbench #jsperf
<!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>
@prettydiff
prettydiff / index.html
Created July 11, 2017 15:53
dom walking versus querySelector - 2 (http://jsbench.github.io/#ae7713b7b1db5878d60ecd1f827e091d) #jsbench #jsperf
<!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>
@prettydiff
prettydiff / index.html
Created July 11, 2017 15:50
dom walking versus querySelector - 1 (http://jsbench.github.io/#24d619b25e826b4d2914a138ce9eb274) #jsbench #jsperf
<!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>