Skip to content

Instantly share code, notes, and snippets.

# set window to start at 1
set -g base-index 1
setw -g pane-base-index 1
# set mouse on
set -g mouse on
# renumber windows when a window is closed
set-option -g renumber-windows on
syntax on
set noerrorbells
set tabstop=2 softtabstop=2
set shiftwidth=2
set expandtab
set smartindent
set nu
set smartcase
set noswapfile
set nobackup
@jaseflow
jaseflow / .js
Created June 4, 2021 10:51
CORS Drama
const express = require('express')
const cors = require('cors')
const mysql = require('mysql2')
const bodyParser = require('body-parser')
const SpotifyWebApi = require('spotify-web-api-node')
const request = require('request')
const app = express()
@jaseflow
jaseflow / trello.js
Created July 11, 2020 04:46
trello bg
(function() {
'use strict';
document.getElementById('chrome-container').style.backgroundImage = 'url("https://trello-attachments.s3.amazonaws.com/5a29c0535096ed2d16b4eefa/5a2ddf7609e56c3b8b1c1db5/e7c2d414c7cca3b48f13ad82d159016a/wallpaper.png")';
})();
" Combination of these setting plus others
" http://amix.dk/vim/vimrc.html
" https://github.com/jaysw/dotfiles/blob/master/vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => https://github.com/junegunn/vim-plug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans",
"Droid Sans", "Helvetica Neue", sans-serif;
# 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=$HOME/.oh-my-zsh
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="clean"
@jaseflow
jaseflow / vimrc.txt
Last active August 29, 2018 03:38
vimrc
" Combination of these setting plus others
" http://amix.dk/vim/vimrc.html
" https://github.com/jaysw/dotfiles/blob/master/vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => https://github.com/junegunn/vim-plug
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
filetype off " required
call plug#begin('~/.vim/plugged')
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
  • CSS is written mobile first
  • standardise modifier classes ie. --visible --show --hide
  • single depth selectors EXCEPT for when children elements will change through a parent modifier .ie .element:hover .element__child
  • comment strange code ie. padding-top: calc(100% - 2.45rem) // what is this
  • media queries should not be nested
  • media queries should use min-width to make changes as screen sizes increase
  • media queries should be in order of screen size
  • animations that are not shared should be declared immediately above the element using the animation
if (supportsTemplate()) {
forEach(Object.keys(data), function(i) {
var review = data[i];
var t = document.querySelector('#innova-review');
var date = new Date(review.created_at);
var styledDate = date.getDate() + ' ' + monthNames[date.getMonth()] + ' ' + date.getFullYear();
t.content.querySelector('.innova-review__date').textContent = styledDate;
t.content.querySelector('.innova-review__business').textContent = innovaBusiness;
t.content.querySelector('.innova-review__name').textContent = review.name;
t.content.querySelector('.innova-review__score').textContent = review.rating;