Plnack FFI example by Mike Fikes:
cc -fPIC -shared -o libnative.so native.c
planck ffi.cljs
Plnack FFI example by Mike Fikes:
cc -fPIC -shared -o libnative.so native.c
planck ffi.cljs
The project can be built using Lumo
npm install -g lumo-cljs
lumo build.cljs
#!/usr/bin/env lumo | |
(ns spacedl.spacedl | |
(:require [cljs.nodejs :as node] | |
[clojure.pprint :refer [pprint]] | |
[clojure.string :as string :refer [join split starts-with?]] | |
[cljs.core :refer [*command-line-args*]])) | |
(node/enable-util-print!) | |
(.on js/process "uncaughtException" #(js/console.error %)) |
from http://www.linuxjournal.com/article/10708
DE: What did you do before you started the Clojure project?
RH: I'm a consultant, so I work on various things. I think the big thing I've done recently is I worked on the national exit poll.
DE: What other languages did you use before inventing your own?
ES7 | core.async |
---|---|
async function() {...} |
(fn [] (go ...)) |
await ... |
(<! ...) |
await* or Promise.all(...) |
(doseq [c ...] (<! c)) |
I hereby claim:
To claim this, I am signing this object:
(ns mindfull.middleware | |
(:require [mindfull.env :refer [defaults]] | |
[clojure.tools.logging :as log] | |
[mindfull.layout :refer [*app-context* error-page]] | |
[ring.middleware.anti-forgery :refer [wrap-anti-forgery]] | |
[ring.middleware.webjars :refer [wrap-webjars]] | |
[ring.middleware.format :refer [wrap-restful-format]] | |
[mindfull.config :refer [env]] | |
[ring.middleware.flash :refer [wrap-flash]] | |
[immutant.web.middleware :refer [wrap-session]] |
(defproject test-app "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.8.0"] | |
[ring-server "0.4.0"] | |
[reagent "0.6.0-rc"] | |
[reagent-forms "0.5.24"] |
(defproject figwheel-test "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:dependencies [[luminus-log4j "0.1.3"] | |
[cljs-ajax "0.5.5"] | |
[secretary "1.2.3"] | |
[reagent-utils "0.1.8"] | |
[reagent "0.6.0-rc"] |
## put in ~/.config/fish/functions/ | |
function handle_input_bash_conditional --description 'Function used for binding to replace && and ||' | |
# This function is expected to be called with a single argument of either & or | | |
# The argument indicates which key was pressed to invoke this function | |
if begin; commandline --search-mode; or commandline --paging-mode; end | |
# search or paging mode; use normal behavior | |
commandline -i $argv[1] | |
return | |
end | |
# is our cursor positioned after a '&'/'|'? |