Skip to content

Instantly share code, notes, and snippets.

View selfsame's full-sized avatar

Joseph Parker selfsame

View GitHub Profile
# [PackageDev] target_format: plist, ext: tmLanguage
---
name: Clojure
scopeName: source.clojure
fileTypes: [xyz, cljs, clj, cljc]
uuid: -5584466320959560-558446636-69771
patterns:
- include: '#all'
vec:
name: meta.vec.clojure
begin: (\[)(?!\])
end: (?<!\])(\])
beginCaptures:
'0': {name: entity.sequence.start}
endCaptures:
'1': {name: entity.sequence.end}
patterns:
- include: '#all'
(require 'cljs.analyzer)
nil
cljs.user=> (dir cljs.analyzer)
*allow-redef*
*analyze-deps*
*cljs-dep-set*
*cljs-file*
*cljs-macros-is-classpath*
*cljs-macros-path*
*cljs-ns*
This file has been truncated, but you can view the full file.
(ns dollar.bill
(:refer-clojure :exclude [find]))
(defn- el? [o] (instance? js/Element o))
(defn- doc? [o] (.-querySelectorAll o))
(defn- ar? [o] (instance? js/Array o))
(defn- aseq [b] (if (or (sequential? b) (ar? b)) b (list b)))
(defn as-array [a] (.call (.. js/Array -prototype -slice) a))
(defn- >dom [s]
(ns pred.core
(:use pred.dispatch))
(defprotocol IMatrix
(-display [m])
(-specialize [m])
(-score [m])
(-subcol [m s e]))
(deftype Pred [f quote code _meta]
(rule interact [a ad b bd] :default-interaction)
(rule interact [a ^:hp ad b ^:hp bd] :attack-interaction)
(rule interact [a ^:player ad b ^:item bd] :player-item-interaction)
(rule bump-enter [c collision _]
(let [a (->go c)
b (.collider collision)]
(when (and (data a) (data b))
@sender("arcadia")
def arcadia_sender(repl, text, view):
# call (load-string) instead of just writing the string so
# that syntax errors are caught and thrown back immediately
text = '(load-string "' + text.strip().replace('"', r'\"') + '")'
# find the first non-commented statement from the start of the file
namespacedecl = view.find(r"^[^;]*?\(", 0)
# if it's a namespace declaration, go search for the namespace name
diff --git a/Compiled.meta b/Compiled.meta
index ccc917b..98aff41 100644
--- a/Compiled.meta
+++ b/Compiled.meta
@@ -1,7 +1,7 @@
fileFormatVersion: 2
-guid: 75d871e7479da41c398891146382ca0a
+guid: 7f7f4d2cda378464989cd93af148f6db
folderAsset: yes
-timeCreated: 1429620904
[
{"keys": ["alt+."], "command": "insert_snippet", "args": { "contents": "(->${0:v3} ${TM_SELECTED_TEXT})"}},
{"keys": ["ctrl+alt+p"], "command": "repl_restart"},
{ "keys": ["ctrl+alt+enter"], "command": "repl_transfer_current", "args": {"scope": "selection"}},
{ "keys": ["ctrl+enter"], "command": "repl_transfer_current", "args": {"scope": "block"}},
{"keys": ["ctrl+right"],
"command": "paredit_forward_slurp_sexp",
"context": [{"key": "should_paredit"}] },