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
{ | |
"id": 875825248, | |
"keymap": [ | |
[ | |
{ "col": 0, "row": 0, "val": 41 }, | |
{ "col": 1, "row": 0, "val": 58 }, | |
{ "col": 2, "row": 0, "val": 59 }, | |
{ "col": 3, "row": 0, "val": 60 }, | |
{ "col": 4, "row": 0, "val": 61 }, | |
{ "col": 5, "row": 0, "val": 62 }, |
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
[ | |
{ | |
"name": "Old Man", | |
"ironic": true, | |
"times": [0], | |
"phrase": "An old man turned 98\nHe won the lottery, and died the next day" | |
}, | |
{ | |
"name": "Black Fly", | |
"ironic": true, |
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
const calc = (coins, value) => { | |
return coins.reduce((acc, coin) => { | |
while (acc.balance >= coin) { | |
if (!acc.result[coin]) acc.result[coin] = 0; | |
acc.result[coin]++; | |
acc.balance -= coin; | |
} | |
return acc; | |
}, { balance: value, result: {}}); | |
} |
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
const fs = require('fs') | |
const url = require('url') | |
const path = require('path') | |
const http = require('http') | |
const static = require('node-static') | |
const httpProxy = require('http-proxy') | |
const file = new static.Server('./', { cache: 0 }) | |
const proxy = httpProxy.createProxyServer({}) |
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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
/// <reference types="Cypress" /> | |
import draggable from './draggable' | |
// drag and drop a source element to a target selector, anchoring the drop to the given | |
// position of the selector. positions are the same as the cypress trigger command | |
Cypress.Commands.add('drop', { prevSubject: 'element' }, ($source, selector, position) => { | |
cy.get(selector).then($target => { | |
const source = $source[0] | |
const target = $target[0] | |
draggable(source, target, position) |
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
on main() | |
set hugeMonitor to "LG ULTRAWIDE" -- set to name shown at top of displays system prefs applet | |
set debigulateIndex to 2 -- set to 1-based index of preferred "scaled" size from displays system prefs applet | |
set debigulateWidth to 2560 -- set to width of preferred "scaled" size from displays system prefs applet | |
set debigulateHeight to 1100 -- set to height of preferred "scaled" size from displays system prefs applet | |
set embiggenWidth to 3840 -- set to width of "default for display" size from displays system prefs applet | |
set embiggenHeight to 1600 -- set to height of "default for display" size from displays system prefs applet | |
tell current application | |
tell application "System Events" | |
repeat while true |
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
import Quill from 'quill' | |
const Clipboard = Quill.import('modules/clipboard') | |
const Delta = Quill.import('delta') | |
class PlainClipboard extends Clipboard { | |
onPaste (e) { | |
e.preventDefault() | |
const range = this.quill.getSelection() | |
const text = e.clipboardData.getData('text/plain') | |
const delta = new Delta() |
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
// *********************************************************** | |
// https://on.cypress.io/plugins-guide | |
// *********************************************************** | |
const dotenv = require('dotenv-extended') | |
const getenv = require('getenv') | |
dotenv.load() | |
const overrideBaseUrl = () => { | |
let baseUrl = getenv.string('CYPRESS_BASE_URL', '') |