Inspired by this issue on the lodash repo, asking for deep functionality for omit
.
Note that there are plans to remove omit
entirely in lodash v5... and props to this comment (and the one it quotes) in response to that 😆.
# ----------------------------------- # | |
webpack --display-modules | awk '{print $2}' | grep ^\.\/ > files-processed.txt; | |
cd src; # assumes all your files are here | |
find . -name *.js?(x) | grep -v eslint | grep -v __ > ../../files-all.txt; # excludes __tests__ and .eslintrc files | |
cd ..; | |
cat files-all.txt | xargs -I '{}' sh -c "grep -q '{}' files-processed.txt || echo '{}'"; | |
rm files-processed.txt files-all.txt; | |
# ----------------------------------- # |
# Steps to build and install tmux from source. | |
# Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
VERSION=2.5 | |
sudo yum -y remove tmux | |
sudo yum -y install wget tar libevent-devel ncurses-devel | |
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
tar xzf tmux-${VERSION}.tar.gz | |
rm -f tmux-${VERSION}.tar.gz | |
cd tmux-${VERSION} |
Inspired by this issue on the lodash repo, asking for deep functionality for omit
.
Note that there are plans to remove omit
entirely in lodash v5... and props to this comment (and the one it quotes) in response to that 😆.
#!/bin/bash | |
dev='' | |
build='' | |
restart='' | |
help='' | |
getopt --test > /dev/null | |
if [[ $? -ne 4 ]]; then | |
echo "I’m sorry, `getopt --test` failed in this environment." |
const http = require('http'), | |
staticServerHandler = require('./staticServerHandler'), | |
port = 8080 | |
let server = http.createServer(staticServerHandler) | |
server.listen(port) | |
console.log('Static server listening on port ' + port) |
""" | |
Exports Issues from a specified repository to a CSV file | |
Uses basic authentication (Github username + password) to retrieve Issues | |
from a repository that username has access to. Supports Github API v3. | |
Derived from https://gist.github.com/unbracketed/3380407 | |
""" | |
import csv | |
import requests |
FROM centos:7 | |
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.1/install.sh | bash \ | |
&& source /root/.nvm/nvm.sh \ | |
&& nvm install 5.0 |
Here are the conventions that we should adhere to as a team in order to create consistency between our work. General guidelines below followed by more specific settings for editors that have been used by the team.
var gulp = require('gulp'); | |
gulp.task('handlebars', ['font:icon'], function () { | |
var config = require('../config'); | |
var handlebars = require('gulp-compile-handlebars'); | |
var bs = require('browser-sync').get('gulp'); | |
var ext = require('gulp-ext'); | |
var plumber = require('gulp-plumber'); | |
var path = require('path'); | |
var fs = require('fs'); |