Skip to content

Instantly share code, notes, and snippets.

View jpinnix's full-sized avatar

Jeremy Pinnix jpinnix

View GitHub Profile

Oh my zsh.

Install with curl

sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Enabling Plugins (zsh-autosuggestions & zsh-syntax-highlighting)

  • Download zsh-autosuggestions by
@jpinnix
jpinnix / convert_itermcolors.py
Created April 20, 2020 21:30 — forked from MSylvia/convert_itermcolors.py
Convert .itermcolors file to html hex
#!/usr/bin/env python
#
# Convert .itermcolors files to hex colors for html
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
return '#%02x%02x%02x' % rgb
@jpinnix
jpinnix / iterm2kitty.py
Created April 20, 2020 21:29 — forked from unglitched/iterm2kitty.py
Convert .itermcolors file to kitty term theme colors
#!/usr/bin/env python3
#
# Convert .itermcolors files to kitty terminal color settings.
# Modded from https://gist.github.com/MSylvia/4e90860743f1a4de187d
# Might need to adjust dicts[i][NUMBER].text per your file.
import sys
import xml.etree.ElementTree as ET
def rgb_to_hex(rgb):
@jpinnix
jpinnix / webflow-breakpoints.css
Created April 17, 2020 16:11 — forked from vejnoe/webflow-breakpoints.css
Webflow Standard Breakpoints
@media screen and (max-width: 991px) {
/* Your responsive CSS */
}
@media screen and (max-width: 767px) {
/* Your responsive CSS */
}
@media screen and (max-width: 479px) {
/* Your responsive CSS */
}
@jpinnix
jpinnix / Pixelgrazer.taskpapertheme
Created July 8, 2010 17:59
Pixelgrazer TaskPaper Theme
<theme>
<!-- Window Style -->
<color id="foreground" red="1.0" green="0.776" blue="0.427" alpha="1.0" />
<color id="background" red="0.255" green="0.255" blue="0.255" alpha="1.0" />
<window foregroundColorID="foreground" backgroundColorID="background" shouldUseHUDScrollers="no" />
<!-- Text View Style -->
<color id="tag" red="0.800" green="0.471" blue="0.200" alpha="1.0" />
<color id="handle" extendsColorID="foreground" />
<color id="insertionPoint" red="1.0" green="1.0" blue="1.0" alpha="1.0" />
@jpinnix
jpinnix / git-cheat-sheet.md
Created February 18, 2019 22:07
git-cheat-sheet.md
command usage
git init Creates an empty Git repository in the specified directory.
git clone Clones a repository located at onto your local machine.
git add Stages only the specified changes for the
10000ft
ActiveCollab
Additor
Aha!
Airtable
Amazing Marvin
Android Messages
Any.do
AnywhereWorks
Arc Studio Pro
@jpinnix
jpinnix / config_compiler.exs
Created August 23, 2018 13:47 — forked from minhajuddin/config_compiler.exs
Compiled configuration
# This is the target module which will be overwritten after dynamic compilation
# You'll be using this to read configuration in your code. For instance, if you
# have a configuration key called `:redis_timeout`, you could read it using
# `MM.Config.get(:redis_timeout)`
defmodule MM.Config do
# we use a default implementation which raises an error when our code tries
# to read configuration before it is compiled.
def get(_key), do: raise("Config has not been compiled yet!")
end
@jpinnix
jpinnix / fitter_happier.txt
Created August 3, 2018 18:06
Fitter Happier by Radiohead
Fitter, happier
More productive
Comfortable
Not drinking too much
Regular exercise at the gym, three days a week
Getting on better with your associate employee contemporaries
At ease
Eating well, no more microwave dinners and saturated fats
A patient, better driver
A safer car, baby smiling in back seat
@jpinnix
jpinnix / soap_method.ex
Created June 20, 2018 15:33 — forked from aoswalt/soap_method.ex
soap method macro for building request body and handling soap responses
defmodule MdToolbox.Api.SoapMethod do
alias __MODULE__
alias MdToolbox.Api.Request
@doc "Builds the request from params"
@callback build_request(params :: list()) :: map()
@doc "Parses the request's response into data"
@callback parse_response(request :: Request.t()) :: Request.t()