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
| var getGlobal = (function(g) { | |
| if (g == null) { | |
| if (typeof System !== 'undefined' && System != null && System.global != null && System.global.System === System) g = System.global; | |
| else if (typeof self !== 'undefined' && self != null && self.self === self) g = self; | |
| else if (typeof window !== 'undefined' && window != null && window.window === window) g = window; | |
| else if (typeof global !== 'undefined' && global != null && global.global === global) g = global; | |
| } | |
| return function() { return g; }; | |
| }(this)); |
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
| commit e6284b9bd6977ca282bdf13d13fab4d8bf6be71b | |
| Normative: Add [?Yield] to PropertyName in AssignmentProperty | |
| commit f0ef98ae9ecdfd1ed1e14721e795f6188a3107ee | |
| Normative: Fix yield * semantics when calling .throw | |
| commit 6ba35eb8fb9aad699efdd1766c52bc9f6401d039 | |
| Normative: update Annex B regexp grammar | |
| commit d96e60a99a40fab2de0df329b3e5445ac27b8a8e | |
| Normative: Remove [[Enumerate]] and associated reflective capabilities | |
| commit 24dad16327b7cbbdf67805e45e58c54abe558f63 | |
| Normative: Require Unicode 8.0.0 |
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
| $ eshost host --list | |
| ┌──────────────┬─────────┬──────────────────────────────────────────────────┬──────┐ | |
| │ name │ type │ path │ args │ | |
| ├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤ | |
| │ nashorn │ nashorn │ /usr/java/jdk1.8.0_66/bin/jjs │ │ | |
| ├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤ | |
| │ v8 │ d8 │ /usr/bin/d8 │ │ | |
| ├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤ | |
| │ jsc │ jsc │ /usr/bin/jsc │ │ | |
| ├──────────────┼─────────┼──────────────────────────────────────────────────┼──────┤ |
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
| console.log(JSON.stringify([].map.call(document.querySelectorAll('.content_body .media-body'), function(ratingEl){ | |
| return { | |
| title: ratingEl.childNodes[3].childNodes[1].textContent, | |
| year: parseInt(ratingEl.childNodes[3].childNodes[2].textContent.slice(1, -1), 10), | |
| rt_link: ratingEl.childNodes[3].childNodes[1].href, | |
| rating: 20 * ratingEl.childNodes[5].querySelectorAll('.glyphicon-star').length + (/½/.test(ratingEl.childNodes[5].textContent) ? 10 : 0), | |
| }; | |
| }).sort(function(a, b){ return a.title > b.title ? 1 : -1; }))); |
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
| (function () { | |
| var g, h; | |
| function x() { f = ""; /* var-scoped f gets value "" */ } | |
| function y() { g = f; /* g gets value of var-scoped f */ } | |
| { | |
| /* var-scoped f is undefined, let-scoped f is a function */ | |
| h = f; /* h gets value of let-scoped f, a function */ | |
| f = 1; /* let-scoped f gets value 1 */ | |
| x(); | |
| y(); |
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
| var ClassName = (function() { | |
| var PRIVATE = {}; | |
| function ClassName(state) { | |
| this.state = state; | |
| } | |
| ClassName.prototype.publicMethod = function publicMethod() { | |
| this.privateMethod(PRIVATE, "..."); | |
| }; |
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
| var apply = Function.prototype.call.bind(Function.prototype.apply); | |
| function createFunctionES5(name, arity, behaviour) { | |
| var params = Array.apply(null, Array(arity)).map(function (x, p) { return "p" + p; }).join(","); | |
| var code = "return function " + name + "(" + params + ") { return apply(f, this, arguments); }"; | |
| return Function("apply", "f", code)(apply, behaviour); | |
| } | |
| var define = Object.defineProperty.bind(Object); |
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
| function escapeUsing(escaper) { | |
| return function(literalParts, ...interpolatedParts) { | |
| let s = literalParts[0]; | |
| for (let [interpolatedPart, literalPart] of zip(interpolatedParts, literalParts.slice(1))) { | |
| s += escaper(interpolatedPart) + literalPart; | |
| } | |
| return s; | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Countdown Timer</title> | |
| <style> | |
| body, html { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; |
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
| {-# LANGUAGE PolyKinds, KindSignatures, MultiParamTypeClasses #-} | |
| module Main where | |
| class Category (arr :: k -> k -> *) where | |
| id :: arr t t | |
| (.) :: arr b c -> arr a b -> arr a c | |
| instance Category (->) where | |
| id x = x |