Skip to content

Instantly share code, notes, and snippets.

Avatar

Elliot Wesoff elliotwesoff

View GitHub Profile
@elliotwesoff
elliotwesoff / py-stop-snippet.cson
Created Sep 4, 2019
Python code interact in Atom, with globals and locals
View py-stop-snippet.cson
'.source.python':
'code':
'prefix': 'stop'
'body': 'import code; code.interact(local=dict(globals(), **locals()))'
@elliotwesoff
elliotwesoff / elliot.bat
Created Mar 22, 2017
windows-cmd-shortcuts.bat
View elliot.bat
@echo off
doskey gs=git status
doskey gl=git log
doskey gd=git diff
doskey gb=git branch
doskey l=ls -lah
doskey size=du -sh
doskey e=explorer
doskey hosts=vim C:\Windows\System32\drivers\etc\hosts
@elliotwesoff
elliotwesoff / messenger.html
Last active Mar 13, 2017
Little bb messenger window yay!
View messenger.html
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script>
var height = 300;
var width = 500;
@elliotwesoff
elliotwesoff / setup-dev-environment
Created Nov 8, 2016
Script to quickly setup necessary tools for a Linux dev environment.
View setup-dev-environment
#!/bin/bash
function process_failed {
echo "${1} didn't download correctly"
}
# download vimrc and add to system vimrc
# wget -O ~/.vimrc https://gist.githubusercontent.com/elliotwesoff/f34e786b07209c5e25d4d1f650609771/raw/3c2939e9625ca9f890757be05819a563f57059e7/vimrc
if [ "$?" -eq 1 ]; then process_failed vimrc; else echo vimrc OK; fi
View codeschool.vim
" Vim color file
" Converted from my Textmate Code School theme using Coloration
" http://astonj.com
set background=dark
highlight clear
if exists("syntax_on")
syntax reset
endif
View twilight.vim
" Please note: I am not the creator of the original file. I have, however, changed
" some of the original colors and settings to my liking. You can find the original twilight.vim at:
" http://www.vim.org/scripts/script.php?script_id=1677
set background=dark
hi clear
if exists("syntax_on")
syntax reset
View default-css
body {
font-family: "Courier New";
}
.center {
width: 60%;
margin: auto;
text-align: center;
}
You can’t perform that action at this time.