Skip to content

Instantly share code, notes, and snippets.

💭
🌌

Duncan McGreggor oubiwann

💭
🌌
Block or report user

Report or block oubiwann

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@oubiwann
oubiwann / test1.txt
Last active Jun 17, 2019
Robert Virding ASCII Art
View test1.txt
................................................................................
........ .. .............................. .....................................
...... .. .............................. .O888Z.................................
..................................7ZO8D8888DNDDD8...............................
. .. . . . ...................O8NNND888DDDDDNND8.................... . ......
................................ODDDD888888DDDDNDD88 ...........................
................................OOO88888DDDDNNDDDD888...........................
...............................ZO88OO8DDD8NNNNDDDD888O..........................
...... .. . ............... +88D8O8NNN8DDDDDDND88888O...... ... .. . . . ...
...............................8DDZZO88DDD88888DD888D8O.........................
View cmr-service-change.diff
diff --git a/indexer-app/src/cmr/indexer/data/elasticsearch.clj b/indexer-app/src/cmr/indexer/data/elasticsearch.clj
index c6483605e..a285edc37 100644
--- a/indexer-app/src/cmr/indexer/data/elasticsearch.clj
+++ b/indexer-app/src/cmr/indexer/data/elasticsearch.clj
@@ -51,6 +51,12 @@
(:transaction-id concept)
(map :transaction-id (:variable-associations concept))))
+(defmethod get-elastic-version :service
+ [concept]
View cmr-repl-reload-error.clj
:error-while-loading cmr.common.test.test-util
#error {
:cause "namespace 'cmr.common.config' not found"
:via
[{:type clojure.lang.Compiler$CompilerException
:message "java.lang.Exception: namespace 'cmr.common.config' not found, compiling:(cmr/common/test/test_util.clj:1:1)"
:at [clojure.core$throw_if invokeStatic "core.clj" 5656]}
{:type java.lang.Exception
:message "namespace 'cmr.common.config' not found"
:at [clojure.core$apply invokeStatic "core.clj" 648]}]
@oubiwann
oubiwann / saturn-jupiter-earth.ipynb
Last active Nov 7, 2017
Saturn/Jupiter/Earth Distances over Next 60 Years (and who would trade with whom)
View saturn-jupiter-earth.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@oubiwann
oubiwann / ansi_example.clj
Last active Jun 30, 2017
Clojure ANSI Example
View ansi_example.clj
(ns ansi-example
(:require [clansi :as ansi]))
(defn -main
"COLORS!!!
From a terminal in the direectory where you cloned this gist,
just run:
```
$ lein run
@oubiwann
oubiwann / cmr.clj
Last active May 26, 2017
Debugging ACLs for CMR Variable Ingest
View cmr.clj
scratch
=======
(reset)
(run-tests 'cmr.system-int-test.ingest.variable-ingest-test)
=============================================================================
(reset)
@oubiwann
oubiwann / pubsub_with_callbacks.clj
Last active Jan 20, 2017
Clojure core.async Pub/Sub Example (with callbacks)
View pubsub_with_callbacks.clj
(ns pubsub-with-callbacks
"Adapted from Timothy Baldridge's 2013 core.async examples:
* https://raw.githubusercontent.com/halgari/clojure-conj-2013-core.async-examples/master/src/clojure_conj_talk/core.clj"
(:require [clojure.core.async :as async]))
(def pub-channel (async/chan 1))
(def publisher (async/pub pub-channel :tag))
(def print-channel (async/chan 1))
(defn run-print-channel
@oubiwann
oubiwann / appify.sh
Last active Jul 25, 2019 — forked from advorak/appify.sh
appify — create the simplest possible Mac app from a shell script (adds an application icon)
View appify.sh
#!/usr/bin/env bash
VERSION=4.0.1
SCRIPT=`basename "$0"`
APPNAME="My App"
APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns"
OSX_VERSION=`sw_vers -productVersion`
PWD=`pwd`
function usage {
@oubiwann
oubiwann / winter-wonderland.lfe
Last active Dec 7, 2016
LFE Winter Wonderland
View winter-wonderland.lfe
;; Start an LFE REPL:
;;
;; $ lfe
;;
;; Load the file:
;;
;; lfe> (run "winter-wonderland.lfe")
;;
;; Then run these:
;;
You can’t perform that action at this time.