Skip to content

Instantly share code, notes, and snippets.

#echo -ne "\x1bP\x1b]4;0;rgb:00/00/00\a\x1b\\"
#echo -ne "\x1bP\x1b]4;1;rgb:7a/00/00\a\x1b\\"
#echo -ne "\x1bP\x1b]4;2;rgb:00/7a/00\a\x1b\\"
#echo -ne "\x1bP\x1b]4;3;rgb:7a/7a/00\a\x1b\\"
#echo -ne "\x1bP\x1b]4;4;rgb:00/00/7a\a\x1b\\"
#echo -ne "\x1bP\x1b]4;5;rgb:7a/00/7a\a\x1b\\"
#echo -ne "\x1bP\x1b]4;6;rgb:00/7a/7a\a\x1b\\"
#echo -ne "\x1bP\x1b]4;7;rgb:c5/c5/c5\a\x1b\\"
#echo -ne "\x1bP\x1b]4;8;rgb:7a/7a/7a\a\x1b\\"
#echo -ne "\x1bP\x1b]4;9;rgb:ff/00/00\a\x1b\\"
menu.usb=USB Type
menu.speed=CPU Speed
menu.keys=Keyboard Layout
menu.usb=USB Type
@wilywampa
wilywampa / test_call_signature.py
Last active August 29, 2015 14:07
Test file for jedi call signatures/fast_parent_copy
import matplotlib.pyplot as plt
import numpy as np
import scipy.constants as const
from numpy.linalg import norm
from collections import namedtuple
pa2psf = 1 / (const.psi * (const.inch /
const.foot) ** 2)
m2ft = 1 / const.foot
if 'fignum_override' not in globals():
@wilywampa
wilywampa / matchparen.vim
Last active August 29, 2015 14:12
Patched matchparen.vim to fix Jedi call signatures
" Vim plugin for showing matching parens
" Maintainer: Bram Moolenaar <[email protected]>
" Last Change: 2014 Jul 19
" Exit quickly when:
" - this plugin was already loaded (or disabled)
" - when 'compatible' is set
" - the "CursorMoved" autocmd event is not available.
if exists("g:loaded_matchparen") || &cp || !exists("##CursorMoved")
finish
1463705827.587976 client started (18194): socket /private/tmp/tmux-501/default, protocol 8
1463705827.588003 on Darwin 14.5.0 Darwin Kernel Version 14.5.0: Mon Jan 11 18:48:35 PST 2016; root:xnu-2782.50.2~1/RELEASE_X86_64; libevent 2.0.22-stable (kqueue)
1463705827.588042 socket is /private/tmp/tmux-501/default
1463705827.588053 trying connect
1463705827.588068 connect failed: Connection refused
1463705827.588135 lock file is /private/tmp/tmux-501/default.lock
1463705827.588220 flock succeeded
1463705827.588224 got lock (5)
1463705827.588229 trying connect
1463705827.588235 connect failed: Connection refused
import ast
import greenlet
import logging
import neovim
import os
import re
from .base import Base
from functools import partial
from jupyter_client import KernelManager
from jupyter_client.consoleapp import JupyterConsoleApp
import greenlet
import logging
import neovim
import os
from functools import partial
from jupyter_client import KernelManager
from jupyter_client.consoleapp import JupyterConsoleApp
from jupyter_client.threaded import ThreadedKernelClient
from jupyter_core.application import JupyterApp
@wilywampa
wilywampa / ipycomplete.py
Created June 30, 2017 06:04
deoplete ipython completion
import greenlet
import logging
import neovim
import os
from functools import partial
from jupyter_client import KernelManager, find_connection_file
logger = logging.getLogger(__name__)
error, debug, info, warn = (
logger.error, logger.debug, logger.info, logger.warn,)
# -*- coding: utf-8 -*-
from __future__ import division, print_function
import itertools as it
import six
from pyprimes.factors import factorise, factors # noqa
try:
from math import gcd # noqa
except ImportError:
import ast
import logging
import re
# import test_get_complete_position_original as orig
logger = logging.getLogger('test_get_complete_position')
logger.propagate = False
imports = re.compile(