Note: In order to develop in Roc, you need to install the Roc CLI, which includes the Roc compiler and various helpful utilities.
- Download Latest nightly Roc (find assets here)
Or use jq and curl for seamless copy/paste
| 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) | |
| } |
| 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/
$ echo -e "\e[3mitalic\e[23m"
$ 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 () {| /*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.
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.
| # NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, ... }: | |
| { | |
| imports = | |
| [ # Include the results of the hardware scan. | |
| ./hardware-configuration.nix | |
| ]; |
This should be one of the core features of Git, but for some reason it's impossible to figure out how to search for a string in your commit history and see the diffs that that string is in. Here's the best I've come up with:
To find which commits and which files a string was added or removed in:
git log -S'search string' --oneline --name-status
To see the diff of that