Skip to content

Instantly share code, notes, and snippets.

Kirill Stytsenko styts

View GitHub Profile
View types.markdown

This document has moved!

It's now here, in The Programmer's Compendium. The content is the same as before, but being part of the compendium means that it's actively maintained.

malyn / vim-fireplace-figwheel.diff
Created Feb 20, 2015
vim-fireplace patches/hack for compatibility with Figwheel
View vim-fireplace-figwheel.diff
diff --git a/plugin/fireplace.vim b/plugin/fireplace.vim
index 6c32caa..a415bf8 100644
--- a/plugin/fireplace.vim
+++ b/plugin/fireplace.vim
@@ -232,7 +232,9 @@ function! s:repl.piggieback(arg, ...) abort
let arg = ' :repl-env ' . a:arg
- let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
+ "let response = connection.eval('(cemerick.piggieback/cljs-repl'.arg.')')
eyeseast /
Last active Dec 18, 2015
pip freeze > requirements.txt, excluding virtualenv clutter
from fabric.api import env, local
env.exclude_requirements = set([
'wsgiref', 'readline', 'ipython',
def freeze():
pip freeze > requirements.txt, excluding virtualenv clutter
orenitamar / country_codes.json
Created Jul 30, 2012
Two letter country code mapping, grouped by continent/region
View country_codes.json
"europe": {
"va": "vatican city",
"ch": "switzerland",
"ad": "andorra",
"ee": "estonia",
"is": "iceland",
"am": "armenia",
"al": "albania",
"cz": "czech republic",
kconragan /
Last active Feb 27, 2019
Enable key repeat in Apple Lion for Sublime Text in Vim mode
# Mac OS X Lion introduced a new, iOS-like context menu when you press and hold a key
# that enables you to choose a character from a menu of options. If you are on Lion
# try it by pressing and holding down 'e' in any app that uses the default NSTextField
# for input.
# It's a nice feature and continues the blending of Mac OS X and iOS features. However,
# it's a nightmare to deal with in Sublime Text if you're running Vintage (Vim) mode,
# as it means you cannot press and hold h/j/k/l to move through your file. You have
# to repeatedly press the keys to navigate.
daniel-nelson / Default (OSX).sublime-keymap
Created Mar 22, 2012
my Sublime Text 2 keybindings (requires Vintage package)
View Default (OSX).sublime-keymap
{ "keys": ["ctrl+space"], "command": "exit_insert_mode",
{ "key": "setting.command_mode", "operand": false },
{ "key": "setting.is_widget", "operand": false }
{ "keys": ["s"], "command": "save", "context": [{"key": "setting.command_mode"}] },
cspanring / pagination.html
Created Nov 8, 2011
linaro django pagination template for Bootstrap framework
View pagination.html
{# use in combination with #}
{# and #}
{# project-dir/templates/pagination/pagination.html #}
{% if is_paginated %}
{% load i18n %}
<div class="pagination">
{% block previouslink %}
{% if page_obj.has_previous %}
ghoseb / ns-cheatsheet.clj
Last active Mar 7, 2019 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
View ns-cheatsheet.clj
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;; * :import refers Java classes to the current namespace.
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.