This file contains hidden or 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 Hulu fill search input from query params | |
// @namespace https://y4kstudios.com | |
// @updateUrl https://gist.github.com/theY4Kman/6e3680fdd5383992aeee5f3f4312dd8d/raw/e6d247c5e60d3411408f59faa82cdd833b84dac4/hulu-chrome-omnibox-search-fix.tamper.js | |
// @version 0.1 | |
// @description There seems no way to search Hulu from the Chrome omnibox, because it no longer fills the search bar using the `?q=query` param. This script resolves that issue. | |
// @author You | |
// @match https://www.hulu.com/search?* | |
// @grant none | |
// ==/UserScript== |
This file contains hidden or 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 | |
from typing import Callable, Iterable | |
from _pytest.compat import get_real_func, getfuncargnames | |
from _pytest.fixtures import call_fixture_func | |
def wrap_fixture(fixturefunc: Callable, wrapped_param: str = 'wrapped') -> Callable[[Callable], Callable]: | |
"""Wrap a fixture function, extending its argspec w/ the decorated method |
This file contains hidden or 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 cmd | |
import sys | |
from fancycompleter import interact, DefaultConfig | |
class ConfigForTest(DefaultConfig): | |
use_colors = False | |
prefer_pyrepl = False |
This file contains hidden or 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 ipython config file installs a few extra prompt key bindings for a more | |
familiar editing interface. In particular, it adds support for: | |
- Ctrl+Home: | |
move to the beginning of the buffer | |
- Ctrl+End: | |
move to the end of the buffer |
This file contains hidden or 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 ast | |
import traceback | |
from _pytest.config import Config | |
from icdiff import ConsoleDiff | |
import terminal_helpers | |
import util_pprint | |
This file contains hidden or 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 typing import Callable, Iterable, List | |
import cssselect | |
import gi | |
from cssselect import GenericTranslator | |
gi.require_version('Gtk', '3.0') | |
from gi.repository import Gtk | |
This file contains hidden or 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
#include <string.h> | |
#include <dlfcn.h> | |
#include <libxfce4util/libxfce4util.h> | |
#include <libxfce4panel/xfce-panel-plugin.h> | |
#include <gtk/gtk.h> | |
#include <Python.h> | |
#include <canberra.h> | |
#include <gsound.h> |
Install to:
ipython_config.py
—~/.ipython/profile_default/ipython_config.py
00-keybindings.py
—~/.ipython/profile_default/startup/00-keybindings.py
10-line-magics.py
—~/.ipython/profile_default/startup/10-line-magics.py
This file contains hidden or 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
""" | |
Add copy to clipboard from IPython! | |
To install, just copy it to your profile/startup directory, typically: | |
~/.ipython/profile_default/startup/ | |
Example usage: | |
%clip hello world | |
# will store "hello world" |