Skip to content

Instantly share code, notes, and snippets.

# Put this in ~/.nvim/pythonx/
# requires python, see :he nvim-python
from threading import Thread
from time import sleep, strftime
class EventLoop(Thread):
def __init__(self, vim):
super(EventLoop, self).__init__()
self.vim = vim
from threading import Thread, Lock
from time import sleep, strftime
def msg(vim, msg):
vim.command('echom "%s"' % (msg,))
class EventLoop(Thread):
def __init__(self, vim):
super(EventLoop, self).__init__()
self.vim = vim
function foo() {
console.log("fooing");
}
console.log("start");
for (var i = 0; i < 5; i++) {
process.nextTick(foo);
}
console.log("end");
[ 94%] Generating /Users/bjorn/apps/neovim/.deps/usr/bin/busted
Missing dependencies for busted:
say >= 1.2-1
luafilesystem >= 1.5.0
ansicolors >= 1.0-1
penlight >= 1.0.0-1
mediator_lua >= 1.1-3
dkjson >= 2.1.0
lua_cliargs >= 2.0
/a/django (master) $ ag "from os"
django/core/management/templates.py
12:from os import path
django/utils/_os.py
5:from os.path import join, normcase, normpath, abspath, isabs, sep, dirname
docs/conf.py
17:from os.path import abspath, dirname, join
[ 4038] WARN - j.ui.mac.MacMainFrameDecorator - no url bundle present.
To use platform protocol handler to open external links specify required protocols in the mac app layout section of the build file
Example: args.urlSchemes = ["your-protocol"] will handle following links: your-protocol://open?file=file&line=line
[ 5715] WARN - openapi.wm.impl.ToolWindowImpl - ToolWindow icons should be 13x13. Please fix file:/Users/bjorn/Library/Caches/IntelliJIdea13/plugins-sandbox/plugins/intellij-plugin/classes/icons/floo.png
[ 31968] WARN - #floobits.utilities.Flog - Signature does not match.
java.security.SignatureException: Signature does not match.
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:444)
at sun.security.x509.X509CertImpl.verify(X509CertImpl.java:387)
at floobits.common.Utils$1.checkServerTrusted(Utils.java:228)
at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1201)
null
java.lang.NullPointerException
at floobits.common.Connection.write(Connection.java:68)
at floobits.common.OutboundRequestHandler.highlight(OutboundRequestHandler.java:104)
at floobits.common.EditorEventHandler.changeSelection(EditorEventHandler.java:86)
at floobits.Listener$4.if_path(Listener.java:283)
at floobits.utilities.GetPath.getPath(GetPath.java:29)
at floobits.Listener.sendCaretPosition(Listener.java:273)
at floobits.Listener.visibleAreaChanged(Listener.java:264)
at sun.reflect.GeneratedMethodAccessor97.invoke(Unknown Source)

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

WebRTC error! NavigatorUserMediaError {constraintName: "", message: "", name: "PermissionDeniedError"} b93fe55a106d.js:17
FLP.log_ b93fe55a106d.js:17
FLP.error b93fe55a106d.js:17
Backbone.View.extend.gotUserMedia_ b93fe55a106d.js:3056
(anonymous function)
null
java.lang.NullPointerException
at floobits.common.handlers.FlooHandler$2.run(FlooHandler.java:219)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:897)
at floobits.utilities.ThreadSafe$2.run(ThreadSafe.java:32)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:346)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)