Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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":
- 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 / total-videos-length-in-directory.ps1
Created September 28, 2016 09:00
Powershell script to get the total length of all videos in Directory
# Needs the path where your dll is
Add-Type -Path "C:\taglib-sharp.dll"
Function Get-VideoDetails {
param ($targetDirectory)
Get-ChildItem $targetDirectory -Include *.mp4 -Recurse -Force | ForEach {
$video = [TagLib.File]::Create($_.FullName)
New-Object PSObject -Property @{