I hereby claim:
- I am brandonkal on github.
- I am brandonkal (https://keybase.io/brandonkal) on keybase.
- I have a public key ASCOZCot8RJfPnviADzY6dP_lYm3tK2rGXoMjS0rPtJeCQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| --- | |
| - name: Delete files from directory not in whitelist | |
| hosts: localhost | |
| gather_facts: false | |
| vars: | |
| whitelist: | |
| - a | |
| - b | |
| - c | |
| tasks: |
| #!/bin/bash | |
| # Adds desired submodule to project at location and performs a shallow clone, | |
| # Then it performs a sparse checkout with the files specified | |
| set -e | |
| usage() { | |
| echo | |
| echo "usage: submodule-add https://gitremote.git vendor/mod" | |
| echo "Optionally you can pass desired files and folders to checkout as additional arguments..." | |
| echo "e.g. submodule-add https://remoterepo.git submodule importantdir docker-compose.yml" |
This is intended as a quick reference and showcase. For more complete info, see John Gruber's original spec and the Github-flavored Markdown info page.
This cheatsheet is specifically Markdown Here's [^1] version of Github-flavored Markdown. This differs slightly in styling and syntax from what Github uses, so what you see below might vary a little from what you get in a Markdown Here email, but it should be pretty close [^2]. This paragraph has two footnotes for testing.
You can play around with Markdown on our live demo page.
(If you're not a Markdown Here user, check out the Markdown Cheatsheet that is not specific to MDH. But, really, you should also use Markdown H
| #!/usr/bin/env bash | |
| # How to run this file | |
| # 1. Download file | |
| # 2. In terminal navigate to folder containing this file. | |
| # 3. chmod +x code-extensions.sh | |
| # 4. ./code-extensions.sh | |
| ###################################### | |
| # Everything below this line will execute by running the script | |
| ###################################### |
| let blacklists = ["*://youtube.com*", "*://mail.google.com/*"] | |
| set smoothscroll | |
| " Match my customized Saka Key bindings | |
| map "a" createTabbedHint | |
| unmap "ctrl+shift+f" | |
| map "shift+a" createForegroundHint | |
| unmap "g i" | |
| map "shift+f i" goToInput |
| { | |
| "activeProfiles": { | |
| "General": "power", | |
| "Keybindings": "Brandon", | |
| "Appearance": "default", | |
| "Blacklist": "default" | |
| }, | |
| "profiles": { | |
| "General": { | |
| "power keep focus": { |
| import ts from 'typescript' | |
| import fs from 'fs' | |
| import path from 'path' | |
| function transform( | |
| contents: string, | |
| libSource: string, | |
| compilerOptions: ts.CompilerOptions = {} | |
| ) { | |
| if (!compilerOptions.target) { |
| import React from 'react' | |
| export interface Size { | |
| width: number | |
| height: number | |
| } | |
| export function useInitialMeasure(ref: React.RefObject<HTMLElement | null>) { | |
| const [bounds, setBounds] = React.useState<Size>({ | |
| width: 0, |
| export type PromiseType<T extends Promise<any>> = T extends Promise<infer U> | |
| ? U | |
| : never | |
| export type Arguments<T> = T extends (...args: infer U) => infer R ? U : never | |
| export type ReplaceReturn<T, TNewReturn> = (...a: Arguments<T>) => TNewReturn | |
| type Fn = (...args: any[]) => any | |
| export type Go<E extends Error, T extends Fn> = { |