Skip to content

Instantly share code, notes, and snippets.

View Scriptor's full-sized avatar

Tamreen Khan Scriptor

View GitHub Profile
@Scriptor
Scriptor / awe.phn.clj
Last active December 11, 2015 21:09
preliminary pharen css generator
(ns awe)
(fn get-rules (css)
(let [pairs (partition 2 (rest css))]
(cons (first css)
(reduce (lambda (pair rules)
(if (seq? (:pair 0))
(concat rules (map #get-rules pair))
(append {(:pair 0) (:pair 1)} rules)))
[]
#!/usr/bin/env python
def this_is_a_test():
a = [1,
2,
3]
set nocompatible
syntax on
set number
set backspace=2 " more powerful backspacing
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=120
set smarttab
Once upon a midnight dreary, while I pondered weak and weary.
(require '[tutor.core :as tc])|| => java.lang.Exception: Unsupported binding form: 3, compiling:(tutor/core.clj:3:2)||
(tc/foo)|| => java.lang.RuntimeException: No such namespace: tc, compiling:(NO_SOURCE_PATH:2:2)||
(require '[tutor.core])
(tutor.core/foo)
Could not find artifact ibdknox:clojure:pom:1.5.0-alpha1 in central (http://repo1.maven.org/maven2)
Could not find artifact ibdknox:clojure:pom:1.5.0-alpha1 in clojars (https://clojars.org/repo/)
Generating a project called tutor based on the 'default' template.
@Scriptor
Scriptor / Patch
Created May 7, 2012 22:44
Patches's Patchesness
From 247bab487e38133065575ba4fe5aaa673c63a3ff Mon Sep 17 00:00:00 2001
From: Tamreen Khan <tamreen@chartbeat.com>
Date: Mon, 7 May 2012 18:40:36 -0400
Subject: [PATCH] Add patches.
---
patches | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
create mode 100644 patches
@Scriptor
Scriptor / gist:2432470
Created April 20, 2012 22:53
Stack lang for anarchy channel
def onMessage(name, message):
funcs = {}
if message[0] != '>':
return None
def do(st):
block = st.pop()
evaluate(block, st)
return st.pop()