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
yarn run v1.5.1 | |
$ node test/lint | |
Found 1 inconsistent feature(s) in api/AnimationEffectTimingReadOnly.json: | |
→ 9 × AnimationEffectTimingReadOnly [api.AnimationEffectTimingReadOnly]: | |
→ No support in webview_android, but this is not declared for sub-feature(s): delay, direction, duration, easing, endDelay, fill, iterationStart, iterations | |
→ No support in chrome, but this is not declared for sub-feature(s): delay, direction, duration, easing, endDelay, fill, iterationStart, iterations | |
→ No support in chrome_android, but this is not declared for sub-feature(s): delay, direction, duration, easing, endDelay, fill, iterationStart, iterations | |
→ No support in edge, but this is not declared for sub-feature(s): delay, direction, duration, easing, endDelay, fill, iterationStart, iterations | |
→ No support in edge_mobile, but this is not declared for sub-feature(s): delay, direction, duration, easing, endDelay, fill, iterationStart, iterations | |
→ No support in firefox, but this is not declared for |
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
#!/usr/bin/env bash | |
gfxpf() { | |
git reset | |
for file in $(git ls-files --modified) | |
do | |
git add $file | |
git commit --fixup=$(git log -1 --pretty=format:%h $file) | |
done | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am caugner on github. | |
* I am claasaug (https://keybase.io/claasaug) on keybase. | |
* I have a public key ASBWqNBZQNznG4rKSKlkmZcRQBEMfA48b-Ygrdj9ychEHgo | |
To claim this, I am signing this object: |
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
### Keybase proof | |
I hereby claim: | |
* I am caugner on github. | |
* I am claasaug (https://keybase.io/claasaug) on keybase. | |
* I have a public key ASBQ69ueLmRHw5Gfg1Wg7p5CGAENouEwq5NzTszec0qRowo | |
To claim this, I am signing this object: |
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
prompt_hg() { | |
(( $+commands[hg] )) || return | |
local rev status | |
if $(hg root 2> /dev/null); then | |
if $(hg prompt >/dev/null 2>&1); then | |
if [[ $(hg prompt "{status|unknown}") = "?" ]]; then | |
# if files are not added | |
prompt_segment red white | |
st='±' | |
elif [[ -n $(hg prompt "{status|modified}") ]]; then |
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
<?php | |
/** | |
* Migrates Trac 0.10 attachments to 1.0 attachments. | |
* | |
* Based on: | |
* - https://trac.edgewall.org/browser/branches/1.0-stable/trac/upgrades/db28.py | |
* - https://trac.edgewall.org/browser/branches/1.0-stable/trac/attachment.py | |
*/ | |
if ($argc != 3) { | |
printf("USAGE: %s INPUT_DIR OUTPUT_DIR", $argv[0]); |
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
<?php | |
$file = isset($argv[1]) ? $argv[1] : null; | |
if (empty($file)) { | |
printf("USAGE: %s file.js", $argv[0]); | |
exit; | |
} | |
if (!is_file($file)) { | |
printf("ERROR: File does not exist: %s", $file); | |
} |
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
# Usage: | |
# $ cat file.tex | ruby latex-bracket-depth.rb | |
# $ echo "\textbf{ \textit{foobar} }" | ruby latex-bracket-depth.rb | |
# \textbf{1\111111{222222}1} | |
content = STDIN.read | |
len = content.size | |
level = 0 |
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
#!/bin/bash | |
# cac = commit-at-changetime | |
alias git-cac=git commit --date="$(git ls-files --modified | xargs stat | grep "Modify: " | sort | tail -1 | awk '{gsub("Modify: ", "", $0); print $0}')" |
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
#!/bin/bash | |
if (( $# != 3 )); then | |
echo "Usage: $0 ftp.example.com ftp-user ftp-password" | |
exit 1 | |
fi | |
SERVER=$1 | |
USER=$2 | |
PASS=$3 |