Skip to content

Instantly share code, notes, and snippets.

ducky427 / # llvm - 2018-12-28_11-11-55.txt
Created Dec 28, 2018
llvm on macOS 10.14.2 - Homebrew build logs
View # llvm - 2018-12-28_11-11-55.txt
Homebrew build logs for llvm on macOS 10.14.2
Build date: 2018-12-28 11:11:55
ducky427 / core.cljs
Created Jun 11, 2015
Facebook's fixed data for reagent. Adapted from
View core.cljs
(ns datatable.core
(:require [reagent.core :as reagent]
(def Table (reagent/adapt-react-class js/FixedDataTable.Table))
(def Column (reagent/adapt-react-class js/FixedDataTable.Column))
(defn gen-table
"Generate `size` rows vector of 4 columns vectors to mock up the table."
View core.clj
(ns neocons-timeout.core
(:require [ :as nr]
[ :as nn]))
(defn -main
[& args]
(let [conn (-> (nr/connect "http://localhost:7474/db/data/")
(assoc-in [:options :socket-timeout] 1000) ;;timeout in milliseconds
(assoc-in [:options :conn-timeout] 1000))]
(println (nr/create conn {:name "John"}))))
View graphene_test.clj
;; Copyright (c) 2011-2014 Michael S. Klishin, Alex Petrov, and The ClojureWerkz
;; Team
;; The use and distribution terms for this software are covered by the
;; Eclipse Public License 1.0 (
;; which can be found in the file epl-v10.html at the root of this distribution.
;; By using this software in any fashion, you are agreeing to be bound by
;; the terms of this license.
;; You must not remove this notice, or any other, from this software.
View gist:9125b39d797738865c21
try(Transaction tx = db.beginTx()) {
Node startNode = db.getNodeById( nodeId );
int maxLength = 0;
boolean to_continue = true;
while (to_continue) {
Iterator<Relationship> rels = startNode.getRelationships(Direction.OUTGOING, NEXT).iterator();
if (rels.hasNext()) {
startNode =;
ducky427 / core.clj
Last active Aug 29, 2015
Bulk create test using neocons
View core.clj
(ns bulk-test.core
(:require [ :as nr]
[ :as nn]
[ :as cy])
(defn create-nodes
[conn num]
(let [nodes (repeat num {:name "Joe Bloggs" :age 32})]
(nn/create-batch conn nodes)))

Keybase proof

I hereby claim:

  • I am ducky427 on github.
  • I am rohit ( on keybase.
  • I have a public key ASCGRWg4tLLWMcKtvJs4JSaz7rzYoThes3Rzbyc_WqqTmQo

To claim this, I am signing this object:

View viz.js
d3.csv("data/gates_money.csv", function(data) {
$(document).ready(function() {
$('#view_selection a').click(function() {
var view_type = $(this).attr('id');
$('#view_selection a').removeClass('active');
View gist:5543518
from macropy.macros.string_interp import macros, s
a, b = 1, 2
c = s%"%{a} apple and %{b} bananas"