Skip to content

Instantly share code, notes, and snippets.

View YodasWs's full-sized avatar

Sam Grundman YodasWs

  • Charlotte, NC
View GitHub Profile
@YodasWs
YodasWs / streaming.md
Last active November 23, 2019 19:17
List of streaming services and their owners/content providers

Streaming Services

(for those in the United States)

Multi-Network

  • hulu (Disney)
    • ABC
# Gulp Completion
# Sam Grundman <[email protected]>
#
# This will auto-complete your Gulp task names when you hit tab!
#
# License: CC BY 4.0 https://creativecommons.org/licenses/by/4.0/
#
# Installation
# 1. Save to ~/
# 2. in .bashrc:
@YodasWs
YodasWs / completion.sh
Created May 30, 2017 19:40
Generalized Bash completion script for several different CLI utils
#!bash
#
# bash/zsh completion for many dev utilities
#
# Forked from gulp-completion.sh
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
#
# Copyright © 2016,2017 Samuel B Grundman <[email protected]>
# Released under Creative Commons BY-NC-SA 4.0 License
@YodasWs
YodasWs / Cardrack
Last active May 15, 2017 14:58
Cardrack: cards on big screens, carousel on small screens
Cardrack
========
Your one-stop component for either a table-esque layout of Cards (blocks, tombstones) or a Carousel, _or both!_
With Cardrack, using the same markup, your table-esque layout can collapse into a Carousel on small screens, or large screens, or all screens.
## Installation
### Simple Markup
@YodasWs
YodasWs / Vimium
Created March 28, 2017 16:56
Vimium Settings
" Use OS-standard shortcuts instead
unmap x
unmap X
unmap r
unmap t
" More logical prev/next tab commands
map H previousTab
map L nextTab
map J scrollPageDown
map K scrollPageUp
@YodasWs
YodasWs / screensaver.html
Created December 19, 2016 14:01
A quick page I threw together to cycle through images like a screensaver :D
<!DOCTYPE html>
<html lang="en">
<head>
<title>Samuel Grundman presents Green Christmas</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<style>
* {
box-sizing: border-box;
}
html, body {
@YodasWs
YodasWs / gulpfile-ember.js
Last active June 13, 2017 12:59
Lots of fun things that can be done with gulp
'use strict';
function camelCase(name) {
name = name.split('-')
if (name.length > 1) {
for (let i=1; i<name.length; i++) {
name[i] = name[i].charAt(0).toUpperCase() + name[i].slice(1)
}
}
return name.join('')
@YodasWs
YodasWs / .bashrc
Last active January 22, 2019 00:26
Simplifying my work in the terminal
# Display useful information in command line prompt
export PS1="\n\d \t\n\n\w !\! >"
# Files with further utilities
files=(
# Auto-complete commands
~/git-completion.sh
~/gulp-completion.sh
)
for i in "${!files[@]}"; do
@YodasWs
YodasWs / server.js
Last active September 9, 2016 18:28
A simplistic NodeJS HTTP server
var http = require('http'),
path = require('path'),
fs = require('fs'),
optional = require('optional'),
sass = optional('node-sass')
http.createServer(function(req, res) {
var fileName = req.url == '/' ? '/index.html' : decodeURIComponent(req.url),
filePath = __dirname + '/www' + fileName,
ext = fileName.lastIndexOf('.') > -1 ? fileName.substring(fileName.lastIndexOf('.') + 1) : 'html'