Skip to content

Instantly share code, notes, and snippets.

View kenziebottoms's full-sized avatar

Kenzie Bottoms kenziebottoms

View GitHub Profile
@kenziebottoms
kenziebottoms / dragon.txt
Created February 11, 2022 18:15
Dragon ASCII art
_ __,----'~~~~~~~~~`-----.__
. . `//====-_ ___,-' `
-. \_|// . /||\\ `~~~~`---.___./
______-==. _-~o~ \/ ||| \\ _,'`
__,--' ,=='||\=_ ;_--~/_-'|- |`\ \\ ,'
_-' ' | \\`. '-'~7 /- / || `\. /
.' | \\ \_ / /- / || \ /
/ ____ __ | \\.`-_/ /|- _/ ,|| \ /
@kenziebottoms
kenziebottoms / iterm.json
Last active February 11, 2022 18:15
iterm.json
{
"Use Non-ASCII Font" : false,
"Tags" : [
],
"Ansi 12 Color" : {
"Green Component" : 0.83529411764705885,
"Blue Component" : 1,
"Red Component" : 0.40784313725490196
},
@kenziebottoms
kenziebottoms / kenziebottoms.zsh-theme
Last active March 11, 2021 23:11
kenziebottoms.zsh-theme
# forked from agnoster.zsh-theme
CURRENT_BG='NONE'
case ${SOLARIZED_THEME:-dark} in
light) CURRENT_FG='white';;
*) CURRENT_FG='black';;
esac
# Special Powerline characters
@kenziebottoms
kenziebottoms / .prettierrc
Created January 30, 2019 17:44
My Prettier Config
{
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"overrides": [
{
"files": "*.scss",
"options": {
"tabWidth": 4
@kenziebottoms
kenziebottoms / mileage_calc.php
Last active May 14, 2019 21:23
Mileage calculator script tag
<script type="text/javascript">
// hard-coded product id of mile rate woocommerce product
let productId = 246;
let map, auto;
const v1_url = window.theme_bundle_data.rest_url + 'sim/cremation/shop/v1/';
const v2_url = window.theme_bundle_data.rest_url + 'sim/cremation/shop/v2/';
@kenziebottoms
kenziebottoms / dd.sh
Created September 4, 2018 21:20
Convert all .ebcdic files to ASCII
#!/bin/sh
if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
. /etc/bash_completion
fi
# ./dd.sh in.ebcdic out.txt
if [ "$#" -eq "2" ]; then
dd conf=ascii if=$1 of=$2
fi
@kenziebottoms
kenziebottoms / .zshrc
Last active November 21, 2022 01:38
oh-my-zsh shortcuts
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
DEFAULT_USER="mckenzie"
ZSH_THEME="kenziebottoms"
@kenziebottoms
kenziebottoms / ng-enter.js
Created May 1, 2018 19:06
Angular directive: `ng-enter`
"use strict";
const angular = require("angular");
// reference: https://stackoverflow.com/questions/17470790/how-to-use-a-keypress-event-in-angularjs
angular.module("mixtape").directive("ngEnter", function () {
return {
controller: "MixCtrl",
link: function (scope, element, attrs) {
element.bind("keydown keypress", function (event) {
@kenziebottoms
kenziebottoms / update.bash
Created March 13, 2018 16:04
Update VS Code on Ubuntu
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb
sudo dpkg -i /tmp/code_latest_amd64.deb