Skip to content

Instantly share code, notes, and snippets.

- The QUIC protocol (Quick UDP Internet Connections) is an entirely new protocol for the web
developed on top of UDP instead of TCP.
- the web is built on top of TCP for its reliability as a transmission protocol
- To start a TCP connection a 3-way handshake is performed
- This means additional round-trips (network packets being sent back and forth)
for each starting connection which adds significant delays to any new connection.
- If on top of that you also need to negotiate TLS, to create a secure, encrypted,
https connection, even more network packets have to be sent back and forth.
@wis
wis / English words compressor. remove vowels.js
Created June 24, 2017 12:11
English words compressor. remove vowels
var compressWord = function(word) {
console.log(word);
if(word.length <= 2) {
console.log(word + " =< 2");
switch(word.toLowerCase()) {
case "you":
return "U";
case "at":
return "@";
case "be":
@wis
wis / keybase.md
Created October 2, 2017 09:19
Keybase proof

Keybase proof

I hereby claim:

  • I am wesamco on github.
  • I am wesam (https://keybase.io/wesam) on keybase.
  • I have a public key ASCsn-XX-52E2ucBJl9drpNuKQwSJQCKhJCftek2jLXthAo

To claim this, I am signing this object:

@wis
wis / ava_action_list_v1.0.json
Created October 20, 2017 20:55
ava_action_list_v1.0.pbtxt converted to JSON
[
{
"name": "bend/bow (at the waist)",
"_id": "1",
"_type": "PERSON_MOVEMENT"
},
{ "name": "crawl", "_id": "2", "_type": "PERSON_MOVEMENT" },
{ "name": "crouch/kneel", "_id": "3", "_type": "PERSON_MOVEMENT" },
{ "name": "dance", "_id": "4", "_type": "PERSON_MOVEMENT" },
{ "name": "fall down", "_id": "5", "_type": "PERSON_MOVEMENT" },
@wis
wis / .xmodmap
Created December 22, 2017 10:45
colemak dh wide (+~2 of my own mods)
! xmodmap for the Colemak Mod-DH layout (US, ISO keyboard, Wide layout).
! http//colemakmods.github.io/mod-dh/
! Public domain.
keycode 49 = grave asciitilde dead_tilde asciitilde
keycode 10 = 1 exclam exclamdown onesuperior
keycode 11 = 2 at masculine twosuperior
keycode 12 = 3 numbersign ordfeminine threesuperior
keycode 13 = 4 dollar cent sterling
keycode 14 = 5 percent EuroSign yen
@wis
wis / keybase.md
Created May 10, 2018 15:56
boop beep, I told you so

Keybase proof

I hereby claim:

  • I am wis on github.
  • I am wis (https://keybase.io/wis) on keybase.
  • I have a public key ASA0383y_wStnkijtAhLfI84Bdi_n9pXBZ4-Y3KP0AeJkAo

To claim this, I am signing this object:

@wis
wis / .Xmodmap
Created November 27, 2018 16:21
current keyboard layout
! xmodmap for the Colemak Mod-DH layout (US, ISO keyboard, Wide layout).
! http://colemakmods.github.io/mod-dh/
! Public domain.
keycode 49 = grave asciitilde dead_tilde asciitilde
keycode 10 = bracketleft braceleft guillemotleft U2039
keycode 11 = bracketright braceright guillemotright U203a
keycode 12 = 1 exclam exclamdown onesuperior
keycode 13 = 2 at masculine twosuperior
keycode 14 = 3 numbersign ordfeminine threesuperior
@wis
wis / github-show-stats-on-graph.css
Created January 24, 2019 17:40
github show repository language stats percentages on graph user style sheet: show repository language stats percentages on graph without having to click the graph to toggle showing.
.repository-lang-stats-graph .language-color {
line-height: inherit;
overflow: hidden;
text-indent: -9999px;
word-break: break-all;
}
.repository-lang-stats-graph .language-color:before {
content: attr(aria-label);
text-indent: 0;
float: left;
@wis
wis / scrape-emoji-stats.js
Created March 5, 2019 03:08
scrape emojistats.org
var data = [...document.querySelectorAll('#emojilist-wrapper > ul > li')].
map(e => [...e.attributes].find(a => a.name.startsWith('data-count'))).
map(a => ({"hex": a.name.replace('data-count',""),
"dayssincereleased": a.ownerElement.attributes['data-dayssincereleased'].nodeValue,
"currentcount": a.ownerElement.attributes['data-currentcount'].nodeValue,
"dailycount": a.ownerElement.attributes['data-dailycount'].nodeValue
}));
@wis
wis / rofi -help.txt
Last active March 21, 2019 12:11
rofi -help
rofi usage:
rofi [-options ...]
Command line only options:
-no-config Do not load configuration, use default values.
-v,-version Print the version number and exit.
-dmenu Start in dmenu mode.
-display [string] X server to contact.
${DISPLAY}
-h,-help This help message.