Skip to content

Instantly share code, notes, and snippets.

View eschie's full-sized avatar
👾
sweltering in space

Austin Eschenbach eschie

👾
sweltering in space
View GitHub Profile
@eschie
eschie / vimrc
Created September 25, 2020 18:21 — forked from meskarune/vimrc
simple functional vim status line - jellybeans theme colors
" status bar colors
au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta
au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan
" Status line
" default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%)
" Status Line Custom
let g:currentmode={
@eschie
eschie / bash_script_template.sh
Created April 22, 2020 18:04
Start new bash scripts with...
#!/usr/bin/env bash
set -euo pipefail
`cat>/dev/null` redirects the command standard output to the null device, special device which discards the information written to it.
@eschie
eschie / FBfix
Last active September 21, 2016 06:50
Facebook Broken Link Fix - Bookmarklet for Safari iOS
javascript:void((function(){var%20u%20=%20decodeURIComponent(window.top.location.href);var%20sub1%20=%20'https://m.facebook.com/lsr.php?u=';%20window.top.location.href%20=%20u.substring(sub1.length,%20u.indexOf('&ext'));})())
@eschie
eschie / My bash profile
Created May 16, 2014 16:59
My bash profile
### Aliases
# Open specified files in Sublime Text
# "s ." will open the current directory in Sublime
alias s='open -a "Sublime Text 2"'
alias bp='open ~/.bash_profile'
# Color LS
colorflag="-G"
alias ls="command ls ${colorflag}"
tail -n +2 test.css > test.css
# remove up to the second line (remove first line) of a file and output to new file
for file in *.css; do tail -n 7 "$file" > "${file%.css}".new.css; done
while read url; do curl -o $(basename $url.html) "$url"; done < ../urllist.txt
@eschie
eschie / jQueryPluginShell
Created November 13, 2013 03:46
jQ plugin shell
// Polyfill -- Extend Object.create for older browsers
if ( typeof Object.create !== 'function' ){
Object.create = function ( obj ) {
function F();
F.prototype = obj;
return new F();
};
}
(function( $, window, document, undefined ) {
@eschie
eschie / my_first_pubsub
Created November 11, 2013 00:40
My First Pub/Sub
/* MY FIRST PUB/SUB jQuery
* ESCHIE/DESIGN_PATTERNS
*
*/
(function($) {
var o = $( {} );
$.each({
trigger: 'publish',
@eschie
eschie / gist:2159048
Created March 22, 2012 15:31
Script of my homepage including featured post video slider (AnythingSlider) and bottom cartridge image hover
<script>
$(function(){
$('#slider1').anythingSlider({
resizeContents : true,
addWmodeToObject : 'transparent',
enableNavigation : false,
buildArrows : false,
easing : 'easeInOutCubic'
})