yarn init -y && touch index.html && mkdir src && cd src && mkdir css js && cd css && touch style.css && cd ../js && touch index.js
View keybindings.json
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
[ | |
{ | |
"key": "ctrl+shift+`", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+`", | |
"command": "workbench.action.terminal.focus", | |
"when": "!terminalFocus" | |
}, |
View pre-commit
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
#!/bin/bash | |
protected_branch='develop' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
if [ $protected_branch = $current_branch ] | |
then | |
read -p "You're about to commit to develop, is that really a world that you want to live in? [y|n] " -n 1 -r < /dev/tty | |
echo | |
if echo $REPLY | grep -E '^[Yy]$' > /dev/null |
View vscode.settings.js
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
{ | |
"workbench.iconTheme": "vscode-icons", | |
"git.enableSmartCommit": true, | |
"git.confirmSync": false, | |
"editor.tabSize": 4, | |
"files.autoSave": "off", | |
"editor.formatOnSave": true, | |
"editor.formatOnType": true, | |
"editor.formatOnPaste": true, | |
"editor.detectIndentation": false, |
View .bash_profile
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
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
alias ls='ls -GFh' |
View package.json
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
{ | |
"name": "basic", | |
"version": "1.0.0", | |
"description": "Basic", | |
"scripts": { | |
"py3": "python -m http.server 7777", | |
"py2": "python -m SimpleHTTPServer", | |
"build": "touch index.html favicon.ico style.css app.js && npm run dev && atom ." | |
} | |
} |
View readme.md
##Simple AJAX example
- New request
- Callback
- Open
- Send
View gulpfile.js
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
//////////////////////////////////////////////////////////////////////////////////// | |
// Require | |
//////////////////////////////////////////////////////////////////////////////////// | |
var gulp = require('gulp'), | |
prefix = require('gulp-autoprefixer'), | |
notify = require('gulp-notify'), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, | |
sass = require('gulp-ruby-sass'), |
View Layout mixins SASS
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
/////////////////////////////////////////////////////////////////////////////////////////////// | |
// Width float mixin | |
/////////////////////////////////////////////////////////////////////////////////////////////// | |
@mixin float($width) { | |
width: $width; | |
float: left; | |
display: block; | |
clear: none; | |
} |
View markup
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
<div class="table-wrapper"> | |
<div> | |
<table border="0" class="pricing-table-a"> | |
<tbody> | |
<tr><th> </th><th>Medical</th><th>Cancellation</th><th>Winter Sports Equipment</th><th>Piste Closure</th><th>Price<sup>(1)</sup></th></tr> | |
<tr class="highlight"> | |
<td>Columbus Direct</td> | |
<td>£10 million</td> | |
<td>£3,000</td> | |
<td>£400</td> |
NewerOlder