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
#%% | |
from dataclasses import InitVar, dataclass, field | |
import json | |
from pathlib import Path | |
from typing import Any, Dict | |
import jmespath as jm | |
#%% | |
old = Path("old.owlbear") |
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
VS Code extensions |
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
''' | |
There are 2 types of functions normal `def func()` and `async def func()`: | |
- An asyc function can call async functions as well as normal ones | |
- A normal function can only call normal functions | |
''' | |
#%% | |
import asyncio | |
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
// ==UserScript== | |
// @name Open week view in zoho | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://people.zoho.com/*/zp | |
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js | |
// @grant unsafeWindow | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name redict-microsoft | |
// @namespace http://tampermonkey.net/ | |
// @version 1.1 | |
// @description Redirect to english Microsoft docs | |
// @author Pablo Cabeza Garcia | |
// @match https://*.microsoft.com/* | |
// @grant none | |
// ==/UserScript== |
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 functools | |
import click | |
class Command: | |
def __init__(self, f, args, kwargs): | |
self.f = f | |
self.args = args | |
self.kwargs = kwargs | |
self.cmd = click.command(*args, **kwargs)(f) |
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
" | |
" 0. configure proxy: | |
" git config --global http.proxy http://proxyuser:[email protected]:8080 | |
" 1. Download and install vim-plug | |
" | |
" 2. Do a :PlugInstall | |
" | |
" 3. If command-t not working try `rake make` from its folder | |
" if not in path, install it with | |
" export HTTP_PROXY=<proxy>; gem install --local rake |
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 python | |
''' | |
Script that syncs beet favorites with banshee. | |
''' | |
import click | |
from beets import library | |
import os |
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 python | |
''' | |
Script that syncs a playlist (m3u) with current audacious playlist. | |
''' | |
import click | |
import os | |
import shlex | |
import subprocess as sp |
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
''' | |
canto-curses-notify v0.3 | Copyright (c) 2015, Pablo Cabeza | |
MIT Licese (http://opensource.org/licenses/mit-license.php) | |
Notification plugin for | |
[canto-curses](https://github.com/themoken/canto-curses) that | |
integrates with desktop notifications. See [Canto | |
webpage](http://codezen.org/canto-ng/) for more info. |
NewerOlder