== Resources ==
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GM_addStyle(css) { | |
const style = | |
document.getElementById("GM_addStyleBy8626") || | |
(function () { | |
const style = document.createElement("style"); | |
style.type = "text/css"; | |
style.id = "GM_addStyleBy8626"; | |
document.head.appendChild(style); | |
return style; | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import abc | |
import os.path | |
import git | |
import numpy as np | |
import torch | |
from torch.utils.data import Dataset | |
from mpd.datasets.normalization import DatasetNormalizer | |
from mpd.utils.loading import load_params_from_yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
requote_args() { | |
# Given a list of args, add quotes if necessary | |
C='' | |
for i in "$@"; do | |
case "$i" in | |
*[[:space:]]*|*'*'*) # contain space or literal astrisk | |
case "$i" in | |
*\'*) # escape single quote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import glob | |
import dataclasses | |
import subprocess | |
import os | |
import tqdm | |
from abc import ABC | |
from datetime import datetime |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
from pathlib import Path | |
import argparse | |
from PIL import Image | |
import numpy as np | |
from scipy.ndimage.measurements import label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
_scs_col="\e[0;32m" | |
_wrn_col='\e[1;31m' | |
_trn_col='\e[0;33m' | |
_res_col='\e[0m' | |
# set -x | |
stderr_color() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<!-- =================================================================================== --> | |
<!-- | This document was autogenerated by xacro from j2n6s300_standalone.xacro | --> | |
<!-- | EDITING THIS FILE BY HAND IS NOT RECOMMENDED | --> | |
<!-- =================================================================================== --> | |
<!-- j2n6s300 refers to jaco v2 6DOF non-spherical 3fingers --> | |
<robot name="j2n6s300" xmlns:body="http://playerstage.sourceforge.net/gazebo/xmlschema/#body" xmlns:controller="http://playerstage.sourceforge.net/gazebo/xmlschema/#controller" xmlns:gazebo="http://playerstage.sourceforge.net/gazebo/xmlschema/#gz" xmlns:geom="http://playerstage.sourceforge.net/gazebo/xmlschema/#geom" xmlns:interface="http://playerstage.sourceforge.net/gazebo/xmlschema/#interface" xmlns:joint="http://playerstage.sourceforge.net/gazebo/xmlschema/#joint" xmlns:model="http://playerstage.sourceforge.net/gazebo/xmlschema/#model" xmlns:physics="http: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is slower, to echo everything one by one. | |
# | |
# function __fish_tldr_complete_available_pages | |
# for f in ~/.local/share/tldr/pages/**/*.md | |
# echo (string replace -r '.*/([^/]*)\.md' '$1' $f) | |
# end | |
# end | |
#complete -x -c tldr -a '(__fish_tldr_complete_available_pages)' | |
# it is faster to find everything and use a single sed command to replace it to the correct format. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// git.io url: https://tinyurl.com/SurfingKeys-settings or https://git.io/JfXjB | |
// inspired by https://github.com/Foldex/surfingkeys-config/blob/master/config.js | |
// remove conflict with browser's history, download pannel toggle | |
// unmap('<Ctrl-j>'); | |
// iunmap('<Ctrl-j>'); | |
// vunmap('<Ctrl-j>'); | |
// unmap('<Ctrl-h>'); | |
// iunmap('<Ctrl-h>'); | |
// vunmap('<Ctrl-h>'); |
NewerOlder