Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.
# Install and run abs (sync)
sudo pacman -S abs
### Nginx upstart script | |
### source: http://serverfault.com/a/391737/70451 | |
### /etc/init/nginx.conf | |
description "nginx http daemon" | |
start on (filesystem and net-device-up IFACE=lo) | |
stop on runlevel [!2345] | |
env DAEMON=/usr/local/sbin/nginx |
Python support is needed by vim in order to run things like Conque and Slimv. Arch keeps vim slim by only providing Python support in gvim. But you may prefer vim to gvim, so here's what's needed.
# Install and run abs (sync)
sudo pacman -S abs
# = require '../components/jquery/jquery' | |
# = require '../components/angular-complete/angular' | |
Controllers = angular.module 'controllers', [] | |
Controllers.controller 'PhoneListCtrl', ['$scope', ($scope)-> | |
$scope.phones = [ | |
{name: "Nexus S", snippet: "Fast just got faster with Nexus S."}, |
web: ./node_modules/.bin/coffee app.coffee |
Install the dictionary.
% pacman -S words
Make it convenient.
% alias g='grep --color=always --perl-regexp'
% export dict=/usr/share/dict/american-english
Use it.
Inspired by dannyfritz/commit-message-emoji
See also gitmoji.
Commit type | Emoji |
---|---|
Initial commit | 🎉 :tada: |
Version tag | 🔖 :bookmark: |
New feature | ✨ :sparkles: |
Bugfix | 🐛 :bug: |
#!/bin/bash | |
## cf from http://programster.blogspot.com/2014/05/ubuntu-14-desktop-install-fira-sans-and.html | |
cd /tmp | |
# install unzip just in case the user doesn't already have it. | |
if [[ `uname` = Linux ]]; then | |
sudo apt-get install unzip -y | |
wget "http://www.carrois.com/downloads/fira_4_1/FiraFonts4106.zip" |
(ns dynamic.test | |
(:require [clojure.test :refer :all])) | |
;; This example shows how tests can be generated dynamically, by | |
;; creating new vars with the correct metadata. | |
(defn add-test | |
"Add a test to the given namespace. The body of the test is given as | |
the thunk test-fn. Useful for adding dynamically generated deftests." | |
[name ns test-fn & [metadata]] |
;; Rename clj/cljs/cljc buffers to their namespace name, so you see | |
;; `foo.bar.core' in the modeline, rather than `core.clj' | |
(advice-add 'rename-buffer :around #'plexus/clj-ns--rename-buffer-advice) | |
(defun plexus/clj-ns--rename-buffer-advice (rb-fun newname &optional unique &rest args) | |
(let ((filename (buffer-file-name (current-buffer))) | |
(buf-start (buffer-substring-no-properties (point-min) (point-min)))) | |
(if (and (string-match "\\.clj[cxs]?$" filename) | |
(string-match "(ns \\([^\n )]+\\)" buf-start)) | |
(match-string-no-properties 1 buf-start) |