This gist is a proposal for lightning talk at Reactive Conf 2017
Like the idea? Give me a 🌟 and see you in Bratislava!
Hello, my name is Eduard!
I'm the maintainer of Create Elm App and contributor to Create React App and Webpack
| console.clear() | |
| function isBalanced(input) { | |
| let stack = [] | |
| const length = input.length | |
| for (let i = 0; i < length; i++) { | |
| if (input[i] === '(') { | |
| stack.push('(') | |
| } else { |
| [user] | |
| name = Your Name | |
| email = [email protected] | |
| [core] | |
| autocrlf = input | |
| safecrlf = false | |
| ignorecase = false | |
| excludesfile = ~/.gitignore | |
| [branch] | |
| autosetuprebase = never |
| // Async Generator for implementing State Machines with asynchronous transitions. | |
| // | |
| // Try online: https://jsfiddle.net/ecf1bho9/ | |
| console.clear() | |
| async function* state() { | |
| let state = 0 | |
| let action | |
| while (true) { |
| function powerOf10LessThan(number) { | |
| return Math.floor(Math.log10(number)) | |
| } | |
| function step(number) { | |
| return value + (10 ** powerOf10LessThan(number)) | |
| } | |
| function stepMany(number, steps) { | |
| let res = value |
| SSH_ENV="$HOME/.ssh/environment" | |
| function start_agent { | |
| echo "Initialising new SSH agent..." | |
| /usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}" | |
| echo succeeded | |
| chmod 600 "${SSH_ENV}" | |
| . "${SSH_ENV}" > /dev/null | |
| /usr/bin/ssh-add; | |
| } |
| # Editor configuration, see http://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 2 | |
| end_of_line = lf | |
| insert_final_newline = true | |
| trim_trailing_whitespace = true |
This gist is a proposal for lightning talk at Reactive Conf 2017
Like the idea? Give me a 🌟 and see you in Bratislava!
Hello, my name is Eduard!
I'm the maintainer of Create Elm App and contributor to Create React App and Webpack
| Handlebars.templates = new Proxy(Handlebars.templates, { | |
| get: function (target, property) { | |
| var TEMPLATE_KEY = '<!-- TEMPLATE: Teamplates/' + property + '.handlebars -->\n' | |
| var method = target[ property ]; | |
| if (typeof target[ property ] === 'function') { | |
| return new Proxy(method, { | |
| apply: function (target, thisArg, argumentsList) { | |
| return TEMPLATE_KEY + target.apply(thisArg, argumentsList) + TEMPLATE_KEY; |
| // Alternative https://gist.github.com/nantunes/c4eb68c32843ccd43c7b | |
| window.require = new Proxy(window.require, { | |
| apply: function (target, thisArg, argumentsList) { | |
| console.log('require call to \n ' + argumentsList[ 0 ].join('\n ') + '\n\n'); | |
| return target.apply(thisArg, argumentsList); | |
| } | |
| }); |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| <style id="jsbin-css"> | |
| #input { | |
| border: 0; | |
| clip: rect(0 0 0 0); |