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
:set inccommand=nosplit | |
https://neovim.io/doc/user/provider.html#provider-clipboard | |
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
" Avoid issues with using zsh | |
set shell=/bin/bash | |
" Required | |
set nocompatible | |
" Plugins start | |
call plug#begin('~/.vim/plugged') | |
" Status |
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 pytumblr | |
from pathlib import Path | |
import requests | |
import sys | |
client = pytumblr.TumblrRestClient('api key here') | |
def rip(site): | |
offset = 0 | |
posts = client.posts(site, type='photo', limit=100, offset=offset) |
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
font_family SF Mono | |
font_size 15.0 | |
adjust_column_width -1 | |
term xterm-256color | |
tab_bar_edge top | |
copy_on_select yes | |
map alt+left send_text all \x1b\x62 | |
map alt+right send_text all \x1b\x66 |
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/bash | |
# default disk is external on disk2 | |
disk=${1:-disk2} | |
echo "[ Using /dev/$disk ]" | |
echo | |
while true; do | |
# check if our disk is present | |
if [ ! -b /dev/$disk ]; then |
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 bitmath | |
import click | |
import re | |
def split(_, param, value): | |
if ' ' in value: | |
values = value.split(' ', 1) |
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 elasticsearch import Elasticsearch | |
from unittest.mock import patch | |
class Sample: | |
def cat_indices(self): | |
return 'thing' | |
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 unittest import mock | |
import unittest | |
class Thing: | |
def sample_a(self, n): | |
return n + 1 | |
def sample_b(self, n): | |
return n * 2 |
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 unittest import mock | |
import unittest | |
class Thing: | |
def sample_a(self, n): | |
return n + 1 | |
def sample_b(self, n): | |
return n * 2 |
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 asyncio | |
from random import randint | |
from pprint import pprint | |
import time | |
async def modify_config(config): | |
""" | |
For modifying the 'config' or results in place. | |
""" |