Skip to content

Instantly share code, notes, and snippets.

@yarko
yarko / config.sh
Last active December 8, 2021 18:14 — forked from leolord/vim.sh
Compiling vim on Ubuntu 18 with LUA-support
# my build: (Ubuntu 20.04)
# see notes (2/12/2020):
# https://github.com/ycm-core/YouCompleteMe/wiki/Building-Vim-from-source
# be sure we have libgtk-3-dev installed
# sudo apt install libgtk-3-dev
./configure \
--with-features=huge \
--enable-multibyte \
--enable-luainterp=yes \
--enable-python3interp=yes \
@yarko
yarko / batch-delete-gmail-emails.js
Last active December 12, 2020 14:53 — forked from gene1wood/batch-delete-gmail-emails.js
A Google Apps Script script to bulk delete large amounts of email in Gmail while avoiding the error #793 which Gmail encounters normally
# This script, when used with Google Apps Scripts will delete 500 emails - the amount the API will return with one call.
# It can be triggered to run periodically (I set @ 5 minute, since it runs slow) without user interaction
# enabling you to bulk delete email in Gmail without getting the #793 errors, etc., from Gmail.
# Configure the search query in the code below to match the type of emails you want to delete
# See - https://developers.google.com/apps-script/reference/gmail/gmail-app#search(String)
# and https://support.google.com/mail/answer/7190?hl=en
# Browser to https://script.google.com/.
# Start a script and paste in the code below.
@yarko
yarko / plantuml_magics.py
Last active November 2, 2015 00:09 — forked from sberke/plantuml_magics.py
An Plantuml extension for generating UML figures from within ipython notebook.
"""
An Plantuml extension for generating UML figures from within ipython notebook.
Source: http://stackoverflow.com/questions/20303335/ipython-notebook-plantuml-extension
See example notebook at: http://nbviewer.ipython.org/gist/sberke/bb90ff09193a8888d7f7
"""
import os
from IPython.core.magic import magics_class, cell_magic, Magics
from IPython.display import Image, SVG