outDir
can't be in a shared config dir due to microsoft/TypeScript#29172- It's needed even with
noEmit
, because tsconfig.tsbuildinfo will go there
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
diff --git a/templates/pages-template-plugin.ts b/templates/pages-template-plugin.ts | |
index 3b99ea2a82d18d3cbbe713af437dc53c33bd1273..971714e99d2d162fe525d7cab7c6ddf42b1bba1d 100644 | |
--- a/templates/pages-template-plugin.ts | |
+++ b/templates/pages-template-plugin.ts | |
@@ -146,7 +146,7 @@ export default function (pluginArgs: unknown) { | |
if (result.done === false) { | |
const { handler, params, path } = result.value; | |
const context = { | |
- request: new Request(request.clone()), | |
+ request: request, |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<array> | |
<dict> | |
<key>Activate</key> | |
<string>Normal</string> | |
<key>CreationDate</key> | |
<real>591603148.251261</real> | |
<key>Macros</key> |
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
from functools import wraps | |
def decorator(wrapper): | |
"""Simplifies creation of decorators. | |
Removes a layer of nesting (flat is better than nested). | |
Note that args and kwargs are passed in as simple positional args, | |
rather than unpacked *args and **kwargs. This avoids potential naming | |
conflicts between kwargs defined in the wrapped function and the first | |
arg of the wrapper (usually named "wrapped"). As a side effect, it |
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
# Before calling `byebug`, run the following: | |
require 'io/console' | |
require 'byebug' | |
Readline.input = IO.console | |
Readline.output = IO.console | |
Byebug::Context.interface.instance_variable_set('@input', IO.console) | |
Byebug::Context.interface.instance_variable_set('@output', IO.console) | |
Byebug::Context.interface.instance_variable_set('@error', IO.console) | |
# This used to be built in to byebug (https://github.com/deivid-rodriguez/byebug/pull/211) |
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
#!/bin/bash | |
# | |
# This script runs a given command over a range of Git revisions. Note that it | |
# will check past revisions out! Exercise caution if there are important | |
# untracked files in your working tree. | |
# | |
# This is adapted from Gary Bernhardt's dotfiles: | |
# https://github.com/garybernhardt/dotfiles | |
# | |
# Example usage: |
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
#!/bin/bash | |
##### | |
# Fix the ridiculous ambiguity between branches and files in git-checkout. | |
# The new default behavior is to check out branches only. | |
# To check out a file, you must precede the filename with "--". | |
##### | |
found=false | |
for arg in "$@"; do | |
if [[ $arg == "--" ]]; then |
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
#!/bin/bash | |
exec arcyon task-create "$@" -p normal --format-url --projects Product $PROJ | tee >(pbcopy) |
Please publicly post the following Gist, and name it keybase.md:
I hereby claim:
- I am russelldavis on github.
- I am russell (https://keybase.io/russell) on keybase.
- I have a public key whose fingerprint is 1FD0 A33F 28EF 63E0 C007 1661 2A16 F6C3 DC27 6AAC
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
#!/bin/bash | |
set -e | |
orig_head=$(git rp HEAD) | |
branch=${1:-$(git rev-parse --abbrev-ref HEAD)} | |
remote=$(git config "branch.$branch.remote") | |
tracking_branch=$(git rev-parse --abbrev-ref --symbolic-full-name $branch@{u}) | |
git fetch $remote | |
git rebase --preserve-merges $tracking_branch |
NewerOlder