Samples for blog post How to implement mixins in typescript
Full code available here as a standalone project: https://github.com/nch3v/typescript-mixins
Samples for blog post How to implement mixins in typescript
Full code available here as a standalone project: https://github.com/nch3v/typescript-mixins
#!/bin/bash | |
# store the current dir | |
CUR_DIR=$(pwd) | |
# Let the person running the script know what's going on. | |
echo -e "\n\033[1mPulling in latest changes for all repositories...\033[0m\n" | |
# Find all git repositories and update it to the master latest revision |
From [pfn/keepasshttp#242]
sudo apt-get install libmono-system-xml-linq4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-runtime-serialization4.0-cil
sudo apt-get install mono-mcs
#!/bin/sh | |
npm install -g npm@latest | |
npm install -g npm-check | |
npm install -g now | |
npm install -g serve |
[user] | |
name = Some One | |
email = some1@domain.com | |
[color] | |
# Enable colors in color-supporting terminals | |
ui = auto | |
[alias] | |
st = status -s | |
ci = commit | |
lg = log --graph --date=relative --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ad)%Creset' |
These are useful docker commands:
alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)'
alias docker_clean_ps='docker rm $(docker ps --filter=status=exited --filter=status=created -q)'
alias docker_clean_volumes='docker volume rm $(docker volume ls -qf dangling=true)'
# to add at the end of ~/.bashrc | |
RED="\[\033[0;31m\]" | |
YELLOW="\[\033[0;33m\]" | |
GREEN="\[\033[0;32m\]" | |
BLUE="\[\033[0;34m\]" | |
LIGHT_RED="\[\033[1;31m\]" | |
LIGHT_GREEN="\[\033[1;32m\]" | |
WHITE="\[\033[1;37m\]" | |
LIGHT_GRAY="\[\033[0;37m\]" | |
COLOR_NONE="\[\e[0m\]" |
function all(arrayOfPromises) { | |
return jQuery.when.apply(jQuery, arrayOfPromises).then(function() { | |
return Array.prototype.slice.call(arguments, 0); | |
}); | |
}; |