Hello lovely humans,
eslint-plugin-react just published its new version 6.4.0.
| State |
|---|
| # From https://cloud.google.com/appengine/articles/deferred | |
| import logging | |
| from google.appengine.ext import deferred, ndb | |
| from google.appengine.runtime import DeadlineExceededError | |
| class Mapper(object): | |
| # Subclasses should replace this with a model class (eg, model.Person). | |
| KIND = None |
| // from https://blog.logrocket.com/programmatic-file-downloads-in-the-browser-9a5186298d5c/ | |
| function downloadBlob(blob, filename) { | |
| const url = URL.createObjectURL(blob); | |
| const a = document.createElement('a'); | |
| a.href = url; | |
| a.download = filename || 'download'; | |
| const clickHandler = function() { | |
| setTimeout(() => { | |
| URL.revokeObjectURL(url); |
| from os import environ | |
| from google.appengine.ext import ndb | |
| from google.appengine.ext.ndb import model | |
| from pydash import snake_case | |
| class Config(ndb.Model): | |
| value = ndb.StringProperty() | |
| value_previous = ndb.StringProperty() |
Hello lovely humans,
eslint-plugin-react just published its new version 6.4.0.
| State |
|---|
| #!/bin/bash | |
| GIT_REPO_NAME=$(basename `git rev-parse --show-toplevel`) | |
| BRANCH_NAME=${1} | |
| WORKTREES_DIR="${HOME}/worktrees" | |
| mkdir -p ${WORKTREES_DIR}/${GIT_REPO_NAME} | |
| git branch ${BRANCH_NAME} | |
| git worktree add ${WORKTREES_DIR}/${GIT_REPO_NAME}/${BRANCH_NAME} ${BRANCH_NAME} |
| #!/bin/bash | |
| GIT_REPO_NAME=$(basename `git rev-parse --show-toplevel`) | |
| PR_NUM=${1} | |
| WORKTREES_DIR="${HOME}/worktrees" | |
| mkdir -p ${WORKTREES_DIR}/${GIT_REPO_NAME} | |
| # requires `git fetch-pr` alias credit: https://gist.github.com/gnarf/5406589 | |
| # fetch-pr = "!f() { git fetch -fu ${2:-$(git remote |grep ^upstream || echo origin)} refs/pull/$1/head:pr/$1; }; f" | |
| git fetch-pr ${PR_NUM} |
| #! /usr/bin/env python | |
| # | |
| # cmus_desktop_notify.py: display song cmus is playing using notify-send. | |
| # Copyright (C) 2011 Travis Poppe <[email protected]> | |
| # | |
| # Version 2011.06.24 | |
| # http://tlp.lickwid.net/cmus_desktop_notify.py | |
| # Usage: Run script for instructions. |
| #!/bin/bash | |
| set -ex | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "CI" | |
| git config --global push.default simple | |
| LAST_COMMIT_MSG="$(git log -1 --pretty=%B)" | |
| SEMVER_BUMP_TYPE="$(echo ${LAST_COMMIT_MSG} | sed -n 's/^.*[rR]elease v+\([a-z]\+\).*$/\1/p')" |
| machine: | |
| node: | |
| version: 4.1 | |
| pre: | |
| - sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test && sudo apt-get update && sudo apt-get install gcc-4.9 g++-4.9 | |
| post: | |
| - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 50 --slave /usr/bin/g++ g++ /usr/bin/g++-4.9 |
| [nosetests] | |
| verbosity=3 | |
| with-coverage=1 | |
| cover-branches=1 | |
| cover-xml=1 | |
| cover-xml-file=./coverage.xml | |
| cover-min-percentage=66 | |
| with-profile=1 |