Skip to content

Instantly share code, notes, and snippets.

View taxigy's full-sized avatar
🦆
flap flap flap flap

Rishat taxigy

🦆
flap flap flap flap
View GitHub Profile
@taxigy
taxigy / urls
Last active June 10, 2020 20:04
Feeds to read — place in ~/.newsboat/urls
https://erikbern.com/atom.xml management
https://www.ben-evans.com/benedictevans?format=rss industry
https://sreweekly.com/feed/ sre
https://john-millikin.com/changes.xml engineering
https://lethain.com/feeds/ management, engineering
https://keavy.com/feed.xml engineering
https://larahogan.me/feed.xml management
https://svpg.com/feed/ product
https://staffeng.com/rss engineering
https://medium.com/feed/@copyconstruct engineering
@taxigy
taxigy / pre-commit
Created January 5, 2020 19:42
A Git pre-commit hook for Jekyll to add site update date per commit
#!/bin/sh
# Add current date to the "updated" property in _config.yml
# e.g.,
# updated: 2020-01-01T00:00:00.000Z
export CURRENT_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"`
sed 's/updated:.*$/updated: '${CURRENT_DATE}'/' _config.yml > _config.yml2
mv _config.yml2 _config.yml
git add _config.yml
@taxigy
taxigy / .spacemacs
Created January 10, 2019 19:53
Dotfiles
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
@taxigy
taxigy / JIT.md
Last active December 6, 2018 12:49
Notes from FrontendConf 2018
@taxigy
taxigy / utils.js
Last active November 27, 2018 11:24
A minuscule reusable lib in JS to begin working with collections
const mult = (...args) => args.reduce((t, c) => t * c);
const array = (size, value) => new Array(size).fill(value);
const zeros = size => array(size, 0);
const partition = (size, coll) => {
if (size === undefined && coll === undefined) {
return partition;
}
@taxigy
taxigy / fn-comp.clj
Created March 7, 2018 00:03
Haskell vs Clojure: function composition — Learn You a Haskell for Great Good!
;; without composition
(repeat 2 (apply * (map #(* 3 %) (map max [1 2] [4 5]))))
;; with composition
((comp (partial repeat 2)
(partial apply *)
(partial map (partial * 3)))
(map max [1 2] [4 5]))
;; with thread macro
@taxigy
taxigy / what-forces-layout.md
Created August 4, 2017 13:06 — forked from paulirish/what-forces-layout.md
What forces layout/reflow. The comprehensive list.

What forces layout / reflow

All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.

Element

Box metrics
  • elem.offsetLeft, elem.offsetTop, elem.offsetWidth, elem.offsetHeight, elem.offsetParent
  • elem.clientLeft, elem.clientTop, elem.clientWidth, elem.clientHeight
  • elem.getClientRects(), elem.getBoundingClientRect()
@taxigy
taxigy / editor.css
Created July 29, 2017 11:46
Quiver styles
/**
* Text Cell
*/
.text-cell {
font-family: Alegreya, Georgia, serif;
font-size: 17px;
line-height: 1.75;
max-width: 700px;
margin: 0 auto;
@taxigy
taxigy / quotes.txt
Last active July 20, 2017 13:20
Peak Performance
According to Brad Stulberg and Steve Magness, who write about the accomplishments of elite athletes in their new book Peak Performance, there’s a simple phenomenon that allows people to overcome their fears and limitations: a concept called self-transcendence.
While researching their book, Stulberg and Magness interviewed countless scientists and world-renowned athletes. They found that people who exhibited this kind of “superhuman” strength were able to do so only when they chose to focus on a purpose greater than themselves.
Stulberg and Magness refer to this paradigm shift as “ego minimization.” They point to a recent study published in Proceedings of the National Academy of Sciences, where researchers used fMRI scans to see what happens inside the brain of people presented with threatening messages.
https://qz.com/1026992/the-cognitive-trick-that-elite-athletes-use-to-achieve-seemingly-impossible-goals
https://www.amazon.com/dp/B01N1RNP9N/ref=dp-kindle-redirect?_encoding=UTF8&btkr=1&tag=quartz07-20
@taxigy
taxigy / quotes.md
Last active November 25, 2018 22:53
Peak Performance

According to Brad Stulberg and Steve Magness, who write about the accomplishments of elite athletes in their new book Peak Performance, there’s a simple phenomenon that allows people to overcome their fears and limitations: a concept called self-transcendence.

While researching their book, Stulberg and Magness interviewed countless scientists and world-renowned athletes. They found that people who exhibited this kind of “superhuman” strength were able to do so only when they chose to focus on a purpose greater than themselves.