/quit
– Quit IRSSI
option+#
– Navigate to specified windowctrl-n
– Navigate to next windowctrl-p
– Navigate to previous window
# These two aliases will allow you to check out the BRANCH that a PR is | |
# associated with by PR ID (gcopr) and also merge a pull request by ID into | |
# master (gmpr). | |
# | |
# I use this in conjunction with the ghi gem to allow me to review and merge pull | |
# requests from the command line. To show open pull requests (I alias this to `prs`): | |
# | |
# ghi list | grep --color=auto '↑' --color=none | |
# Git checkout pull request by ID |
[ | |
{ "keys": ["ctrl+q"], "command": "toggle_comment", "args": { "block": false } }, | |
{ "keys": ["ctrl+shift+q"], "command": "toggle_comment", "args": { "block": true } }, | |
{ "keys": ["ctrl+shift+w"], "command": "close" }, | |
{ "keys": ["ctrl+space"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": | |
[ | |
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, | |
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }, | |
{ "key": "setting.tab_completion", "operator": "equal", "operand": true } |
import cairo | |
from gi.repository import Gtk | |
from gi.repository import Gdk | |
from gi.repository import GdkPixbuf | |
from gi.repository import GObject | |
import sys | |
def _surface_from_file(file_location, ctx): |
# vim: tabstop=4 shiftwidth=4 softtabstop=4 | |
#!/usr/bin/python | |
import sys | |
import time | |
import logging | |
from daemon import runner | |
# | |
# An example daemon main logic application class. | |
# Just keep writing timestamps to a log file periodically. | |
# |
import logging.config | |
from mediagoblin.app import MediaGoblinApp | |
from beaker.middleware import SessionMiddleware | |
logging.config.fileConfig('paste_local.ini') | |
app = MediaGoblinApp('mediagoblin_local.ini') | |
app = SessionMiddleware(app, { |
# -*- coding: utf-8 -*- | |
#Copyright (C) 2013 Seán Hayes | |
import my_project.settings as dj_settings | |
from fabric.api import local, run, sudo, env, prompt, settings, cd, parallel, execute | |
from fabric.contrib.files import exists | |
from fabric.decorators import hosts, roles, runs_once | |
import json | |
import logging | |
import os |
/* Copyright 2012 Dietrich Epp <[email protected]> */ | |
#if defined(__GNUC__) && \ | |
((__GNUC__ == 4 && __GNUC_MINOR >= 6) || __GNUC__ > 4) | |
#define HAVE_DPUSH 1 | |
#endif | |
#include "keycode/keycode.h" | |
#include "keycode/keytable.h" | |
#include "sg/audio_system.h" | |
#include "sg/clock.h" |
#!/usr/bin/python | |
import sys | |
import time | |
import math | |
import gtk | |
import gobject | |
import pyglet | |
import pyglet.gl as gl |
from itertools import izip, product, tee | |
# Logic functions: take and return iterators of truth values | |
def AND(a, b): | |
for p, q in izip(a, b): | |
yield p and q | |
def OR(a, b): | |
for p, q in izip(a, b): |