Skip to content

Instantly share code, notes, and snippets.

View tavisrudd's full-sized avatar

Tavis Rudd tavisrudd

View GitHub Profile

CALLING ALL VANCOUVER POLYGLOT UNCONFERENCE VOLUNTEERS!

Would you like to rub shoulders with industry professionals from Microsoft, Hootsuite, Mobify, Plenty of Fish, Clio ... to list a few of our (sold out) conference sponsors? Volunteer for us at our 3rd annual Polyglot conference! For a few hours of your volunteer time, you will be able to attend some of the sessions, and entitle you to get all of the swag that paying attendees would get.

TIME COMMITMENT

May 24, 2014: We are primarily looking for people willing to do registration in the morning (7:30am-12:30pm), plus 1 or 2 people willing to volunteer as photographers for the event throughout the day and help with clean up (4:30-5:30pm), as needed.

@tavisrudd
tavisrudd / index.js
Last active August 29, 2015 14:20
vdom messing with widgets
var diff = require("virtual-dom").diff
var patch = require("virtual-dom").patch
var h = require("virtual-dom").h
//var _ = require("lodash");
var createElement = require("virtual-dom").create
var OddCounterWidget = function(prefix) {this.prefix = prefix;};
OddCounterWidget.prototype.type = "Widget"
OddCounterWidget.prototype.count = 1
#!/bin/bash
$(dirname $0)/bootstrap-portage.sh
# keyword chef and dependencies
cat <<EOF > /etc/portage/package.keywords/chef
=app-admin/chef-0.9.8
=dev-ruby/abstract-1.0.0
=dev-ruby/bunny-0.6.0
=dev-ruby/erubis-2.6.5
@tavisrudd
tavisrudd / gist:1152679
Created August 17, 2011 21:24 — forked from rlm/gist:746185
curry.clj
(ns sunil.curry)
(defn partial+
"Takes a function f and fewer than the normal arguments to f, and
returns a fn that takes a variable number of additional args. When
called, the returned function calls f with args + additional args.
differs from the core version in that it works on just one argument."
{:added "1.0"}
([f] f)
([f arg1]
@tavisrudd
tavisrudd / eterm-ssh
Created August 21, 2011 17:42
fuzzy completion search for gentoo ebuilds in elisp (using ido)
#!/bin/bash
# This is a wrapper around ssh so multi-term / emacs e-term will work
# well with remote shells.
term_name=$1
shift
screen -m -e^Uu -S $term_name /usr/bin/ssh $@
@tavisrudd
tavisrudd / core.clj
Created October 31, 2011 17:10 — forked from tomykaira/core.clj
save your followers in neo4j
(ns friends-relationship-twitter.core
(:require [borneo.core :as neo]
twitter
[oauth.client :as oauth]))
(def oauth-consumer (oauth/make-consumer "KEY"
"SECRET"
"https://api.twitter.com/oauth/request_token"
"https://api.twitter.com/oauth/access_token"
"https://api.twitter.com/oauth/authorize"
@tavisrudd
tavisrudd / cljdoc.el
Created January 2, 2012 19:47 — forked from tomykaira/cljdoc.el
cljdoc.el --- eldoc mode for clojure
;;; cljdoc.el --- eldoc mode for clojure
;; Copyright (C) 2011 tomykaira
;; Version 0.1.0
;; Keywords: eldoc clojure
;; Author: tomykaira <tomykaira@gmail.com>
;; URL: https://gist.github.com/1386472
;; This file is not part of GNU Emacs.
@tavisrudd
tavisrudd / tmp.clj
Created January 9, 2012 21:20
debug version of eval-in-subprocess
(defn eval-in-subprocess [project form-string]
(let [command `(~(or (System/getenv "JAVA_CMD") "java")
"-cp" ~(get-classpath-string project)
~@(get-jvm-args project)
"clojure.main" "-e" ~form-string)]
(let [cp (get-classpath-string project)]
(println (type cp) ": " cp))
(println "---")
(let [args (get-jvm-args project)]
(println (type args) ": " args))
@tavisrudd
tavisrudd / cdt-locals.patch
Created January 20, 2012 03:37
very hackish patch for swank-clojure that adds locals (or at least a string version of them) support to cdt stack frames
diff --git a/src/swank/core/cdt_backends.clj b/src/swank/core/cdt_backends.clj
index 05257f2..5b984d0 100644
--- a/src/swank/core/cdt_backends.clj
+++ b/src/swank/core/cdt_backends.clj
@@ -1,6 +1,7 @@
(ns swank.core.cdt-backends
(:refer-clojure :exclude [next])
(:require [cdt.ui :as cdt]
+ [cdt.reval]
[swank.core.cdt-utils :as cutils]
(require 'eldoc)
(defun clojure-slime-eldoc-message ()
(when (and (featurep 'slime) (slime-background-activities-enabled-p))
(slime-echo-arglist);async
nil ; show nothing now
))
(defun clojure-localize-documentation-function ()
(set (make-local-variable 'eldoc-documentation-function)
'clojure-slime-eldoc-message))