How to name CSS classes
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
# Description: | |
# Sorts files created with a date and time in the file name, puts them in their respective folders | |
# This was created to sort images taken with a Samsung Galaxy phone | |
# Expected file naming convention is | |
# "year-month-day hour.minute.second.fileextension" | |
# "2017-7-5 18.23.45.jpg" | |
# | |
# | |
# requires Pillow: | |
# pip install Pillow |
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
/** Pre requisites | |
* MAC ONLY FOR RIGHT NOW! Not my fault. We have to wait for Headless Chrome to hit Windows users | |
1) Make an Alias to Chrome | |
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary" | |
2) Make Sure yarn is installed (it caches packages so you don't have to download them again) | |
`npm i yarn` | |
3) Use yarn to install dependencies: |
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
** AttrPromise | |
* @param {element} DOM element. required | |
* @param {attributeName} String. Optional. Attribute that is expected to change. | |
* @param {rejectTime} Int. Optional. Seconds (not ms) to wait before rejecting. 0 means there is no reject time. | |
* @returns {promise} | |
*/ | |
function attrPromise(element, attributeName,rejectTime = 0) { | |
return new Promise((resolve,reject) => { | |
let hasChanged = false; |
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
/** Pre requisites | |
1) Make an Alias to Chrome | |
alias chrome="/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome" | |
alias chrome-canary="/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary" | |
2) Make Sure yarn is installed (it caches packages so you don't have to download them again) | |
`npm i yarn` | |
3) Use yarn to install dependencies: | |
`yarn add lighthouse` |
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 convertColorName (name) { | |
var testEl = document.createElement('div'), | |
rgb; | |
testEl.style.backgroundColor = name; | |
rgb = document.body.appendChild(testEl); | |
rgb = window.getComputedStyle(testEl).backgroundColor; | |
document.body.removeChild(testEl); | |
return rgb; |
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
# Shamelessly stolen from https://www.quora.com/As-a-programmer-what-tasks-have-you-automated-to-make-your-everyday-life-easier/answer/Cory-Engdahl?srid=tVE5 | |
# | |
# Usage: | |
# python cleaner.py -f [full/path/to/folder] | |
# arguments | |
# -p, --path : fully qualified path to folder (required) | |
# -d, --days : Age in days of the file to delete (optional, default is 1 day) | |
# -e, --exclude: name of files to save (optional) | |
# -i, --include: name of files to delete regardless of timeframe (optional) |
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
console.clear(); | |
/*========== | |
#TABLEMAKER | |
==========*/ | |
/* | |
#TODOS | |
1. create add table Col <col> functionality | |
2. create ability to designate which <col> for which colgroup |
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 these = _itshelf = itshelf = _shelf = shelf = _itself = itself =_self = self = _me = me = _that = that = _this = this; |
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 sizing demonstration | |
*/ | |
html { | |
color: #333; | |
font-family: Helvetica, Arial; | |
line-height:1.618; | |
} |