- Checked
- Unchecked
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 puppeteer = require("puppeteer"); | |
| (async () => { | |
| const browser = await puppeteer.launch({ headless: false }); | |
| const page = await browser.newPage(); | |
| await page.evaluateOnNewDocument(() => { | |
| Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { | |
| value: () => { | |
| console.log("Hey there"); |
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
| local ret_status="%(?:%{$fg_bold[white]%}λ:%{$fg_bold[red]%}λ)" | |
| # local gitpwd=$(git rev-parse --show-toplevel) | |
| local dim="\e[2m" | |
| git_pwd() { | |
| if [[ -n $(git rev-parse --show-toplevel 2> /dev/null) ]]; then | |
| echo "$(git rev-parse --show-toplevel)" | |
| else | |
| echo "" | |
| fi |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDTi+lQ3schnVU9UWWeANET1bXKHDgqux6wBXi0dpneTSMK3Kc8UxkdiJrIaNByG7eYqvq1WgeuGnvpvX8XJHqWddm4I6U2gompF5/0GB7lbKo2obLUf6Wwl1flUHE7Iia4wxZysLlAjp2ASTDJkcot7VUDOg9RgdQZUC8uByZ/4Wk8g6eQv+GM23Y0x+EKc+ii2hF78uhSDTG41LKLrbZch+kgpeqnwcLEtcb3P9aB1SBPuoVgQhg4BPFdYb3Lv48e5AO0Rs9HTdX22GZw3x19z8JAxeLJecgsAMkgMvnpNTbPx9nTCRR8bUOaipJ3v3q4eLid88M/MKGmEYRiaIPFLYVanooiBZOAoh8cXJvt1LrCNFnrQXFzIuUdYSvEKVnIcjNhOoLHAR0lZzPDLho0cbBlxHzX3in83OCMU0ufLlTu1Vx6L4o0qQDb88EDpvGbny/k1ceYTZ3V+o363STcDh60KExfqZT9okz+rByq7Z3j09OwMjZXmRGh2ZzAHenac/+jynRmZ7XcXU03mLS6w5iotm1mDYgb/xpTLkzBRbx7WGxKdrEGMyXctR3SBLipbbfNYcuMO8k9shoI1Ns3ry3A3eGObwM3A36QGSplxBdN2soBUARfABUGepvuozhAh//N12uTxan32pBSVUs+6GBOKe2fwAOQdTeohKn/9Q== [email protected] |
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
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCvurJtVN/6j4dk2XlpPuzDsIE2aZ3O5a+mrolFzLdlYy8S0QyL1M1H8fwSKy+MGRDHbnyVJY0/M6bOBFpAE7lb7Nq5WgFMuv9MtaJpjwV6PNhB7YCNzMjWOxPT4tBSH8Vb9ZVVqpfC5ZVJgpw62m3UzBxRFECYZeZeMMZDLClD6bKJABVkuEaXI05rg0LrOAf9bKSixQ/taoVw/gRefFQZ5ZyCdU6Nbd4Jrj5niRrP+iPzZYRmY/u7FZXNe97u+2WTHKSWEQOihROhysah7tatIfSmuIy+xfOdP65uaPVwF0a6kkD/IhyOCeGLyzf8QYupdy0NKD8KNVx5oohlzGp5KfiF57KcwcH9sBJn/Hy9zu4P1jO1veZre+oF0y+zpGXCA8YL3WfDtley631BqbPbtBoFUvCvi63p2Pe6ys+FMvuCcdNZ2FbPFB0FzsdCWTiZI6FCXUxP+lZziNgQ8EJzQueN1ugN7P+B4ZjZi9JARYfH8Q/uk2qkyU5gOkmrQqYK6H9kbqqDDSEgBI5H8yLS931uZDAZX9a8pZg9Bk4pwfIORJVI4Eb2maFpe+yaJYThM8x3I5XZApZZesNBwC0v558gjtWO0hh+eOSejeMLsDQLK2rzojoSI8CAPPn/QjMdtKAWPbuoTORsoMYwn/otP4XLbFv0RLO0mgXy8Q36fw== [email protected] |
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
| // @flow | |
| import React from 'react'; | |
| import shallowEqual from 'shallowequal'; | |
| import { debounce } from 'lodash'; | |
| import immutagen from 'immutagen'; | |
| export let create_generator_component = (generator_fn) => { | |
| let { Provider, Consumer } = React.createContext(); |
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 Module = void 0 !== Module ? Module : {}; | |
| export default function() { | |
| var e, | |
| t = {}; | |
| for (e in Module) Module.hasOwnProperty(e) && (t[e] = Module[e]); | |
| var r, | |
| n, | |
| o = [], | |
| s = function(e, t) { | |
| throw t; |
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
| #!/usr/bin/env node | |
| const util = require('util'); | |
| const exec = util.promisify(require('child_process').exec); | |
| let run = fn => fn(); | |
| run(async () => { | |
| try { | |
| let { stdout: git_status_output } = await exec('git diff --cached --name-status'); |
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
| interface Request { | |
| _id: string, | |
| clientId: string, | |
| // Needed for custom title or to add something to the existing todo title. | |
| // For example: "Open Bank Account" + "(2 accounts)" | |
| title: string, | |
| // Required to set when opening a request. | |
| todoId: string, | |
| status: RequestStatus, | |
| steps: (ProposalStep)[], // Copied from Todo. Used to track progress. |
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
| let scoped_storage = (key, { storage = localStorage } = {}) => { | |
| return { | |
| get: ({ default = null } = {}) => { | |
| let value_stringified = localStorage.getItem(key); | |
| if (value_stringified == null) { | |
| return default; | |
| } | |
| try { |