Skip to content

Instantly share code, notes, and snippets.

View dadambickford's full-sized avatar

Adam Bickford dadambickford

  • Vancouver, Washington
View GitHub Profile
@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 <[email protected]>
# 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 <[email protected]>
# 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);
});