- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set noerrorbells | |
set tabstop=2 softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set smartindent | |
set nu | |
set smartcase | |
set noswapfile | |
set nobackup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() { | |
'use strict'; | |
document.getElementById('chrome-container').style.backgroundImage = 'url("https://trello-attachments.s3.amazonaws.com/5a29c0535096ed2d16b4eefa/5a2ddf7609e56c3b8b1c1db5/e7c2d414c7cca3b48f13ad82d159016a/wallpaper.png")'; | |
})(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", | |
"Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", | |
"Droid Sans", "Helvetica Neue", sans-serif; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
NewerOlder