Skip to content

Instantly share code, notes, and snippets.

@christianvuerings
christianvuerings / kindle-quotes.json
Created September 7, 2020 23:58
Kindle Quotes: 2020-09-07T23:58:13.546Z
[
{
"quote": "Your compensation is directly proportional to how many lives you touch.”",
"bookTitle": "The Go-Giver: A Little Story About a Powerful Business Idea (Bob Burg)\r"
},
{
"quote": "You have to focus on your core business. You have to love it.",
"bookTitle": "How Google Works (Eric Schmidt;Alan Eagle)\r"
},
{
@christianvuerings
christianvuerings / kindle-quotes.json
Created September 7, 2020 23:51
Kindle Quotes: 2020-09-07T23:51:34.328Z
[
{
"quote": "Aiming for perfection causes frustration at best and paralysis at worst.",
"bookTitle": "Lean In (Sheryl Sandberg)\r"
},
{
"quote": "In life, never spend more than 10 percent of your time on the problem, and spend at least 90 percent of your time on the solution. Most important, don’t sweat the small stuff … and remember, it’s all small stuff!",
"bookTitle": "Awaken the Giant Within (Robbins, Anthony)\r"
},
{
@christianvuerings
christianvuerings / kindle-quotes.json
Created August 31, 2020 01:35
Kindle Quotes: 2020-08-31T01:35:16.062Z
[
{
"quote": "You can’t connect the dots looking forward; you can only connect them looking backwards. So you have to trust that the dots will somehow connect in your future.",
"bookTitle": "Thrive (Arianna Huffington)\r"
},
{
"quote": "A wound to the reputation not only does not heal, but grows deeper every day which goes by.",
"bookTitle": "Conspiracy (Ryan Holiday)\r"
},
{
@christianvuerings
christianvuerings / kindle-quotes.json
Created August 30, 2020 00:41
Kindle Quotes: 2020-08-30T00:41:55.575Z
[
{
"quote": "We treat the future as intrinsically more valuable than the present.",
"bookTitle": "The Antidote: Happiness for People Who Can't Stand Positive Thinking (Oliver Burkeman)\r"
},
{
"quote": "The only things we can truly control, the Stoics argue, are our judgments",
"bookTitle": "The Antidote: Happiness for People Who Can't Stand Positive Thinking (Oliver Burkeman)\r"
}
]
@christianvuerings
christianvuerings / kindle-quotes.json
Created July 18, 2020 20:48
Kindle Quotes: 2020-07-18T20:48:44.702Z
[
{
"quote": "People often attempt to address complex problems with complex solutions.",
"bookTitle": "Simple Rules (Donald Sull)\r"
},
{
"quote": "The leaders provide cover from above and the people on the ground look out for each other.",
"bookTitle": "Leaders Eat Last_ Why Some Teams Pull Toge - Sinek, Simon (Christian Vuerings)\r"
},
{
@christianvuerings
christianvuerings / test-random-array-item.js
Created February 10, 2019 15:56
Test whether we should use `Math.floor` or `Math.round` to get a random item in an array
(() => {
const set = new Set();
new Array(10000).fill('fill').map(el => {
set.add(Math.floor(Math.random() * temp1.length))
})
console.log([...set].sort())
}) ()
// ==UserScript==
// @name Udemy // Add Playback rates
// @namespace christianvuerings
// @version 0.2
// @description
// @author Christian Vuerings (christianvuerings)
// @include https://*.udemy.com/*
// @grant none
// ==/UserScript==
@christianvuerings
christianvuerings / gestalt-usage-visualizer.js
Last active May 10, 2018 16:51
Gestalt Usage Visualizer
// javascript:(function(){if(!document.getElementById('gestalt-usuage-visualizer')) {var script = document.createElement('script');script.id = 'gestalt-usuage-visualizer';script.src = 'Scripts/Script1.js';document.head.appendChild(script);}})();
const style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = `
*[class]:not([class^="_"]) { border: solid 1px #ff0000; }
`;
document.getElementsByTagName('head')[0].appendChild(style);
@christianvuerings
christianvuerings / gestalt-release-notes.js
Last active August 3, 2017 14:35
Gestalt release notes generation
// Gestalt release notes generation
// 1. Go to https://github.com/pinterest/gestalt/commits/master
// 2. Run the script below
[...document.querySelectorAll('.commit-title')]
.map(commitTitle => `* ${commitTitle.innerText.replace(' …', '')}`)
.join("\n");
@christianvuerings
christianvuerings / eslint-plugin-jsx-a11y_to-json.js
Last active September 14, 2016 17:07
Convert all the rules on the eslint-plugin-jsx-a11y github page to a JSON page we can use in our repo
// 1. Go to https://github.com/evcohen/eslint-plugin-jsx-a11y/tree/master/docs/rules
// 2. Run the following script:
(() => {
let output = {};
[...document.querySelectorAll('.files .js-navigation-item .content a[title]')]
.forEach(file => output[`jsx-a11y/${file.getAttribute('title').replace('.md', '')}`] = 2)
console.log(JSON.stringify(output, null, 4));
})()