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');| /* | |
| * | |
| * ECEF - Earth Centered Earth Fixed | |
| * | |
| * LLA - Lat Lon Alt | |
| * | |
| * ported from matlab code at | |
| * https://gist.github.com/1536054 | |
| * and | |
| * https://gist.github.com/1536056 |
| set nocp noswapfile | |
| syn on | |
| set ai bs=indent,eol,start et sm is ic scs ruler | |
| set ts=2 sts=2 sw=2 | |
| set guioptions-=T | |
| set mouse= | |
| set number | |
| autocmd FileType php set ts=4 sts=4 sw=4 |
| [mysqld] | |
| bind-address = 127.0.0.1 | |
| skip-name-resolve | |
| default_storage_engine = InnoDB | |
| innodb_buffer_pool_size = 256M | |
| innodb_log_buffer_size = 8M | |
| innodb_file_per_table = 1 | |
| innodb_open_files = 400 | |
| innodb_io_capacity = 400 | |
| innodb_flush_method = O_DIRECT |
| db.default.logStatements=true | |
| //Add that to the application.conf, and comment out the Logger lines (~50 - ~60). Restart the play app, and you are now logging with gas! |
| using System; | |
| using System.Diagnostics; | |
| using static System.Math; | |
| // Some helpers for converting GPS readings from the WGS84 geodetic system to a local North-East-Up cartesian axis. | |
| // The implementation here is according to the paper: | |
| // "Conversion of Geodetic coordinates to the Local Tangent Plane" Version 2.01. | |
| // "The basic reference for this paper is J.Farrell & M.Barth 'The Global Positioning System & Inertial Navigation'" | |
| // Also helpful is Wikipedia: http://en.wikipedia.org/wiki/Geodetic_datum |
| class Brew { | |
| var temp: Float = 0.0 | |
| } | |
| class BrewViewModel : NSObject { | |
| var brew = Brew() | |
| dynamic var temp: Float = 0.0 { | |
| didSet { | |
| self.brew.temp = temp | |
| } |
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');| # Makefile for transpiling with Babel in a Node app, or in a client- or | |
| # server-side shared library. | |
| .PHONY: all clean | |
| # Install `babel-cli` in a project to get the transpiler. | |
| babel := node_modules/.bin/babel | |
| # Identify modules to be transpiled by recursively searching the `src/` | |
| # directory. |
To use media keys on the Ducky One 2 Skyline, you must record a macro to bind the media function to a hotkey combination, i.e. Fn plus some key.
Important: In the instructions below, "Press X+Y+Z" means press and hold key X, press and hold key Y, press and hold key Z in that order, and then release all three.
As an example, to bind Fn+PgUp to the play/pause media function: