I hereby claim:
- I am oakmac on github.
- I am oakmac (https://keybase.io/oakmac) on keybase.
- I have a public key ASBq3O96XUXHblMPchU-ST63SOPAvBVkY_7X1GubvsVLuwo
To claim this, I am signing this object:
;; JS: | |
;; $('html,body').animate({ scrollTop: element.offset().top }, 'slow'); | |
(def $ js/jQuery) | |
(let [js-anim-dest (js-obj "scrollTop" (aget (.offset element) "top"))]) | |
(.animate ($ "html,body") js-anim-dest "slow") | |
diff --git a/parinferlib.el b/parinferlib.el | |
index f5ddd7d..fa694fb 100644 | |
--- a/parinferlib.el | |
+++ b/parinferlib.el | |
@@ -627,15 +627,14 @@ | |
(defun parinferlib--init-indent (result) | |
(let ((mode (gethash :mode result)) | |
(in-str? (gethash :isInStr result))) | |
- (case mode | |
- ((:indent) |
static PARENS: HashMap = HashMap::new(); | |
fn set_parens() { | |
PARENS.insert("{", "}"); | |
PARENS.insert("}", "{"); | |
PARENS.insert("[", "]"); | |
PARENS.insert("]", "["); | |
PARENS.insert("(", ")"); | |
PARENS.insert(")", "("); | |
} |
use std::collections::HashMap; | |
static PARENS: HashMap = HashMap::new(); | |
PARENS.insert("{", "}"); | |
PARENS.insert("}", "{"); | |
PARENS.insert("[", "]"); | |
PARENS.insert("]", "["); | |
PARENS.insert("(", ")"); | |
PARENS.insert(")", "("); |
;; var aphrodite = require('aphrodite'); | |
(def js-aphrodite (js/require "aphrodite")) | |
;; aphrodite.StyleSheet.extend([foo, bar]); | |
(defn aphrodite-extend [args] | |
(apply (aget js-aphrodite "StyleSheet" "extend") args)) |
<script> | |
(function() { | |
var useDevScript = (document.location.search.indexOf('devscript=true') !== -1); | |
var src = useDevScript ? 'js/FULL-VERSION.js' : 'js/MINIFIED-VERSION.js'; | |
var scriptEl = document.createElement('script'); | |
scriptEl.type = 'text/javascript'; | |
scriptEl.src = src; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(scriptEl, s); | |
})(); |
I hereby claim:
To claim this, I am signing this object:
Filename including extension...
field, put your language name plus .edn
.
ja.edn
for Japanesehttps://gist.github.com/YOUR_USERNAME/
Some follow-up questions and answers from this gist. -- C. Oakman, 05 Oct 2020
when I said CDN/server I meant are you keeping the compiled javascript artifacts in your UI server OR do you keep them on something like S3 and then
A friend emailed me some questions related to ClojureScript for discussion. I thought these answers might be helpful in a public forum. -- C. Oakman, 27 Sep 2020
Do you serve your CLJS/html from CDN or from same domain as application server?
In general I serve static assets from the same domain as the application server.