Moved to a real repo, here: https://github.com/bmaddy/beautiful-interpreter
This file contains hidden or 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
# Start the app with EXPLAIN_PARTIALS=true to show locations of view partials | |
if Rails.env.development? and ENV['EXPLAIN_PARTIALS'] | |
module ActionView | |
class PartialRenderer | |
def render_with_explanation(*args) | |
rendered = render_without_explanation(*args).to_s | |
# Note: We haven't figured out how to get a path when @template is nil. | |
start_explanation = "\n<!-- START PARTIAL #{@template.inspect} -->\n" | |
end_explanation = "\n<!-- END PARTIAL #{@template.inspect} -->\n" | |
start_explanation.html_safe + rendered + end_explanation.html_safe |
This file contains hidden or 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
PATH | |
remote: . | |
specs: | |
tufts_models (0.0.1) | |
active-fedora (~> 7.0) | |
carrierwave | |
chronic | |
hydra-core | |
hydra-editor | |
hydra-role-management |
This file contains hidden or 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 bash | |
# Reset routing table on OSX | |
# display current routing table | |
echo "********** BEFORE ****************************************" | |
netstat -rn | |
echo "**********************************************************" | |
for i in {0..4}; do | |
sudo route -n flush # several times |
This file contains hidden or 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
Moved to https://github.com/bmaddy/csd-vpn/blob/master/csd-responder-exec.sh |
This file contains hidden or 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 gadget | |
(:require [datomic.api :as d] | |
[clojure.pprint :refer [pprint pp]] | |
[clojure.inspector :as i :refer [inspect-tree]]) | |
(:import (javax.swing.tree TreeModel) | |
(javax.swing JTree JScrollPane JFrame))) | |
(defn rev-attrs | |
"Finds reverse relationships for a datomic.query.EntityMap" | |
[e] |
clj -R:nrepl -m nrepl.cmdline --middleware "[cider.piggieback/wrap-cljs-repl]"
in Emacs, cider-connect
user> (require '[oops.core :refer [oset!]])
nil
user> (oset! (js-obj) :mood "a happy camper")
IllegalStateException Can't change/establish root binding of: *cljs-warnings* with set clojure.lang.Var.set (Var.java:223)
This file contains hidden or 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
{:deps | |
{org.clojure/clojure {:mvn/version "1.10.0-RC5"} | |
#_#_org.clojure/spec.alpha {:mvn/version "0.2.176"} | |
#_#_org.clojure/test.check {:mvn/version "0.10.0-alpha3"} | |
org.clojure/core.cache {:mvn/version "0.7.1"} | |
org.clojure/core.memoize {:mvn/version "0.7.1"} | |
}} |
This file contains hidden or 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
{:linters {:mount/defstate {:level :warning}} | |
:hooks {:analyze-call {mount.core/defstate hooks.defstate/defstate}}} |
OlderNewer