This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failures: | |
1) Initialization Init and processing of schemes schemes until none left | |
Failure/Error: execute_without_backtrace(*args, &block) | |
expected 1 items, got 0 | |
# ./spec/acceptance/sessions.feature:75 | |
# spec/acceptance/steps/sessions_steps.rb:27:in `block (2 levels) in <top (required)>' | |
# ./spec/support/turnip_hack.rb:64:in `execute_with_backtrace' | |
# ./spec/support/turnip_hack.rb:31:in `block (6 levels) in run' | |
# ./spec/support/turnip_hack.rb:28:in `each' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem 'rack-offline' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<canvas id="c" style="width:500px; height:500px; background-color: grey"> | |
</canvas> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns malli.inline-output | |
(:require | |
[edamame.core :refer [parse-string]] | |
[malli.core :as m] | |
[malli.error :as me])) | |
;; -- helper code to find location data in an edn file | |
(defprotocol IUnwrap | |
(unwrap [_])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; When middleware comes with a certain dependency order things get a bit tedious and error prone. | |
;; Consider example 1 below: | |
(defn add-cmd [req cmd] | |
(update req :cmd (fnil conj []) cmd)) | |
(defn add-cmd-handler [cmd] | |
(fn [req] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; Copy of https://gist.github.com/alandipert/1263783 | |
;; | |
;; Copyright (c) Alan Dipert. All rights reserved. | |
;; The use and distribution terms for this software are covered by the | |
;; Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) | |
;; 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. | |
(ns alandipert.kahn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" | |
"http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.plex.pms</string> | |
<key>OnDemand</key> | |
<false/> | |
<key>ProgramArguments</key> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require '[datomic.api :as d]) | |
(def db-uri "datomic:mem://hello") | |
(d/create-database db-uri) | |
(def conn (atom {})) | |
(reset! conn (d/connect db-uri)) | |
(def schema [{:db/id (d/tempid :db.part/db) | |
:db/ident :dummy/content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:name "Search the Clojurians Slack-archive" | |
:author "Gert Goet" | |
:license "MIT"} | |
;;--- | |
(when-some [q (js/prompt "Search the Clojurians Slack-archive:")] | |
(.open js/window (str "https://clojurians.zulipchat.com/#narrow/stream/180378-slack-archive/search/" q))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bb | |
(doseq [line (->> (file-seq (clojure.java.io/file (System/getenv "PWD"))) | |
(filter #(.isFile %)) | |
(filter (fn [f] (contains? #{"clj" "cljc" "cljs" "bb"} | |
(last (clojure.string/split (.getName f) #"\."))))) | |
(mapcat #(clojure.string/split-lines (slurp %))) | |
sort | |
)] | |
(println line)) |
NewerOlder