Skip to content

Instantly share code, notes, and snippets.

View erin-dot-io's full-sized avatar

Erin Keeffe erin-dot-io

View GitHub Profile
@erin-dot-io
erin-dot-io / airtable-zapier-finance-automation.js
Created September 17, 2020 04:10
Airtable script to automate cleaning and categorizing of incoming transactions
let config = input.config();
let importId = config.id;
let transactions = base.getTable('Transactions');
let transactionsFiltered = await transactions.getView('Auto Import').selectRecordsAsync();
let thisTransaction = transactionsFiltered.getRecord(importId);
// Match Merchant
let importMerchantRaw = config.merchant_raw.toLowerCase();
@erin-dot-io
erin-dot-io / mix-blend-modes.css
Created April 13, 2020 06:34
Mix Blend Modes CSS Classes
.mbm-normal{mix-blend-mode: normal;}
.mbm-multiply{mix-blend-mode: multiply;}
.mbm-screen{mix-blend-mode: screen;}
.mbm-overlay{mix-blend-mode: overlay;}
.mbm-darken{mix-blend-mode: darken;}
.mbm-lighten{mix-blend-mode: lighten;}
.mbm-color-dodge{mix-blend-mode: color-dodge}
.mbm-color-burn{mix-blend-mode: color-burn;}
.mbm-hard-light{mix-blend-mode: hard-light;}
.mbm-soft-light{mix-blend-mode: soft-light;}
@erin-dot-io
erin-dot-io / styles.scss
Created March 11, 2018 01:35
CSS/SCSS Partial Structuring (ITCSS)
// USE ITCSS FOR PARTIAL STRUCTURING
// SETTINGS
// Global variables, site-wide settings, config switches, etc.
// TOOLS
// Site-wide mixins and functions.
// GENERIC
// Low-specificity, far-reaching rulesets (e.g. resets).
@erin-dot-io
erin-dot-io / grid-expander.js
Created November 11, 2016 00:25
Click on a grid item to show an expanded row of info below the clicked item's row.
(function(){
"use strict";
function PromiseNew() {
$('.info-cards__info-card').on('touchstart click', checkInfoExpander);
$('.info-cards').on('touchstart click', '.info-expander__close', closeInfoExpanders);
}
@erin-dot-io
erin-dot-io / _accordion.scss
Created April 12, 2016 19:39
Accordion List
.list-item {
&:first-child {border-top: $base-border;}
border-bottom: $base-border;
.button {width: 15rem;}
}
.list-item-top {padding: 1.4rem 0;}
.accordion-trigger {
position: relative;
@erin-dot-io
erin-dot-io / .bash_profile
Created August 6, 2015 23:12
Bash Profile Mac OSX (2015)
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
PS1='\T \[\e[01;37m\]\u@\h \W $\[\e[0m\] '
alias ll='ls -l'
export PGHOST=localhost
export RBENV_ROOT=/usr/local/var/rbenv
export PATH="/usr/local/bin:$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
# if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
@erin-dot-io
erin-dot-io / share-urls.md
Last active April 20, 2016 23:30
Custom share service URLs

Twitter

http://twitter.com/intent/tweet?text=[TITLE]&url=[URL]&hashtags=[TAG,TAG]&via=[USERNAME]&related=[twitter%3ATwitter%20News,twitterapi%3ATwitter%20API%20News] [more options]

Pinterest

http://pinterest.com/pin/create/button/?url={URI-encoded URL of the page to pin}&media={URI-encoded URL of the image to pin}&description={optional URI-encoded description}

Pinterest (custom image):

@erin-dot-io
erin-dot-io / viewport.html
Created April 23, 2015 21:04
Boilerplate Viewport Settings
<!--For fully responsive sites with user zooming disabled-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
@erin-dot-io
erin-dot-io / icomoon-base.scss
Created April 21, 2015 16:03
Custom IcoMoon base styles
/* Move base font icon styles onto :before in order to
avoid affecting text styles on the parent element */
[class^="icon-"], [class*=" icon-"] {
&:before {
font-family: 'su-icons';
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
@erin-dot-io
erin-dot-io / new-computer.bash
Last active May 18, 2022 20:59
Essential bash commands to fix key repeat style and speed.
# Increase key repeat speed
$ defaults write NSGlobalDomain KeyRepeat -int 1.8
# Disable character accent menu when holding down certain keys
$ defaults write -g ApplePressAndHoldEnabled -bool false