Skip to content

Instantly share code, notes, and snippets.

View liubko's full-sized avatar

Liubomyr Mykhalchenko liubko

View GitHub Profile
[
{
"_id": "5ca6504e30cf14bd00f94a4f",
"name": {
"first": "Emily",
"last": "Henry"
},
"age": 38,
"eyeColor": "green",
"email": "[email protected]",
[@bs.module]
external encode' :
(
Js.t({..}),
Js.nullable(string),
Js.nullable(string),
Js.nullable(string)
) =>
string =
"querystring/encode";
@liubko
liubko / Layout.re
Created January 30, 2018 12:09
reason dnd
let component = ReasonReact.statelessComponent("Layout");
let make = (~canDrop: bool, ~isOver: bool, ~connectDropTarget, _children) => {
...component,
render: _self =>
connectDropTarget(
<div className="Layout">
<p>
(
ReasonReact.stringToElement(
/*
go to https://www.reddit.com/r/place/
in a browser console paste this code
keep tab alive as long as possible
*/
(function() {
'use strict';
@liubko
liubko / profiles.clj
Created April 12, 2016 21:23 — forked from jamesmacaulay/profiles.clj
My ~/.lein/profiles.clj at the moment.
{:user {:dependencies [[org.clojure/tools.namespace "0.2.3"]
[spyscope "0.1.3"]
[criterium "0.4.1"]]
:injections [(require '(clojure.tools.namespace repl find))
; try/catch to workaround an issue where `lein repl` outside a project dir
; will not load reader literal definitions correctly:
(try (require 'spyscope.core)
(catch RuntimeException e))]
:plugins [[lein-pprint "1.1.1"]
[lein-beanstalk "0.2.6"]
@liubko
liubko / Clojure.sublime-settings
Created April 11, 2016 20:27 — forked from jamesmacaulay/Clojure.sublime-settings
Clojure stuff for Sublime Text 2. Files live in ~/Application Support/Sublime Text 2/Packages/User
// installed Clojure packages:
//
// * BracketHighlighter
// * lispindent
// * SublimeREPL
// * sublime-paredit
{
"word_separators": "/\\()\"',;!@$%^&|+=[]{}`~?",
"paredit_enabled": true,
@liubko
liubko / my-ys.zsh-theme
Created February 22, 2016 18:44
Less verbose version of ys.zsh-theme
# Clean, simple, compatible and meaningful.
# Tested on Linux, Unix and Windows under ANSI colors.
# It is recommended to use with a dark background and the font Inconsolata.
# Colors: black, red, green, yellow, *blue, magenta, cyan, and white.
#
# http://ysmood.org/wp/2013/03/my-ys-terminal-theme/
# Mar 2013 ys
# Directory info.
local current_dir='${PWD/#$HOME/~}'