Skip to content

Instantly share code, notes, and snippets.

View ultrox's full-sized avatar
🏠
Working from home

Marko Vujanic ultrox

🏠
Working from home
View GitHub Profile
@ultrox
ultrox / Main.elm
Created July 29, 2023 09:11 — forked from s-m-i-t-a/Main.elm
How to update nested fields in record
module Main exposing (..)
type alias Bar =
{ baz : String }
type alias Foo =
{ bar : Bar }
@ultrox
ultrox / work.md
Last active July 27, 2023 12:33
Some of the work
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)
}
@ultrox
ultrox / download-roc.md
Last active October 1, 2022 16:15
Download Latest Roc

Roc installation guide for x86 Linux systems

How to install Roc

Note: In order to develop in Roc, you need to install the Roc CLI, which includes the Roc compiler and various helpful utilities.

  1. Download Latest nightly Roc (find assets here)

Or use jq and curl for seamless copy/paste

@ultrox
ultrox / download-roc.sh
Created September 23, 2022 22:34
Download Latest Roc
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
@ultrox
ultrox / tmux_italic.md
Created September 6, 2022 22:40 — forked from gyribeiro/tmux_italic.md
enable italic font on tmux
@ultrox
ultrox / promises_answer_sheet.md
Created July 26, 2022 08:02 — forked from nolanlawson/promises_answer_sheet.md
Promises puzzle cheat sheet
@ultrox
ultrox / useMemoUseCallback.js
Last active May 14, 2023 09:55
This is implementation of useMemo and useCallback directly from facebook/react, with some flow types removed and minor code changes.
/*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;
@ultrox
ultrox / stuff_i_did.md
Created January 19, 2022 10:16
Example of stuff I did with css

Positioning

Chef is done completally by me, I found an image and did it in css.

Tailwind (it's nothing like working with 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
@ultrox
ultrox / odgovor.md
Last active January 24, 2022 07:41
Iskustvo sa problemima za ruku

Moje iskustvo sa problemima u kicmi i ruci

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.