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
View convertColorName.js
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;
@paceaux
paceaux / jira-dark.css
Last active May 22, 2019
Dark mode for Jira
View jira-dark.css
body {
--bgColor: #111;
--textColor:rgb(201, 208, 221) ;
--infoColor: rgba(201, 208, 221, .7) ;
--titleColor: rgb(133,153,187);
--linkColor: rgb(57,114,198);
--buttonBGColor: #444547;
--buttonColor: rgb(201,228,221);
--buttonBGColorHover: #72829e;
--itemBGColor: #272524;
@paceaux
paceaux / graphicEQUrl.js
Last active Apr 23, 2019
Graphic EQ in a url
View graphicEQUrl.js
/* Courtesy of Jake Albaugh: https://twitter.com/jake_albaugh/status/1118611365508337665 */
const bars = ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█"];
const ctx = new AudioContext();
const analyser = ctx.createAnalyser();
analyser.fftSize = 32;
const uIntArray = new Uint8Array(16);
navigator.mediaDevices.getUserMedia({ audio: true }).then(stream => {
ctx.createMediaStreamSource(stream).connect(analyser);
updateUrl();
@paceaux
paceaux / collatz.js
Last active Mar 29, 2019
Math Buddies
View collatz.js
function collatz(n, steps = []) {
if (isNaN(n)) return NaN;
if (steps.length === 0) steps.push(n);
const isEven = n%2 === 0;
const newInt = isEven ? n / 2 : (3 * n) + 1;
steps.push(newInt);
return newInt !== 1 ? collatz(newInt, steps) : steps;
@paceaux
paceaux / rtfToJson.py
Last active Feb 8, 2019
RTF to JSON parser
View rtfToJson.py
import os, shutil, sys, getopt, fnmatch, json
from os.path import join
from HTMLParser import HTMLParser
from pyth.plugins.rtf15.reader import Rtf15Reader
from pyth.plugins.xhtml.writer import XHTMLWriter
from bs4 import BeautifulSoup
# constants
DEFAULT_DICTIONARY = {
'chronoNumber': '',
View vanilla-js-module
var moduleName;
moduleName = {
init: function () {
var _this = moduleName;
_this.bindUiEvents();
},
data: {
els: {
}
},
@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 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 / 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
*/
/*
You can’t perform that action at this time.