Skip to content

Instantly share code, notes, and snippets.

View yogthos's full-sized avatar
🤷‍♂️

Dmitri Sotnikov yogthos

🤷‍♂️
View GitHub Profile

The project can be built using Lumo

npm install -g lumo-cljs
lumo build.cljs
@yogthos
yogthos / gallery.cljs
Last active March 30, 2024 17:36
script to download walpapers from windowsonearth.org
@yogthos
yogthos / RichHickeyInterview.md
Created April 25, 2017 00:38
An in-depth look at the new language with Rich Hickey, Creator of Clojure

from http://www.linuxjournal.com/article/10708

An in-depth look at the new language with Rich Hickey, Creator of Clojure

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?

@yogthos
yogthos / es7coreasync.md
Created March 21, 2017 19:06 — forked from shaunlebron/es7coreasync.md
es7 vs core.async

Comparing ES7 and core.async

ES7 core.async
async function() {...} (fn [] (go ...))
await ... (<! ...)
await* or Promise.all(...) (doseq [c ...] (<! c))

Keybase proof

I hereby claim:

  • I am yogthos on github.
  • I am yogthos (https://keybase.io/yogthos) on keybase.
  • I have a public key whose fingerprint is 2D35 E6C9 EB55 339A 3576 3A41 11A5 9C30 B38C FA7D

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"]
@yogthos
yogthos / fish_user_key_bindings.fish
Created March 24, 2016 23:32
Fish key bindings
## 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 '&'/'|'?
@yogthos
yogthos / gist:520ca019cf78ac12c6df
Last active February 13, 2016 05:00
sea monster
_..--+~/@-@--.
- ( ^ )
==~ ....
- --=.\ \
-~ _. \ \ _\
- - ,__,
=
' =
: : .