Skip to content

Instantly share code, notes, and snippets.

View shaun-sweet's full-sized avatar
🐴
nayyy

Shaun Sweet shaun-sweet

🐴
nayyy
View GitHub Profile
function getArrayOfThing<T> (object: T) {
return [object]
}
@shaun-sweet
shaun-sweet / appLaunch.ahk
Last active November 2, 2018 21:40
Auto Hotkey app launcher/focuser
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; SEE https://autohotkey.com/docs/misc/Remap.htm for hotkey mappings
; This are examples of how to leverage the auto hotkey function that launches/focuses the application.
; The first argument is the location to the executable to launch the application. Some applications have "launchers" so to speak
; so the executable to launch and the process that runs from that aren't the same name.
@shaun-sweet
shaun-sweet / keybase.md
Created February 6, 2018 06:53
keybase

Keybase proof

I hereby claim:

  • I am shaun-sweet on github.
  • I am ssweet (https://keybase.io/ssweet) on keybase.
  • I have a public key ASBYBIeLyfqh67kUIEZQwsXlp_grMHqV8PhvAYCbeXWVSAo

To claim this, I am signing this object:

/*
Style HTML
--------------
Usage:
style_html(html_source);
style_html(html_source, options);
function refreshWeeks (sourceScheduleId, targetScheduleId) {
if (targetScheduleId !== sourceScheduleId) {
RefreshService.refresh({
weekId: sourceScheduleId,
});
}
RefreshService.refresh({
weekId: targetScheduleId,
});
}
@shaun-sweet
shaun-sweet / cloudSettings
Created September 22, 2017 06:24
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-09-22T06:24:00.602Z","extensionVersion":"v2.8.3"}
source ~/.bashrc
# echo is like puts for bash (bash is the program running in your terminal)
echo "Loading ~/.bash_profile a shell script that runs in every new terminal you open"
# $VARIABLE will render before the rest of the command is executed
echo "Logged in as $USER at $(hostname)"
# Load RVM into a shell session *as a function*
# Path for RVM
.svg-icon {
width: 40px;
height: 40px;
display: inline-block;
&.dribbble { background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDBweCIgaGVpZ2h0PSI0MHB4IiB2aWV3Qm94PSIwIDAgNjAgNjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPjxwYXRoIGQ9Ik0wLjIyNDU4MDY4OCwzMCBDMC4yMjQ1ODA2ODgsMTMuNDMxNDU2NyAxMy40NTQ5NDEsMCAyOS43NzU0MTkzLDAgQzQ2LjA5NTg5NzYsMCA1OS4zMjYyNTc5LDEzLjQzMTQ1NjcgNTkuMzI2MjU3OSwzMCBDNTkuMzI2MjU3OSw0Ni41Njg1NDMzIDQ2LjA5NTg5NzYsNjAgMjkuNzc1NDE5Myw2MCBDMTMuNDU0OTQxLDYwIDAuMjI0NTgwNjg4LDQ2LjU2ODU0MzMgMC4yMjQ1ODA2ODgsMzAgWiBNMC4yMjQ1ODA2ODgsMzAiIGZpbGw9IiNFQTRDODkiIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPjwvcGF0aD48cGF0aCBkPSJNNDYuODIwMTQwMiwyOS44MzA2MzA3IEM0Ni44MjAxNDAyLDMwLjk5MTA2NjIgNDYuNzAzOTM4MSwzMi4xNDk4OTIgNDYuNDc1Njk1OCwzMy4yNzk0NzczIEM0Ni4yNTMxMzQ4LDM0LjM4MjIzNjMgNDUuOTIzNDg4MSwzNS40NjQ4NzU3IDQ1LjQ5MTY0NDQsMzYuNDk5ODMxNCBDNDUuMDY
class BingoBoard
def initialize(board)
#initialized the game instance and maps the array to a hash to model a bingo board.
@bingo_board = board
maperino
end
def call