⤵
- Install https://pngquant.org/
$ brew install pngquant
// group cards into overlap groups | |
self.onmessage = function (event) { | |
const offset = 10 | |
const { cards, viewport, zoom } = event.data | |
let newCards = cards.filter(card => isCardInViewport(card, viewport, zoom)) | |
newCards = newCards.map(card => { | |
return { | |
id: card.id, | |
name: card.name, |
// edit search and paste me into your browser console | |
search = 'my cool search'; | |
// this will only work for the spaces you have cached | |
// i.e. you've opened the space on this device recently | |
spaces = Object.keys(localStorage); | |
spaces = spaces.filter(space => space.startsWith('space-')); | |
spaces = spaces.map(space => JSON.parse(localStorage[space])); | |
matchingSpaces = spaces.filter(space => { | |
if (!space.name) { return }; |
function kinopioExtension() { | |
let dataAttr = 'data-kinopio-extension-by-dnrvs' | |
function processCard(container, node, text) { | |
// Clean out old nodes | |
container.querySelectorAll(`[${dataAttr}]`).forEach(n => n.remove()) | |
// Clone the real one |
⤵
$ brew install pngquant
javascript: (function() { | |
const selection = window.getSelection().toString(), | |
title = document.title, | |
link = `[${selection || title}](${location.href})`, | |
markdown = `${link}`; | |
void prompt(`${title}\n${location.href}`, markdown); | |
})(); |
#!/bin/bash | |
set -e | |
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc) | |
hex=$((cat <<EOF | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> |
{ | |
"emojis": [ | |
{"emoji": "👩👩👧👧", "name": "family: woman, woman, girl, girl", "shortname": ":woman_woman_girl_girl:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F467", "html": "👩‍👩‍👧‍👧", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👧👦", "name": "family: woman, woman, girl, boy", "shortname": ":woman_woman_girl_boy:", "unicode": "1F469 200D 1F469 200D 1F467 200D 1F466", "html": "👩‍👩‍👧‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👩👩👦👦", "name": "family: woman, woman, boy, boy", "shortname": ":woman_woman_boy_boy:", "unicode": "1F469 200D 1F469 200D 1F466 200D 1F466", "html": "👩‍👩‍👦‍👦", "category": "People & Body (family)", "order": ""}, | |
{"emoji": "👨👩👧👧", "name": "family: man, woman, girl, girl", "shortname": ":man_woman_girl_girl:", "unicode": "1F468 200D 1F469 200D 1F467 200D 1F467", "html": "👨‍👩&z |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important
or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
These rules are adopted from the AngularJS commit conventions.
#!/usr/bin/ruby | |
# SIFTTTER 1.5: An IFTTT-to-Day One Logger by Craig Eley 2014 <http://craigeley.com> | |
# Based on tp-dailylog.rb by Brett Terpstra 2012 <http://brettterpstra.com> | |
# Multiple Date Function by Paul Hayes 2014 <http://paulrhayes.com> | |
# | |
# Notes: | |
# * Uses `mdfind` to locate a specific folder of IFTTT-generated text files changed in the last day | |
# * The location of your folder should be hardcoded in line 67, and the location of your Day One in line 66 | |
# * Scans leading timestamps in each line matching the selected dates | |
# * Does not alter text files in any way |