Skip to content

Instantly share code, notes, and snippets.

View orta's full-sized avatar
🥂

Orta Therox orta

🥂
View GitHub Profile
@orta
orta / prs.csv
Created October 13, 2020 20:46
Pull Requests per day to DefinitelyTyped
2012-10-11 1
2012-10-18 3
2012-10-24 1
2012-10-25 3
2012-10-26 2
2012-10-29 3
2012-10-30 4
2012-10-31 1
2012-11-01 1
2012-11-02 3
@orta
orta / _npm-vs-yarn.md
Last active November 1, 2020 19:10
Yarn vs npm CLI

These are the common everyday commands used in most projects:

Installing a package deps

npm install

yarn install
@orta
orta / tsconfig-oneliners.csv
Last active August 24, 2020 21:00
TSConfig one-liners
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
Name,Site,Schema
compilerOptions,"The set of compiler options for your project","Instructs the TypeScript compiler how to compile .ts files"
allowJs,"Let TS include .JS files in imports","Allow javascript files to be compiled."
allowSyntheticDefaultImports,"Allow 'import x from y' when a module doesn't have a default export","Allow default imports from modules with no default export. This does not affect code emit, just typechecking."
allowUmdGlobalAccess,"Assume UMD imports are all globally available","Allow accessing UMD globals from modules."
allowUnreachableCode,"Error when code will never be called","Do not report errors on unreachable code."
allowUnusedLabels,"Error when accidentally creating a label","Do not report errors on unused labels."
alwaysStrict,"Ensure 'use strict' is always emitted","Parse in strict mode and emit 'use strict' for each source file. Requires TypeScript version 2.1 or later."
assumeChangesOnlyAffectDirectDependencies,"A drastically faster, but occasionally inaccurate watch mode
@orta
orta / eleventy-twoslash.ts
Created August 23, 2020 10:39
Eleventy Twoslash Markdown It plugin
import MarkdownIt from "markdown-it";
import { createShikiHighlighter, renderCodeToHTML, runTwoSlash, canHighlightLang } from "shiki-twoslash";
import { HighlighterOptions, Highlighter } from "shiki/dist/highlighter";
export default function markdownItShikiTwoslash(markdownit: MarkdownIt, userOptions: HighlighterOptions): void {
let highlighter:Highlighter = null!
// @ts-ignore - fixed in next release to always be a promise
createShikiHighlighter(userOptions).then(h => highlighter = h)
const oldFence = markdownit.renderer.rules.fence;
@orta
orta / launch.json
Created July 30, 2020 22:40
TS launch JSON
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach by Process ID",
<div id="app"></div>
@orta
orta / me.txt
Last active June 19, 2023 12:09
whoami
Since 2013 I've worked entirely in the open, lowering the barriers to different
developer ecosystems as one of the most active users on GitHub.
I've helped big OSS projects with design, project management and occasionally code.
@orta
orta / main.gif
Last active June 19, 2023 12:09
Yesterday's PRs:
main.gif
@orta
orta / all_pods_with_spm.csv
Created June 17, 2020 20:38
Pods which has SPM support
name spm_support
Representor TRUE
URITemplate TRUE
Siren TRUE
SwiftyJSON TRUE
Moya TRUE
CryptoSwift TRUE
KeychainAccess TRUE
NSManagedObject-HYPPropertyMapper TRUE
ProtocolBuffers-Swift TRUE
@orta
orta / types.txt
Last active December 20, 2020 21:27
Types on DT by popularity
node, yargs, events, minimatch, glob, q, istanbul-lib-coverage, istanbul-lib-report, @babel/generator, @babel/traverse, react, stack-utils, @babel/core, istanbul-reports, yargs-parser, @babel/template, prop-types, lodash, jest, color-name, json-schema, express, express-serve-static-core, connect, body-parser, serve-static, mime, parse-json, eslint-visitor-keys, range-parser, react-dom, normalize-package-data, history, long, webpack-sources, tough-cookie, request, unist, source-list-map, caseless, tapable, webpack, estree, jasmine, webpack-env, react-transition-group, selenium-webdriver, uglify-js, uuid, sizzle, react-router, @reach/router, hoist-non-react-statics, fs-extra, zen-observable, chai, anymatch, jquery, semver, debug, ws, react-syntax-highlighter, mocha, bluebird, react-redux, react-router-dom, @testing-library/dom, json5, node-fetch, jasminewd2, cheerio, is-function, react-textarea-autosize, cors, duplexify, @testing-library/react, mkdirp, babel-types, babylon, enzyme, react-native, async, keygrip,