Skip to content

Instantly share code, notes, and snippets.

font_size 14.0
font_family Fira Code
cursor_shape block
visual_bell_duration 0.0
open_url_with default
window_border_width 0
# Dracula
@tomspeak
tomspeak / gist:fa6e7b5a6aebbb5a7b7a208670f6451b
Created May 5, 2020 10:39
Karabiner Elements - Press Caps Lock for Escape, Hold for CTRL
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"rules": [
@tomspeak
tomspeak / books.md
Last active February 21, 2019 16:20
Books to Give Away

Books To Giveaway

  1. Open - Andrew Agassi
  2. Deep Work - Cal Newport
  3. Goodbye, Things - Fumio Sasaki
  4. Animal Farm - George Orwell
  5. 1984 - George Orwell
  6. Foundation - Isaac Asimov
  7. Hell’s Angels - Hunter S. Thompson
  8. A Confederacy of Dunces - John Kennedy Toole
@tomspeak
tomspeak / books.md
Last active August 25, 2018 12:31
Books I Want To Give Away

If you DM me on Twitter or Email Me your address, I'll send one book per person free of charge.

  1. Buzz Bissinger - Friday Night Lights
  2. C. S. Lewis - Mere Christianity
  3. C. S. Lewis - The Screwtape Letters
  4. Cormac McCarthy - No Country for Old Men
  5. David Foster Wallace - A Supposedly Fun Thing I'll Never Do Again
  6. Franz Kafka - The Trial
  7. Friedrich Nietzsche - Beyond Good & Evil
  8. Fumio Sasaki - Goodbye, Things
@tomspeak
tomspeak / parseTransform.js
Created February 1, 2018 12:26
Parse a transform string, create an object of the values and assign it to the class instance if whitelisted.
/**
* Parses a transform string, pulls out whitelisted properties then
* assigns the property and value to the class instance.
*
* @param {String} transform - transform string to parse
*/
parseTransform(transform) {
if (!transform) return;
const whitelist = ['scale', 'translate', 'rotate'];