This file contains 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
// ==UserScript== | |
// @name Whatsapp Audio Speedup | |
// @namespace https://palhari.dev | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author Pedro Palhari | |
// @match https://web.whatsapp.com/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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 img = document.querySelector("img"); | |
async function imgSourceToBlob(img) { | |
let canvas = document.createElement('canvas'); | |
canvas.width = img.width; | |
canvas.height = img.height; | |
let ctx = canvas.getContext('2d'); | |
ctx.drawImage(img, 0, 0); |
This file contains 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 { | |
Application, | |
Router, | |
send, | |
} from "https://deno.land/x/[email protected]/mod.ts"; | |
const app = new Application(); | |
const router = new Router(); |
This file contains 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
// ==UserScript== | |
// @name [GITHUB] Create branch from issue | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description Creates a branch using the issue. Adds a button to the interface. | |
// @author Pedro Palhari | |
// @match https://github.com/*/*/issues/* | |
// @grant none | |
// ==/UserScript== |
This file contains 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
#export NODE_PATH=/home/pedro/.nvm/versions/node/v14.16.0/lib/node_modules | |
export NODE_PATH= | |
alias tnode="node -r @swc-node/register" |
This file contains 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
// a(uthorized)fetch | |
function getAccessToken() { | |
return localStorage.getItem("@project/accessToken"); | |
} | |
function setAccessToken(token: string) { | |
localStorage.setItem("@project/accessToken", token); | |
} |
This file contains 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 { execSync } = require("child_process"); | |
function bash(template, ...substitutions) { | |
let command = String.raw(template, substitutions); | |
let out = execSync(command); | |
return out.toString(); | |
} |
This file contains 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
{ | |
"application/vnd.lotus-1-2-3": [".123"], | |
"text/vnd.in3d.3dml": [".3dml"], | |
"video/3gpp2": [".3g2"], | |
"video/3gpp": [".3gp"], | |
"application/octet-stream": [ | |
".a", | |
".bin", | |
".bpk", | |
".deploy", |
This file contains 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
{ | |
"dev": "concurrently -c green.bold,blue.bold -n NEXT,TSC \"npm run dev-next\" \"npm run dev-tsc\"", | |
"dev-next": "next dev", | |
"dev-tsc": "tsc --noEmit --watch --preserveWatchOutput", | |
"build": "rimraf ./.next && next build && next export" | |
} |
This file contains 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 { InputDefinitionBlock, OutputDefinitionBlock } from "nexus/dist/blocks"; | |
type TType<T extends string> = | |
| InputDefinitionBlock<T> | |
| OutputDefinitionBlock<T>; | |
// Type for the definition. | |
type CommonTypeDefinitionFunction = <T extends string>( | |
t: InputDefinitionBlock<T> | |
) => void; |
OlderNewer