This file contains 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 verbAspects = ['simple', 'continuous', 'perfect', 'perfectContinuous']; | |
const verbTenses = ['past', 'present', 'future']; | |
const verbMoods = ['indicative', 'imperative', 'subjunctive']; | |
const moods = { | |
indicative: { | |
present: { |
This file contains 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
/* | |
* Conjunctions | |
* https://www.english-grammar-revolution.com/list-of-conjunctions.html | |
*/ | |
module.exports = [ | |
{ | |
conjunction: ['and'], | |
type: 'coordinating', | |
}, |
This file contains 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
/* | |
* List of Descriptive Adjectives | |
* https://www.ef.edu/english-resources/english-vocabulary/top-50-adjectives/ | |
*/ | |
module.exports = [ | |
'able', | |
'bad', | |
'best', | |
'better', |
This file contains 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
/* | |
* English preposition list | |
* https://www.talkenglish.com/vocabulary/top-50-prepositions.aspx | |
*/ | |
module.exports = [ | |
'of', | |
'with', | |
'at', | |
'from', |
This file contains 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
/* | |
* English pronoun list | |
* https://www.ef.edu/english-resources/english-grammar/pronouns/ | |
* person: 1,2,3 (first, second, third person) | |
* gender: f == female, m == male, n == neutral | |
* number: s == singular, p == plural | |
* referent: i == inanimate, a == animate | |
*/ | |
/* |
This file contains 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(){ | |
function getTCM(locationURL) { | |
return locationURL.replace('#id=',''); | |
} | |
function getItem(tcm) { | |
return $models.getItem(tcm); | |
} |
This file contains 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 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 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 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` |