The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.
This is the original source for the test-case below:
class ಠ_ಠ extends Array{
#!/bin/sh | |
# install various tools and apps on a fresh Mac | |
# symlink dotfiles | |
source dotfiles.sh | |
# set mac defaults | |
source osxdefaults.sh |
//... | |
showSchoolDetailPage: function (req, res) { | |
if (!req.param('id')) { | |
return res.badRequest('The id of the school (`id`) is a required parameter!'); | |
} | |
// Look up the school, it's associated image, and the associated list of students. | |
School.findOne({ | |
id: req.param('id') |
The attached file file spits out a string for direct injection into the head of a page, which will be a lightweight test of the ability to parse and run ES2015 syntax.
This is the original source for the test-case below:
class ಠ_ಠ extends Array{
Taken from TJ Holowaychuk: http://tjholowaychuk.com/post/26904939933/git-extras-introduction-screencast | |
Added to ~/.bash_aliases | |
alias gd="git diff | subl" | |
alias ga="git add" | |
alias gaa="git add --all" | |
alias gbd="git branch -D" | |
alias gst="git status" | |
alias gca="git commit -a -m" | |
alias gm="git merge --no-ff" |
# usage: load your local environment with a .env file or point to another file | |
# dotenv // load .env by default | |
# dotenv .env.staging // load the environment variables in .env.staging | |
dotenv() { | |
export $(cat ${1:-.env} | xargs); | |
} | |
# dynamically generate branch completion list | |
_list_branch_completions() { | |
COMPREPLY=($(compgen -W "$(git branch --list --sort=refname | tr -d '*')" "${COMP_WORDS[1]}")) |
###Redux Egghead Video Notes###
####Introduction:#### Managing state in an application is critical, and is often done haphazardly. Redux provides a state container for JavaScript applications that will help your applications behave consistently.
Redux is an evolution of the ideas presented by Facebook's Flux, avoiding the complexity found in Flux by looking to how applications are built with the Elm language.
####1st principle of Redux:#### Everything that changes in your application including the data and ui options is contained in a single object called the state tree
#!/usr/bin/env bash | |
set -e | |
# Formats any *.tf files according to the hashicorp convention | |
files=$(git diff --cached --name-only) | |
for f in $files | |
do | |
if [ -e "$f" ] && [[ $f == *.tf ]]; then | |
#terraform validate `dirname $f` | |
terraform fmt $f |
Since Twitter doesn't have an edit button, it's a suitable host for JavaScript modules.
Source tweet: https://twitter.com/rauchg/status/712799807073419264
const leftPad = await requireFromTwitter('712799807073419264');
I have created a local Kubernetes cluster with kind. Following are changes you need to get metric-server running on Kind.
Deploy latest metric-server release.
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.0/components.yaml
Within existing arguments to metric-server container, you need to add argument --kubelet-insecure-tls
.