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 / 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.

@ultrox
ultrox / Nix
Last active August 2, 2021 16:46
# NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
];
@ultrox
ultrox / search-git-history.md
Created July 28, 2021 11:12 — forked from lyoshenka/search-git-history.md
Search Git commit history for a string and see the diffs

Searching Git commit history

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

@ultrox
ultrox / nixos.md
Created July 23, 2021 03:41 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root
;; PROBLEM:
;; Create function that satisfiy following example
(check-expect (number-list (list "first" "second" "third"))
(list "1: first" "2: second" "3: third"))
(define (number-list n) empty) ; stub
;; #1 Objective:
;; - Satisfy all design elements (or as much as posible)
@ultrox
ultrox / yell-starter.scm
Created December 25, 2020 15:47
yell function - first non guided function
;; yell-starter.rkt
; PROBLEM:
;
; DESIGN a function called yell that consumes strings like "hello"
; and adds "!" to produce strings like "hello!".
;
; Remember, when we say DESIGN, we mean follow the recipe.
;
; Leave behind commented out versions of the stub and template.
@ultrox
ultrox / pluralize.scs
Last active December 25, 2020 15:50
Guided pluralize functions
; Problem: Design a function that pluralizes a given word.
; (Pluralize means to convert the word to its plural form.)
; For simplicity you may assume that just adding s is enough to pluralize a word
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; What is an appropriate signature for this function?
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@ultrox
ultrox / debugger pause beforeunload
Created November 24, 2020 16:28 — forked from carcinocron/debugger pause beforeunload
Chrome: pause before redirect
// Run this in the F12 javascript console in chrome
// if a redirect happens, the page will pause
// this helps because chrome's network tab's
// "preserve log" seems to technically preserve the log
// but you can't actually LOOK at it...
// also the "replay xhr" feature does not work after reload
// even if you "preserve log".
window.addEventListener("beforeunload", function() { debugger; }, false)
@ultrox
ultrox / resources.md
Last active June 30, 2023 22:54
Building Dactyl