Skip to content

Instantly share code, notes, and snippets.

View joshkennedy's full-sized avatar
:shipit:
Slingin' divs and takin' names

Josh Kennedy joshkennedy

:shipit:
Slingin' divs and takin' names
View GitHub Profile
class Game
def initialize(rolls: [])
@rolls = rolls
@score = 0
end
def roll(pins)
@rolls << pins
end
@joshkennedy
joshkennedy / responsive-typography.css
Created June 30, 2018 11:26
Responsive Typography
html {
font-size: 1rem;
}
@media screen and (min-width: 20rem) {
html {
font-size: calc(1rem + 0.3 * ((100vw - 20rem) / 100));
}
}
@joshkennedy
joshkennedy / .gitconfig
Last active December 12, 2017 15:11 — forked from Kelley-Stephens/.gitconfig
.gitconfig
[user]
name = Josh Kennedy
email = jshknndy@gmail.com
[core]
excludesfile = ~/.gitignore
[alias]
co = checkout
br = branch
st = status
cob = "!f() { ticketnum=$1; branchName=$2; git checkout -b \"B2CH-${ticketnum}/${branchName}\"; }; f"
@joshkennedy
joshkennedy / .git-prompt.sh
Created December 12, 2017 14:40 — forked from Kelley-Stephens/.git-prompt.sh
.git-prompt.sh
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
@joshkennedy
joshkennedy / .git-completion.bash
Last active December 12, 2017 14:41 — forked from Kelley-Stephens/.git-completion.bash
.git-completion.bash
# 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
@joshkennedy
joshkennedy / .bash_profile
Last active December 12, 2017 14:40 — forked from Kelley-Stephens/.bash_profile
.bash_profile
# Color Variables
txtblk='\[\e[0;30m\]' # Black
txtred='\[\e[0;31m\]' # Red
txtgrn='\[\e[0;32m\]' # Green
txtylw='\[\e[0;33m\]' # Yellow
txtblu='\[\e[0;34m\]' # Blue
txtpur='\[\e[0;35m\]' # Purple
txtcyn='\[\e[0;36m\]' # Cyan
txtwht='\[\e[0;37m\]' # White
txtrst='\[\e[0m\]' # Text Reset
@joshkennedy
joshkennedy / cloudSettings
Last active January 2, 2018 19:43
Visual Studio Code Settings Sync Gist
{"lastUpload":"2018-01-02T19:43:00.799Z","extensionVersion":"v2.8.7"}
@joshkennedy
joshkennedy / gradient-background.css
Last active November 7, 2017 01:24
Gradient Background Animation
.element {
background: linear-gradient(140deg, #37bad3, #f51397, #fcee21);
background-size: 600% 600%;
animation: BackgroundGradientAnimation 15s ease infinite;
}
@keyframes BackgroundGradientAnimation {
0%{background-position:0% 2%}
50%{background-position:100% 99%}
100%{background-position:0% 2%}
@joshkennedy
joshkennedy / sass-grid.scss
Created January 23, 2014 04:18
Basic Sass grid
@function calculateWidth($cols, $margin) {
@return ((100% - (($cols - 1)*$margin)) / $cols)
}
@mixin one-whole {
width: 100%;
}
@mixin one-half {
$margin: 2;
@joshkennedy
joshkennedy / nodenv-fun
Created November 13, 2013 07:33
Fun with nodenv
$ nodenv versions
$ nodenv local v0.10