Skip to content

Instantly share code, notes, and snippets.

View sudodoki's full-sized avatar

Джон, просто Джон sudodoki

View GitHub Profile
@sudodoki
sudodoki / atom_clojure_setup.md
Created November 5, 2016 17:49 — forked from jasongilman/atom_clojure_setup.md
This describes how I setup Atom for Clojure Development.

Atom Clojure Setup

This describes how I setup Atom for an ideal Clojure development workflow. This fixes indentation on newlines, handles parentheses, etc. The keybinding settings for enter (in keymap.cson) are important to get proper newlines with indentation at the right level. There are other helpers in init.coffee and keymap.cson that are useful for cutting, copying, pasting, deleting, and indenting Lisp expressions.

Install Atom

Download Atom

The Atom documentation is excellent. It's highly worth reading the flight manual.

@sudodoki
sudodoki / styles.less
Created September 29, 2016 19:25
Atom styles for fira code fonts and current line disabling ligatures
atom-text-editor::shadow {
.line.cursor-line {
text-rendering: optimizeSpeed;
-webkit-font-feature-settings: normal;
font-feature-settings: normal;
font-family: fira mono;
}
}
@sudodoki
sudodoki / styles.css
Created August 23, 2016 16:23 — forked from kentcdodds/styles.css
Editor adjustments for workshops/talks
/* workshop/talk adjustments */
.list-group .icon::before,
.list-tree .icon::before,
.list-tree.has-collapsable-children .list-nested-item.collapsed > .list-item::before,
.list-tree.has-collapsable-children .list-nested-item > .list-item::before,
.tree-view {
font-size: 21px;
min-width: 21px;
}
@sudodoki
sudodoki / README.md
Last active August 24, 2016 18:16
Placeholdit executable util for creating placeholder images in console

Placeholdit, command line version

Note:

Could replace all the 'Insert {{title}}.jpg here' with short and simple 'X × Y', by replacing 3 lines of ctx.fillText with

ctx.fillText(width + '×' + height, width / 2, height / 2 - fontSize * 0.1);

Installation

@sudodoki
sudodoki / hour-sum.js
Created June 9, 2016 06:39
Youtrack hour/day/week notation converter to hours. Assumption is you never have more than one digit (for regexp split to work correctly)
const DURATION = {
"d": 6,
"w": "30"
};
[
"?",
"2h",
function presenter
set result (fish_prompt)
if [ $result = ">" ]
exec fish
else
function fish_prompt; echo ">"; end; funcsave fish_prompt
end
end
@sudodoki
sudodoki / Podcast-list.md
Created May 24, 2016 09:02
This is just a small list compiled from Google's first page results I would be trying to listen to and evaluate. Generally interested in: + Some topics: CompSci | Algorithms | Compilers | ML/BD (as aside, not primary interest) + Easy to listen, so this can work as background for long walk, etc + Audio being of appropriate quality
@sudodoki
sudodoki / latency.txt
Created October 26, 2015 03:39 — forked from jboner/latency.txt
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers
--------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns
Send 1K bytes over 1 Gbps network 10,000 ns 0.01 ms
Read 4K randomly from SSD* 150,000 ns 0.15 ms
["#ffffff", "#1e1e1e", "#ecd843", "#6e0888", "#db702c", "#97cae5", "#b82035",
"#c2c284", "#808082", "#61ad49", "#d37fb0", "#466bb2", "#d98966", "#481095",
"#dfaa36", "#91008e", "#e7f45e", "#7d1a15", "#94b741", "#6d3816", "#d03229",
"#2b3916"]
@sudodoki
sudodoki / branch-cleanup.sh
Created August 10, 2015 12:49
Delete all local branches except for master/dev
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d