Skip to content

Instantly share code, notes, and snippets.

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

Dmitri Sotnikov yogthos

🤷‍♂️
View GitHub Profile
@yogthos
yogthos / regex-text.clj
Created August 24, 2015 18:07
ClojureScript re-find and clojure.string/replace inconsistency
;;Clojure
(re-find #"(?i)ol" "HOLA")
;=>"OL"
(clojure.string/replace "HOLA" #"(?i)ol" "EY")
;=>"HEYA"
;;ClojureScript
(re-find #"(?i)ol" "HOLA")
;=>"OL"
(clojure.string/replace "HOLA" #"(?i)ol" "EY")
@yogthos
yogthos / The Technical Interview Cheat Sheet.md
Last active October 29, 2017 06:27 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
@yogthos
yogthos / help-wanted.md
Created October 7, 2015 00:07
projects with some labeled low hanging fruit issues
@yogthos
yogthos / gist:520ca019cf78ac12c6df
Last active February 13, 2016 05:00
sea monster
_..--+~/@-@--.
- ( ^ )
==~ ....
- --=.\ \
-~ _. \ \ _\
- - ,__,
=
' =
: : .
@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 '&'/'|'?
(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"]
(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"]
(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]]

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:

@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))