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
| <!--some obfuscated email address--> | |
| <a id="email">hello🍥example👾com</a> |
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 React, { createContext, useState, useContext } from 'react' | |
| import immer from 'immer'; | |
| const ExampleStateContext = createContext() | |
| const ExampleDispatchContext = createContext() | |
| const ExampleProvider = ({children}) => { | |
| const [example, setExample] = useState(null) | |
| return ( | |
| <ExampleStateContext.Provider value={example}> |
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
| #!/bin/bash | |
| function check(){ | |
| pbpaste | wc -m | |
| } | |
| function render(){ | |
| pbpaste | |
| } | |
| function clear(){ | |
| echo -n '' | pbcopy |
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
| -- built for love | |
| ball = { | |
| x = 400, | |
| y = 100, | |
| r = 25 | |
| } | |
| paddle = { | |
| w = 100, |
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
| function widenArray(arr,width) { | |
| return arr.map(row=>row.length>=width?row:[...row,...(Array(width-row.length).fill(''))]) | |
| } |
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
| // replace transform translate with x & y | |
| transform="translate\(([0-9]*\.[0-9]*) ([0-9]*\.[0-9]*)\)" | |
| x="$1" y="$2" |
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
| #!/bin/bash | |
| mkdir nzip-temp | |
| zip -r nzip-temp/nzip $1 | |
| npx servor nzip-temp 8080 & | |
| ~/ngrok http 8080 & | |
| open http://127.0.0.1:4040 |
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 /usr/local/bin/node | |
| const { exec } = require('child_process'); | |
| exec('mkdir nzip-temp') | |
| exec('zip -r nzip-temp/nzip '+process.argv[2]) | |
| exec('npx servor nzip-temp 8080') | |
| exec('~/ngrok http 8080') | |
| exec('open http://127.0.0.1:4040') | |
| exec('rm -rf nzip-temp') |
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 /usr/local/bin/node | |
| const bitbar = require('bitbar'); | |
| const http = require('https'); | |
| // change me for your package | |
| const package = '188946163494' | |
| let provider = null //'FEDEX' | |
| http.get(`https://package.place/api/track/${package}`, (res) => { |