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
| { | |
| "presets": [ | |
| "@babel/preset-typescript", | |
| [ | |
| "@babel/preset-env", | |
| { "ignoreBrowserslistConfig": true, "targets": { "node": true } } | |
| ], | |
| "@babel/react" | |
| ] | |
| } |
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
| { | |
| "presets": [ | |
| "@babel/preset-typescript", | |
| [ | |
| "@babel/preset-env", | |
| { "ignoreBrowserslistConfig": true, "targets": { "node": true } } | |
| ], | |
| "@babel/react" | |
| ] | |
| } |
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
| import Papa, { ParseConfig, Parser } from 'papaparse'; | |
| export type CsvAsyncIteratorOptions = Exclude< | |
| ParseConfig, | |
| 'step' | 'chunk' | 'complete' | 'error' | |
| >; | |
| /** | |
| * Helper to allow async iteration over the contents of | |
| * a CSV input. |
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 | |
| set -x | |
| DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
| NAME=${1:-localhost} | |
| CA_KEY=$DIR/dev_cert_ca.key.pem | |
| [ -f $CA_KEY ] || openssl genrsa -des3 -out $CA_KEY 2048 |
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 | |
| # | |
| # Usage: dev_signed_cert.sh HOSTNAME | |
| # | |
| # Creates a CA cert and then generates an SSL certificate signed by that CA for the | |
| # given hostname. | |
| # | |
| # After running this, add the generated dev_cert_ca.cert.pem to the trusted root | |
| # authorities in your browser / client system. | |
| # |
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 getRelativeParent = element => { | |
| if (!element) { | |
| return null; | |
| } | |
| const position = window | |
| .getComputedStyle(element) | |
| .getPropertyValue('position'); | |
| if (position !== 'static') { | |
| return element; |
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
| // Make this into a bookmark, and clicking it while you have a task selected in Asana will copy a markdown | |
| // formatting link to that task with title and text. This can then be pasted into some markdown-friendly | |
| // location like a github comment. | |
| javascript: void (function() { var textArea = document.createElement("textarea"); textArea.value = `[${(document.querySelector('.SingleTaskTitleRow-taskName textarea') || document.querySelector('textarea#details_property_sheet_title') || {value: document.title.replace(' - Asana', '')}).value}](${location.href})`; document.body.append(textArea); textArea.select(); document.execCommand('copy'); document.body.removeChild(textArea); })(); |
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 | |
| # Re-center all the pngs in the current folder using ImageMagick | |
| for F in *.png ; do | |
| convert -size $(identify -format '%wx%h' $F) xc:white \( $F -trim \) -gravity center -compose copy -composite $F | |
| 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
| var gulp = require('gulp'); | |
| var plugins = require('gulp-load-plugins')(); | |
| var del = require('del'); | |
| var merge = require('merge-stream'); | |
| var path = require('path'); | |
| var RevAll = require('gulp-rev-all'); | |
| var runSequence = require('run-sequence'); | |
| var os = require('os'); | |
| src = [ |
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 | |
| PROJECT_DIR=$(git rev-parse --show-toplevel) | |
| BASE_COMMIT='upstream/develop' | |
| OLD_ERRS=$(mktemp) | |
| NEW_ERRS=$(mktemp) | |
| # Clean up temp files on interrupt/exit | |
| trap "rm -f $NEW_ERRS" EXIT SIGINT |