Skip to content

Instantly share code, notes, and snippets.

💭
ArangoDB is kinda cool

Paceaux paceaux

💭
ArangoDB is kinda cool
Block or report user

Report or block paceaux

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@paceaux
paceaux / conjugation.go.js
Last active Nov 16, 2018
Verb Conjugations
View conjugation.go.js
const verbAspects = ['simple', 'continuous', 'perfect', 'perfectContinuous'];
const verbTenses = ['past', 'present', 'future'];
const verbMoods = ['indicative', 'imperative', 'subjunctive'];
const moods = {
indicative: {
present: {
View conjunctions.english.js
/*
* Conjunctions
* https://www.english-grammar-revolution.com/list-of-conjunctions.html
*/
module.exports = [
{
conjunction: ['and'],
type: 'coordinating',
},
View adjectives.descriptive.english.js
/*
* List of Descriptive Adjectives
* https://www.ef.edu/english-resources/english-vocabulary/top-50-adjectives/
*/
module.exports = [
'able',
'bad',
'best',
'better',
@paceaux
paceaux / prepositions.english.js
Created Sep 17, 2018
English Prepositions for JavaScript
View prepositions.english.js
/*
* English preposition list
* https://www.talkenglish.com/vocabulary/top-50-prepositions.aspx
*/
module.exports = [
'of',
'with',
'at',
'from',
@paceaux
paceaux / pronouns.english.js
Last active Oct 5, 2018
English Pronouns module
View pronouns.english.js
/*
* 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
*/
/*
@paceaux
paceaux / gotopage.js
Last active Dec 5, 2017
Tridion GoToPage Bookmarklet
View gotopage.js
(function(){
function getTCM(locationURL) {
return locationURL.replace('#id=','');
}
function getItem(tcm) {
return $models.getItem(tcm);
}
@paceaux
paceaux / sorter.py
Last active Feb 19, 2020
Camera Phone Image Sorter
View sorter.py
# 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
@paceaux
paceaux / headless-screenshots_v2.js
Last active Oct 25, 2017
Improved command line options for headless screenshots in Chrome
View headless-screenshots_v2.js
/** 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:
@paceaux
paceaux / attribute-promise.js
Created Jun 16, 2017
A promise that can be set on an element, to resolve when that element's attributes have changed
View attribute-promise.js
** 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;
@paceaux
paceaux / headless-screenshots.js
Last active Nov 2, 2017
Screenshot grabber that uses headless chrome (only works on mac)
View headless-screenshots.js
/** 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`
You can’t perform that action at this time.