Skip to content

Instantly share code, notes, and snippets.

View contolini's full-sized avatar
🐛
call me

Chris Contolini contolini

🐛
call me
View GitHub Profile
format = """
[▓▒░](fg:#a3aed2 bg:#769ff0)\
$directory\
[](fg:#769ff0 bg:#394260)\
$git_branch\
$git_status\
[](fg:#394260 bg:#212736)\
$nodejs\
$rust\
$golang\
@contolini
contolini / aliases.zsh
Last active October 19, 2023 16:30
ohmyzsh aliases
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias p="cd ~/Projects"
alias g="git"
alias h="history"
alias v="vim"
alias o="open"
alias oo="open ."
# Delete stuff
const startLoading = () => {
document.body.style.opacity = .5;
}
const stopLoading = () => {
document.body.style.opacity = 1;
}
const createResultItem = data => {
const div = document.createElement( 'div' );
<div class="o-info-unit-group">
<h2>Some title</h2>
<div class="content-l">
<div class="content-l_col content-l_col-1-2">
<div class="m-info-unit">
<div class="m-info-unit_image m-info-unit_image__square" style="background-image: url( 'https://via.placeholder.com/150' );">
</div>
<div class="m-info-unit_content">
<h3>A title</h3>
<div>
<div class="o-info-unit-group">
<h2>Some great things</h2>
<div class="content-l">
<div class="content-l_col content-l_col-1">
<div class="m-info-unit m-info-unit__inline">
<div class="m-info-unit_image m-info-unit_image__square" style="background-image: url( 'https://via.placeholder.com/150' );">
</div>
<div class="m-info-unit_content">
<h3>Here's a great thing</h3>
<div class="rich-text">
@contolini
contolini / deploy.md
Last active July 3, 2019 14:01
How to automatically deploy a GitHub repo's branches to surge.sh using Travis CI

First, add SURGE_USER and SURGE_TOKEN environment variables to the repo's settings page in Travis:

travis surge.sh settings

Then modify the repo's .travis.yml file to perform whatever build steps are required to generate the static website in the before_deploy step. Below, I'm installing Jekyll and building the site in the docs/ dir where my site's source files live.

language: node_js
@contolini
contolini / info.md
Last active April 23, 2019 18:56
Google Spreadsheet as CMS
@contolini
contolini / limits.md
Last active January 29, 2024 17:17
IRS Retirement Plan Contribution Limits

2024 Contribution limits

  • IRA limit is $7,000
  • HSA limit is $8,300 for family coverage ($4,150 for self-only coverage)
  • Maximum employee elective deferral is $23,000 ($30,500 if you're 50 by the end of the year)
  • Defined contribution maximum limit, all sources is $69,000

See this table for the complete list of changes.

2023 Contribution limits

Current layout

<li>
    <h5>SUBPART A</h5>
    <a>1005.1</a>
</li>
<li>
    <a>1005.2</a>
{"meta":{"date":"2009-01-01","fips_type":"county"},"data":{"34009":{"90":0.016867469879518072,"30":0.03493975903614458,"name":"Cape May County, NJ"},"48113":{"90":0.033750649050943285,"30":0.059366526279351524,"name":"Dallas County, TX"},"34003":{"90":0.01799023387304035,"30":0.029041377537907993,"name":"Bergen County, NJ"},"34001":{"90":0.03172825681224337,"30":0.06009705113848451,"name":"Atlantic County, NJ"},"34007":{"90":0.03505457598656591,"30":0.05037783375314862,"name":"Camden County, NJ"},"41017":{"90":0.024439918533604887,"30":0.028513238289205704,"name":"Deschutes County, OR"},"34005":{"90":0.024116424116424118,"30":0.04178794178794179,"name":"Burlington County, NJ"},"48027":{"90":0.021963824289405683,"30":0.050387596899224806,"name":"Bell County, TX"},"36001":{"90":0.01798120147118921,"30":0.03310175725378014,"name":"Albany County, NY"},"29099":{"90":0.023296703296703296,"30":0.046153846153846156,"name":"Jefferson County, MO"},"24043":{"90":0.028548123980424143,"30":0.049755301794453505,"name":"Was