Skip to content

Instantly share code, notes, and snippets.

@etjossem
etjossem / dark_slack.css
Created June 6, 2019 18:36
Dark theme for Slack
@-moz-document regexp("https://[^./]*\\.slack\\.com/(?!pricing)(?!security).*") { body { background: #282a2e; color: #e0e0e0; }
a { color: #ffffff; }
a:link, a:visited { color: #ffffff; }
a:hover, a:active, a:focus { color: #cc6666; }
hr { border-bottom: 1px solid #373b41; border-top: 1px solid #282a2e; }
h1, h2, h3, h4 { color: #e0e0e0; }
h1 a { color: #e0e0e0; }
h1 a:active, h1 a:hover, h1 a:link, h1 a:visited { color: #e0e0e0; }
.bordered { border: 1px solid #282a2e; }
.top_border { border-top: 1px solid #282a2e; }
@etjossem
etjossem / pronouns.js
Last active September 6, 2021 19:06
You can add pronoun support to your app, reusable across users and outputs through a simple template literal. Here's one way to do it:
P = function(person, theyConjugation) {
let conjugation = theyConjugation;
const allPronouns = {
"they/them": {
"subject": "they",
"object": "them",
"possessive-determiner": "their",
"possessive-pronoun": "theirs",
"reflexive": "themselves",

Keybase proof

I hereby claim:

  • I am etjossem on github.
  • I am etjossem (https://keybase.io/etjossem) on keybase.
  • I have a public key ASAO2kadAlR8BGrXDaHGvSEekgIcQNihNJ1Xkpzl3XSaSAo

To claim this, I am signing this object:

@etjossem
etjossem / Bishy.js
Created July 3, 2017 20:24
Bishy.js -- make your terminal output sparkle!
// Like chalk but more lightweight and I'm not going to break it by releasing 2.0.0.
var Bishy = function(color, msg) {
var colors = {
green: "\033[0;32m",
red: "\033[0;31m",
cyan: "\033[0;36m",
magenta: "\033[0;35m",
white: "\033[0;37m",
}
@etjossem
etjossem / OxfordComma.js
Last active July 3, 2017 20:26
OxfordComma.js -- don't leave home without it.
// Defaults to giving a fuck about an Oxford Comma
var OxfordComma = function(array, gaf) {
var gaf = (typeof gaf === 'undefined') ? true : gaf;
var output = "";
if (array.length <= 1) {
output = array.toString();
} else if (array.length == 2) {
output = array.join(" and ");
} else {
@etjossem
etjossem / _basic_dropdowns.scss
Created May 3, 2016 18:46
Basic (Pure CSS) Dropdowns, Material Design Style
.basic-dropdown {
border-bottom: 1px solid rgba(41, 70, 97, 0.2);
position: relative;
max-width: 230px;
padding-top: 8px;
background-color: transparent;
transition: .5s border-color;
label {
font-size: 12px;
top: -14px;
@etjossem
etjossem / prereqs.md
Created March 30, 2016 18:49
Dev Environment Prereqs
  • Installs Xcode Command Line Tools (including git, which GitHub uses)
  • Installs Homebrew (a dependency manager)
  • Installs RVM (ruby version manager)
  • Updates homebrew
  • Installs node

After running these commands, you'll be able to successfully run the steps in https://github.com/sendgrid/mako

// Gets an album's info from Spotify.
var album_id = 1;
$.ajax({
url: "https://api.spotify.com/v1/albums/" + album_id,
type: "GET",
success: function(d) {
console.log(d);
}
});
countriesList = [
{
"country": "United States of America (+1)",
"code": "1"
}, {
"country": "Canada (+1)",
"code": "1"
}, {
"country": "Russia (+7)",
"code": "7"