Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am jself on github.
  • I am finder (https://keybase.io/finder) on keybase.
  • I have a public key ASBhcY-WudtQMsU9QhiNOrpZ8EPnjjIY_O0X2RVELQeWpwo

To claim this, I am signing this object:

@jself
jself / TechTrends
Last active January 12, 2016 21:06
Tech Trends Attribution
Virtual Reality - https://www.flickr.com/photos/pestoverde/16241057474/in/photolist-qKaEyj-ph9pmA-qJPZEL-7RbJXj-rpB6Qu-bhYhMa-b9md1z-7WFY6X-wYinXT-wYQjrt-w2hboS-w2jnTm-wFHvaY-rpB7Uy-w2sSci-rGas7g-9s5ynz-BCa8tn-oMtEUq-dHkjHg-9kVQdm-C4oNfB-Behj3X-bhwaix-4foCbM-5EAbSA-rpB7cS-BehnSk-C25NT9-BehkE4-BehoQ2-BJxjuw-C25LXA-BCaes6-C25Rcs-C25RUE-BehjJ6-C9n2Vw-rFJgNB-qKaJu5-rDSUrN-rG5eRa-3MDfx-rGanMp-qKnTu4-b9mcPi-rpHzg8-rG59Xc-rpB6SJ-kSPP9
Drone - https://www.flickr.com/photos/69214385@N04/8725078749/in/photolist-ei1iWe-pMh1hs-AnK2KB-urNniC-uDiTHL-qrrKnt-6k1FcA-6Rr8H2-thvfi7-o3mrPi-nfN4ag-t244Cq-BXuu4k-n3TU3P-CeQZr2-8G9QeN-fV4AFa-BQ6JQB-nLb438-nYQEZ2-e2jFZR-uoyqS4-nfqf41-ejZ2xP-jiNUfr-rQM8Vk-oKnd9T-fF81HV-zNxSwC-fV4AzZ-dnWDiX-78giQL-66hhdZ-tPKBb7-8Kge5V-qzZZTT-qfwTgo-9KC3uV-frN4T9-rfN4he-pv4mYS-azLToM-hCR6jR-rH7Y8e-dEA6uf-ye8Ri4-nv5DMX-7hVy6Y-agWuzR-fedAFZ
Video Camera - https://www.flickr.com/photos/zapthedingbat/3028956788/in/photolist-5BEcjU-9MomCi-eJNqpW-hxg5Jt-6FiSCR-7pnnLc-4Ypyek-bmt1u-fZxPog-anwU3Y-69EZRx-bBY9F2-8
@jself
jself / Logger
Last active August 29, 2015 14:20
Simple logger
(defpackage :debug
(:use :common-lisp)
(:export debug set-debug-output debug-call disable-logger enable-logger debug-type disabled with-disabled-loggers))
(in-package :debug)
(defclass logger ()
((types :initarg :types :initform nil :accessor types)
(disabled :initarg :disabled :initform nil :accessor disabled)))
;All loggers start enabled
(defparameter *logger* (make-instance 'logger))

Keybase proof

I hereby claim:

  • I am finder on github.
  • I am finder (https://keybase.io/finder) on keybase.
  • I have a public key whose fingerprint is 0B7E 78FB C369 3EE5 F307 20B4 7EBD 0897 90F4 C8B6

To claim this, I am signing this object:

;load stuffs -- not sure why buildapp doesn't do this
#-quicklisp
(let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
(ql:quickload :lparallel)
(use-package :lparallel)
package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
)
@jself
jself / gist:7286131
Last active December 27, 2015 06:59
package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"path/filepath"
)
@jself
jself / gist:5124848
Last active December 14, 2015 17:49
def get_agent_id(self, agent_id):
if not hasattr(self, '_agent_ids'):
self._agent_ids = {}
if agent_id in self.agent_ids:
return self.agent_ids[agent_id]
a_id_list = self.list_agent_id()
for a in a_id_list:
if a == agent_id:
self.agent_ids[agent_id] = a
return a
class A(object):
def printer(self, text):
print text
def wrapped(func):
def newprinter(self, text):
print "Here: %s"%text
return newprinter
def wrapper(func):
def newfunc(*args, **kwargs):
print "In the new func, ignoring the old"
return newfunc
@wrapper
def hello():
print "In hello func"
hello()