Skip to content

Instantly share code, notes, and snippets.

(comment
(jdbc/query db sqlvec {:identifiers ...
:keywordize? ...
:qualifier ...})
(def sql-schema
{:tables {:location "locations"
:part "parts"
:stock "stock"
:stock-log "stock_log"}
❯ lein repl
Retrieving com/wsscode/pathom/2.0.15-SNAPSHOT/pathom-2.0.15-20180718.175729-4.pom from clojars
Retrieving com/wsscode/pathom/2.0.4/pathom-2.0.4.pom from clojars
Retrieving commons-codec/commons-codec/1.11/commons-codec-1.11.pom from central
Retrieving org/apache/commons/commons-parent/42/commons-parent-42.pom from central
Retrieving criterium/criterium/0.4.4/criterium-0.4.4.pom from clojars
Retrieving clojure-future-spec/clojure-future-spec/1.9.0-beta4/clojure-future-spec-1.9.0-beta4.pom from clojars
Retrieving fulcrologic/fulcro-inspect/2.2.1/fulcro-inspect-2.2.1.pom from clojars
Retrieving nubank/workspaces/1.0.0-preview1/workspaces-1.0.0-preview1.pom from clojars
Retrieving cljsjs/react-dom/15.6.2-4/react-dom-15.6.2-4.pom from clojars
(ns dlt-backend.pathom-trial
(:require
[com.wsscode.pathom.core :as p]
[com.wsscode.pathom.connect :as pc]
[camel-snake-kebab.core :as csk]
[clojure.set :as set]))
(def indexes (atom {}))
(defmulti resolve-fn pc/resolver-dispatch)
@bwalex
bwalex / editor.js
Last active September 5, 2022 06:58
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _withHandlers;
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstr
--- resources/public/js/main.js 2018-04-14 16:00:55.801392016 +0100
+++ /tmp/main.js 2018-04-14 16:00:30.202508912 +0100
@@ -3186,8 +3186,8 @@
d.type;var r=cU.utils.isSelectionInTable(c.props.value);return AE.createElement(TT,(a={og:c.Nb("heading-one"),rg:c.Nb("heading-two"),qg:c.Nb("heading-three"),ng:c.Nb("heading-four"),mg:c.Nb("heading-five"),pg:c.Nb("heading-six"),vg:c.mf,Wf:c.gc("bold"),ug:c.fc("bold")},WT(a,"boldActive",c.gc("bold")),WT(a,"onBold",c.fc("bold")),WT(a,"italicActive",c.gc("italic")),WT(a,"onItalic",c.fc("italic")),WT(a,"underlineActive",c.gc("underlined")),WT(a,"onUnderline",c.fc("underlined")),WT(a,"strikethroughActive",
c.gc("strikethrough")),WT(a,"onStrikethrough",c.fc("strikethrough")),WT(a,"highlightActive",c.gc("highlighted")),WT(a,"onHighlight",c.fc("highlighted")),WT(a,"codeMarkActive",c.gc("code")),WT(a,"onCodeMark",c.fc("code")),WT(a,"onLink",c.pf),WT(a,"bulletListActive",m),WT(a,"onBulletList",c.Lc("bulleted-list")),WT(a,"numberListActive",n),WT(a,"onNumberList",c.Lc("
❯ npx shadow-cljs check prod
shadow-cljs - config: /home/alex/code/dlt/shadow-cljs.edn version: 2.2.26
shadow-cljs - connected to server
------ WARNING #1 --------------------------------------------------------------
File: ~/.m2/repository/org/clojure/clojurescript/1.10.238/clojurescript-1.10.238.jar!/cljs/core.cljs:11505:17
--------------------------------------------------------------------------------
11502 | (enable-console-print!)
11503 |
11504 | (identical? *target* "nashorn")
11505 | (let [system (.type js/Java "java.lang.System")]
@bwalex
bwalex / styled-core.cljs
Last active August 12, 2018 06:03
emotion css with clojurescript. see https://github.com/bwalex/verktyg for a better implementation
(ns dlt.styled.core
(:require [clojure.string]
[create-emotion :as createEmotion]))
(defonce emotion
(createEmotion #js {}))
;; from filter-react-dom-props
(def dom-props
[:abbr

Keybase proof

I hereby claim:

  • I am bwalex on github.
  • I am bwalex (https://keybase.io/bwalex) on keybase.
  • I have a public key ASAc-nWvOL6axpxg7ntpTUx-5lAW2W83b8eANr6qq01ergo

To claim this, I am signing this object:

runtime bundle/vim-pathogen/autoload/pathogen.vim
execute pathogen#infect()
syntax on
filetype plugin indent on
"" Sensible defaults
"""""""""""