Skip to content

Instantly share code, notes, and snippets.

(ns recurse.core)
;; TODO most likely add first and list here so that our sample code is fully accounted for
(def lisp->clj {'+ +})
(defn tokenize
"walks through lisp input string, if current element is not a collection, add it to the vector,
otherwise create a nested vector by calling tokenize on it"
[string]
(mapv (fn [token]
# meant to serve as a quick and lightweight gist to keep track of additional env variables that needed
# to be set for linx minut 18.3 cinnamon relative to the ubuntu documentation
# some of these may be better handled in a qt.conf file bundled into the project itself at https://github.com/status-im/react-native-desktop
# or https://status.im/build_status/desktop.html
# suggestions and edits welcome!
export PATH=$PATH:/home/robert/Qt/5.11.2/gcc_64/bin
export PATH=$PATH:/home/robert/cmake/bin
export PATH=$PATH:/home/robert/rob/buck/bin
(defun custom-cider-jack-in ()
(interactive)
(let ((status-desktop-params "with-profile +figwheel repl"))
(set-variable 'cider-lein-parameters status-desktop-params)
(message "setting 'cider-lein-parameters")
(cider-jack-in)))
(defun start-figwheel-cljs-repl ()
(interactive)
(set-buffer "*cider-repl status-react*")

Keybase proof

I hereby claim:

  • I am rcullito on github.
  • I am robculliton (https://keybase.io/robculliton) on keybase.
  • I have a public key ASBG076fnyt29OQ7ea_oL60B2TVWoUHDrA3fctGm29Irpwo

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am rcullito on github.
* I am robculliton (https://keybase.io/robculliton) on keybase.
* I have a public key ASCSvYCK93SXJgOABzwu1CJecVm2ZxjDcjmWNVSZSDa3Pgo
To claim this, I am signing this object:
@rcullito
rcullito / ngEnter.js
Last active August 29, 2015 14:13 — forked from EpokK/ngEnter.js
app.directive('ngEnter', function() {
return function(scope, element, attrs) {
element.bind("keydown keypress", function(event) {
if(event.which === 13) {
$timeout(function(){
scope.$eval(attrs.ngEnter);
});
event.preventDefault();
}
var stage = new Kinetic.Stage({
container: 'kinetic',
width: 800,
height: 200
});
var layer = new Kinetic.Layer();
var yellowRainJacket = new Kinetic.Group({});
@rcullito
rcullito / gist:cd4513766e112387b9c8
Created May 6, 2014 01:51
ElasticSearch Fuzzy Query, Favor Exact Matches
{
"query": {
"bool": {
"should": [
{
"match": {
"_all": search_term
}
},
{