https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png
![](https://gyazo.com/eb5c5741b6a9a16c692170a41a49c858.png | width=100)
copy/delete word under cursor in Vim | |
yw / byw | |
Assuming that the cursor is at the first character of the word simply do this in command mode: | |
yw | |
y is for yank and w is for word. | |
Other ways of doing the same thing which are not as efficient: | |
vey | |
the v starts visual select mode. e tells vim to move to end of word. y yanks or copies the word. to delete replace y with x. |
#! /usr/bin/env python | |
# coding: utf-8 | |
''' | |
auto switch keyboard between different applications | |
if you want to change the app list, modify the var 'ignore_list' | |
''' | |
from AppKit import NSWorkspace, NSWorkspaceDidActivateApplicationNotification, NSWorkspaceApplicationKey |
from defcon import Font | |
from fontTools.pens.cocoaPen import CocoaPen | |
from drawBot.drawBotDrawingTools import _drawBotDrawingTool | |
def drawGlyph(glyph): | |
pen = CocoaPen(glyph.getParent()) | |
glyph.draw(pen) | |
path = pen.path | |
_drawBotDrawingTool.drawPath(path) |
Here are my findings after profiling the loading of Roboto-Regular.ufo.
w.r.t. my experience with defcon and ufoLib. Some of the functionality I discuss (notifications, etc.) definitely shouldn't go into fontTools however we ought to make fontTools.ufoLib "compatible" with these extra features. I'm sure we can do simple and versatile.
IMO fontTools.ufoLib should basically be written from scratch (with copy-pasting here and there) since ufoLib/defcon have significant bloat and apparently we want to use lxml.
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Sublime Text 3 Pipenv virtualenv helper. | |
1. Automatically find and set Pipenv virtualenv for each opened Python file. | |
- It uses `pipenv --venv` command to find the virtualenv. | |
- It will add a 'virtualenv' setting, which is the full path to the virtualenv, |
Here is a succinct timeline of the events.
# define project name | |
PROJECT=replaceme-with-project-name | |
# define path to the font build directory for tests | |
FONT_DIR="/path/to/font/file/directory" | |
venv: | |
python3 -m venv ~/venv/$(PROJECT) | |
# can't activate and deactivate from Makefile | |
# because it runs new subshells for each |
var timer=100;document.querySelectorAll("div > input[type='checkbox']:checked").forEach((interest) => {setTimeout(function(){interest.click()},timer);timer+=2000;}); |