Discover gists
package main | |
import ( | |
"net/http" | |
"time" | |
"golang.org/x/time/rate" | |
) | |
// ThrottledTransport Rate Limited HTTP Client |
So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.
-
Database in a browser, a spec (Stepan Parunashvili)
What problem are we trying to solve with a sync system?
-
The web of tomorrow (Nikita Prokopov)
The latest beta (3.5) includes separate color settings for light & dark mode. Toggling dark mode automatically switches colors.
Vist iTerm2 homepage or use brew install iterm2-beta
to download the beta. Thanks @stefanwascoding.
- Add
switch_automatic.py
to~/Library/ApplicationSupport/iTerm2/Scripts/AutoLaunch
with:
<label for="country">Country</label><span style="color: red !important; display: inline; float: none;">*</span> | |
<select id="country" name="country" class="form-control"> | |
<option value="Afghanistan">Afghanistan</option> | |
<option value="Åland Islands">Åland Islands</option> | |
<option value="Albania">Albania</option> | |
<option value="Algeria">Algeria</option> | |
<option value="American Samoa">American Samoa</option> | |
<option value="Andorra">Andorra</option> | |
<option value="Angola">Angola</option> |
# CLI | |
sudo apt update -y | |
sudo apt install -y \ | |
git curl \ | |
docker.io docker-buildx \ | |
build-essential pkg-config autoconf bison rustc cargo clang \ | |
libssl-dev libreadline-dev zlib1g-dev libyaml-dev libreadline-dev libncurses5-dev libffi-dev libgdbm-dev libjemalloc2 \ | |
libvips imagemagick libmagickwand-dev mupdf mupdf-tools \ | |
redis-tools sqlite3 libsqlite3-0 libmysqlclient-dev \ | |
rbenv apache2-utils |
Yomichan is a browser extension created for Japanese which enables its users to quickly and efficiently look up words on a webpage.
While it is made for Japanese, it is possible to use it for other languages, including Chinese.
Yomichan is available for both Chromium and Firefox based browsers. You can find the respective versions below.
/* CHAT STYLES */ | |
* { | |
font-family: Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, | |
Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, | |
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; | |
letter-spacing: 0.5px; | |
} | |
.ce-chat-list { | |
background-color: rgb(240, 240, 240) !important; |
/* CHAT STYLES */ | |
* { | |
font-family: Avenir, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, | |
Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, | |
Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji; | |
letter-spacing: 0.5px; | |
} | |
.ce-chat-list { | |
background-color: rgb(240, 240, 240) !important; |
//reference: \wp-content\plugins\facetwp\assets\js\front.js - Generate the user selections | |
wp.hooks.addAction('facetwp/loaded', function () { | |
// add custom code here | |
var selections = ''; | |
jQuery.each(FWP.facets, function (key, val) { | |
if (val.length < 1 || 'undefined' === typeof FWP.settings.labels[key]) { | |
return true; // skip this facet | |
} | |
var choices = val; |