This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias gs="git status" | |
alias git-status-file='function _git_file(){ git diff --name-only | sed -n ${1}p };_git_file' | |
alias gsf="git-status-file" | |
alias gcp1="gsf 1 | pbcopy" | |
alias ga="git add" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('Observables Example', () => { | |
// set up observable | |
let observable: Observable<any>; | |
// mock the return value from the form | |
const formValue: string = 'United Kingdom'; | |
it('should match observable', () => { | |
// create a mock observable, which triggers once and returns the formValue. This is effectively | |
// like triggering a form change |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GNU Screen - main configuration file | |
# All other .screenrc files will source this file to inherit settings. | |
# Author: Christian Wills - cwills.sys@gmail.com | |
# Allow bold colors - necessary for some reason | |
attrcolor b ".I" | |
# Tell screen how to set colors. AB = background, AF=foreground | |
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start the Virtual Host block, apply for all traffic on port 80 | |
<VirtualHost *:80> | |
# The document root is where the project files will be saved on your computer, ensure that Apache can read from this directory | |
DocumentRoot "/path/to/doc/root" | |
# The server name is what you type in your browser to access the site, this will also need to be set up in your hosts file | |
ServerName yoursitename.dev | |
# If you are interested in tailing error logs, then you can specify a file to output these logs to | |
ErrorLog "/private/var/log/apache2/yoursitename.dev-error_log" | |
# As above, but this is for all requests, not errors | |
CustomLog "/private/var/log/apache2/yoursitename.dev-access_log" common |