Here is some of the stuff I did over the years
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (..) | |
type alias Bar = | |
{ baz : String } | |
type alias Foo = | |
{ bar : Bar } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createFactory, Component } from 'react' | |
export const withContext = (childContextTypes, getChildContext) => BaseComponent => { | |
const factory = createFactory(BaseComponent) | |
class WithContext extends Component { | |
getChildContext = () => getChildContext(this.props) | |
render() { | |
return factory(this.props) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -s https://api.github.com/repos/roc-lang/roc/releases|jq -r '.[0].assets [0].browser_download_url'|xargs -n1 -I % curl -L % --output roc_nightly.tar.gz |
based on https://www.reddit.com/r/vim/comments/24g8r8/italics_in_terminal_vim_and_tmux/
- Check if italic font is supported:
$ echo -e "\e[3mitalic\e[23m"
- Also check:
$ infocmp $TERM | grep sitm
sgr0=\E(B\E[m, sitm=\E[3m, smacs=\E(0, smam=\E[?7h,
Solution to https://twitter.com/nolanlawson/status/578948854411878400.
doSomething().then(function () {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*type Hook = {| | |
memoizedState: any, | |
queue: UpdateQueue < any > | null, | |
next: Hook | null, | |
|}; | |
*/ | |
// Whether the work-in-progress hook is a re-rendered hook | |
let numberOfReRenders/*: number */= 0; | |
let isReRender/*: boolean */= false; | |
let firstWorkInProgressHook /*Hook | null */= null; |
Chef is done completally by me, I found an image and did it in css.
When you use tailwind it's micro managment of everything all the time, I first loved it then I realize this is nightmare.
- Additionally I first watched video on it and then replecate it
Ipak sam pronasao nacin da se logujem na Facebook preko laptopa, vec duze vreme sam se izljecio od Facebook ovisnosti pa skoro nikad nisam tu.
Sto se tice karpalnog tunela i mene. Ja nisam imao karpalni tunel, nego su doktori mislili da je 'overuse' sindrom pa sam i ja dobio neki gel koji mi je 'toboze' pomogao.
Prakticno nisam radio pa mi je to vjerovatno najvise pomoglo.