A Pen by Nigh7Sh4de on CodePen.
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
# Misc | |
defaults write .GlobalPreferences com.apple.mouse.scaling -1 |
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
# Python | |
alias python=python3 | |
alias pip=pip3 | |
# Yarn | |
alias ynuke='yarn cache clean && rm -rf node_modules .next && yarn' | |
# Git | |
# Checkout | |
g() { |
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 Koa = require('koa') | |
const Router = require('koa-router') | |
const BodyParser = require('koa-bodyparser') | |
const app = new Koa() | |
const router = new Router() | |
const fs = require('fs') | |
app.use(BodyParser()) | |
router.post('/log', ctx => { |
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 Koa = require('koa') | |
const Crypto = require('crypto') | |
const axios = require('axios') | |
const app = new Koa() | |
const _cache = {} | |
function cache(query, data) { | |
const hash = Crypto.createHash('sha256') | |
hash.update(JSON.stringify(query)) |
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
declare module pc { | |
export module fw { | |
export class Application { | |
constructor(canvas: HTMLElement, options: any); | |
start: () => void; | |
setCanvasFillMode: (mode: any) => void; | |
setCanvasResolution: (mode: any) => void; | |
on: (event: string, any) => void; |