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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
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
# Nothing below here will change how your terminal looks, rather, it will change some things about how it works. | |
# This allows you to open html files in Chrome more easily by typing "chrome filename". | |
alias chrome="/mnt/c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe" | |
# set -o vi | |
# This allows you to switch between the Ubuntu root and your Windows Root. | |
WINDOWS_USER=$(/mnt/c/Windows/System32/cmd.exe /c 'echo %USERNAME%' | sed -e 's/\r//g') |
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
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]" | |
else | |
echo "" | |
fi |
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 | |
curl https://gist.githubusercontent.com/johncokos/66fad129ce3493d079755f83c4360e9f/raw/0b21422bdaf26923dd3c8686cb4aacec11817bbd/.wsl --output .wsl | |
curl https://gist.githubusercontent.com/johncokos/d1376b366f388523d7b446e11a91868e/raw/11133073c12ac5cf737bebaa3745a5fc066b3e82/.gitprompt --output .gitprompt | |
echo "source ~/.gitprompt" >> ~/.bashrc | |
echo "source ~/.wsl" >> ~/.bashrc | |
## Update APT | |
sudo apt get update |
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
import {createStore, applyMiddleware} from 'redux'; | |
import reporter from '../reporter'; | |
// Simulate an error or simulate something good just return statel | |
let mockStore = () => { | |
let reducer = (state=0, action) => { | |
let {type,payload} = action; | |
switch(type) { | |
case "ERROR": | |
throw new Error("WAT?"); |
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
{ | |
"version": "1.0.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Nodemon: Current File", | |
"cwd": "${fileDirname}", | |
"runtimeExecutable": "nodemon", | |
"args": [], |
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
{ | |
"spellright.language": [ | |
"en" | |
], | |
"spellright.documentTypes": [ | |
"markdown", | |
"latex", | |
"plaintext", | |
"wallaby-output", | |
"html" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>About John</title> | |
<style> | |
body { | |
background: #eee; | |
} | |
header { | |
background: #444; |