Skip to content

Instantly share code, notes, and snippets.

@dadambickford
dadambickford / resources.md
Last active May 28, 2020 17:42
A collection of mostly local startup/tech/job hunting resources.
###### Initial user input
# ask users name and save input as NAME
read -p "Enter the name of the user being added, followed by [ENTER]: " NAME
# ask group name and save input as GROUP
read -p "Enter the name of the group being added, followed by [ENTER], (leave empty to skip): " GROUP
###### Helper functions
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
@dadambickford
dadambickford / .emoji.rb
Created March 15, 2017 04:35
Random emoji print for terminal
#!/usr/bin/ruby
# encoding: UTF-8
#emoji = %w(😈 👻 👹 👺 💩 💀 👽 👾 🐗 ⚡ ️ 🔥 🐨 🍔 🍕 🍜 🍣 🍻 🍸 🍹 🍺 🎃 💥 🎬 🎮 🎥 📺 📼 💸 💰 💣 🔪 🔫 🔨 💎 🐷 🐽 👍 👉 👊)
emoji = %w(⚡)
print emoji.sample
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
# *) local and remote branch names
# *) local and remote tag names
var flifo = {
actualArrivalTimeLocal: "01 Jan 0001 12:00 AM"
actualDepartureTime: "6:51 a.m.",
actualDepartureTimeLocal: "15 Sep 2016 6:51 AM",
airSpeedKPH: "0",
airSpeedMPH: "31",
airTemperatureC: "-53",
airTemperatureF: "-63",
aircraftModel: "Boeing 737-800SFP",
altitudeFt: "35809",
/**
* BatchGeoKeyboardShortcuts stores and initializes all of the keyboard shortcuts
* for the batchgeo map.
*/
window.BatchGeoKeyboardShortcuts = (function () {
/**
* _activeElements is a private state object for this module to keep track of which
* shortcut contexts are active. document and #mapWrap are active by default on
* page load.
*
$('[data-event-action="upvote"]').each(function (i, el) {
var $this = $(this);
var interval = i * 350;
setTimeout(function () {
$this.click();
}, interval);
});