Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| $('div.src-accomRooms-container button.btnSelectRoom').on('click', function clickButonRoom(e){ | |
| }) | |
| MutationObserver = window.MutationObserver || window.WebKitMutationObserver | |
| var observer = new MutationObserver(function(mutations, observer) { | |
| // fired when a mutation occurs | |
| console.info(mutations, observer); | |
| // Use of the information here. | |
| }); |
| #!/bin/bash | |
| # -------------------------------- | |
| # Totally Simple Web Server (TSWS) | |
| # -------------------------------- | |
| # | |
| # (c) 2015 Dave Fletcher | |
| # All Rights Reserved | |
| # | |
| # This is free and unencumbered software released into the public domain. |
| /* eslint-disable comma-style */ | |
| 'use strict' | |
| /** | |
| * Object passed to cbk should be: | |
| * 'error': ... // Try/catch execution error. | |
| * 'noEntry': ... // Args passed in do not match the requirements. | |
| * 'fail': ... // When function did not complete successfully the taks. | |
| */ |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');| const filterProductsRow = window.jQuery('div#FiltersAndProductsWrapper div.col-xs-12 div.FilterProductsTable div.FilterProductsRow').css({ | |
| 'display': 'flex' | |
| , 'flex-direction': 'column' | |
| }) | |
| const filterContainer = window.jQuery('div#FilterContainer', filterProductsRow).css({ | |
| 'order': '1' | |
| }).removeClass('col-xs-12 col-md-2 MobClosed') | |
| const productContainer = window.jQuery('div#ProductContainer', filterProductsRow).css({ |
| // @flow | |
| /* eslint array-callback-return: "error" */ | |
| /* eslint block-scoped-var: "error" */ | |
| /* eslint no-implied-eval: "error" */ | |
| /* eslint comma-style: ["error", "first"] */ | |
| /* eslint max-len: ["error", 80] */ | |
| /* eslint max-params: ["error", 3] */ | |
| /* eslint-env es6 */ | |
| /* eslint newline-per-chained-call: ["error", { "ignoreChainWithDepth": 1 }] */ | |
| /* eslint operator-linebreak: [2, "before"] */ |
| // standard-eslint config plus customise below. | |
| /* eslint array-callback-return: "error" */ | |
| /* eslint block-scoped-var: "error" */ | |
| /* eslint no-implied-eval: "error" */ | |
| /* eslint comma-style: ["error", "first"] */ | |
| /* eslint max-len: ["error", 80] */ | |
| /* eslint max-params: ["error", 3] */ | |
| /* eslint-env es6 */ | |
| /* eslint newline-per-chained-call: ["error", { "ignoreChainWithDepth": 1 }] */ | |
| /* eslint operator-linebreak: [2, "before"] */ |
| // @flow | |
| // /* eslint array-callback-return: "error" */ | |
| /* eslint block-scoped-var: "error" */ | |
| /* eslint no-implied-eval: "error" */ | |
| /* eslint comma-style: ["error", "first"] */ | |
| /* eslint max-len: ["error", 130] */ | |
| /* eslint max-params: ["error", 3] */ | |
| /* eslint-env es6 */ | |
| /* eslint newline-per-chained-call: ["error", { "ignoreChainWithDepth": 1 }] */ | |
| /* eslint operator-linebreak: [2, "before"] */ |
| /* eslint array-callback-return: "error" */ | |
| /* eslint block-scoped-var: "error" */ | |
| /* eslint no-implied-eval: "error" */ | |
| /* eslint comma-style: ["error", "first"] */ | |
| /* eslint max-len: ["error", 191] */ | |
| /* eslint max-params: ["error", 3] */ | |
| /* eslint-env es6 */ | |
| /* eslint newline-per-chained-call: ["error", { "ignoreChainWithDepth": 1 }] */ | |
| /* eslint operator-linebreak: [2, "before"] */ |