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
Show hidden characters
{ | |
"compilerOptions": { | |
/* Visit https://aka.ms/tsconfig to read more about this file */ | |
/* Projects */ | |
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ | |
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ | |
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ | |
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ | |
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ |
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 dspToTailwind = (dsp) => { | |
const colors = dsp.entities.filter((e) => e.type === 'color') | |
const obj = {} | |
colors.forEach((c) => { | |
const isSys = c.id.startsWith('md.sys') | |
if (isSys) { | |
const [name, theme] = c.id.slice(13).split('.') | |
const camelName = name | |
.toLowerCase() | |
.replace(/[-_][a-z]/g, (group) => group.slice(-1).toUpperCase()) |
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
sequenceDiagram | |
participant Matt | |
participant Cashier 1 | |
participant Kitchen | |
participant Barista | |
Matt->>Cashier 1: Can I have a latte? My name is Matt | |
Cashier 1->>Kitchen: Make Matt a latte | |
Kitchen->>Barista: Make Matt a latte | |
Barista->>Cashier 1: Latte for Matt | |
Cashier 1->>Matt: Here's your latte, Matt |
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
// This is a way to emulate webpack's HMR but it actually works more reliably, but doesn't work with a single output | |
import fs from 'fs' | |
import util from 'util' | |
const readFile = util.promisify(fs.readFile) | |
const writeFile = util.promisify(fs.writeFile) | |
const isReady = (watcher) => { | |
return new Promise((resolve) => { | |
watcher.on('ready', resolve) |
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
{ | |
content @__clientField(handle: "contentText") | |
contentText | |
} |
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
# Application Schema | |
{ | |
viewer { | |
name | |
githubApi { | |
# GitHub Schema | |
query { | |
viewer { | |
bio | |
} |
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
type Json = null | boolean | number | string | Json[] | {[key: string]: Json} | |
const defaultParser = <T>(buffer: Buffer): T => JSON.parse(buffer.toString()) | |
const parseBody = <T = Json>({ | |
res, | |
parser = defaultParser | |
}: { | |
res: HttpResponse | |
parser?: (buffer: Buffer) => 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
Update to newest OS | |
Copy over ~/.ssh, .gitconfig, .bashrc, .gnupg from old computer (webstorm doesn't support forced ssh for openssh keys!) | |
chmod 600 ~/.ssh/id_rsa | |
chown -R $(whoami) ~/.gnupg/ | |
find ~/.gnupg -type f -exec chmod 600 {} \; | |
find ~/.gnupg -type d -exec chmod 700 {} \; | |
ssh-add | |
Install Chrome, Firefox, VSCode | |
Install docker | |
Install qbittorrent |
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
TERSER | |
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB). | |
This can impact web performance. | |
Assets: | |
AgendaAndTasksRoot_1baade6d2fcf4b102c87.js (257 KiB) | |
DashboardWrapper_018af80128e05855c610.js (505 KiB) | |
DemoMeeting_92f365e48a456524bd59.js (1.1 MiB) | |
MeetingRoot_dc596ff3db9ff7239eee.js (1.03 MiB) | |
RetroRoot_f5f44240a44e41d8d2fb.js (1.1 MiB) | |
vendors~GraphqlContainer_961b6996164fa5de3cc1.js (643 KiB) |
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
1. "Study" an image by doing multiple passes on it before moving on. This should cause overfitting since we're changing the entire model for just 1 example. | |
2. "Grow up" greatly simplify the images in earlier epochs & then grown more detailed. images start out as being black & white blobs, then get color & sharpness | |
3. "myelinate" the first layer of a convnet by removing it & going straight to the 2nd layer. maybe this could reduce inference time? | |
4. "symmetricize" simple features like 45 deg angles by manually replacing the generated feature map with a human-perfected one. this should reduce noise & possible error in later layers |
NewerOlder