use git diff to generate file list
git diff --name-only master
add ext filter
git diff --name-only master | grep -E "(.js$|.ts$|.tsx$)"
on: | |
workflow_call: | |
inputs: | |
deploy_target: | |
description: 'Deploy target' | |
required: true | |
type: string | |
default: 'production' | |
secrets: | |
GH_TOKEN: |
import { get } from 'lodash'; | |
const permissions = { | |
study: { | |
see: ['STUDY_MANAGER', 'DATA_ENTRY', 'ADMIN'], | |
create: ['DATA_ENTRY', 'ADMIN'], | |
edit: ['STUDY_DIRECTOR', 'DATA_ENTRY', 'ADMIN'], | |
} | |
} |
/* jshint node : true */ | |
module.exports = [{ | |
name: 'contacts', | |
packages: ['contacts'], | |
handledRoutesPatterns: ['/contact'], | |
routeNames: ['^contact'] | |
}]; |
console.log(1); | |
(_ => console.log(2))(); | |
eval('console.log(3);'); | |
console.log.call(null, 4); | |
console.log.apply(null, [5]); | |
new Function('console.log(6)')(); | |
Reflect.apply(console.log, null, [7]) | |
Reflect.construct(function(){console.log(8)}, []); | |
Function.prototype.apply.call(console.log, null, [9]); | |
Function.prototype.call.call(console.log, null, 10); |
(() => { | |
const CLASS_LIST = [ | |
{type: 'added', className: '.lines-added'}, | |
{type: 'removed', className: '.lines-removed'} | |
]; | |
const stats = CLASS_LIST | |
.reduce((accus, o) => { | |
const total = Array |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
# Run this in the project repo from the command-line | |
# http://stackoverflow.com/a/4593065/99923 | |
git log --shortstat --author "Xeoncross" --since "2 weeks ago" --until "1 week ago" | grep "files changed" | awk '{files+=$1; inserted+=$4; deleted+=$6} END {print "files changed", files, "lines inserted:", inserted, "lines deleted:", deleted}' |