Skip to content

Instantly share code, notes, and snippets.

@rofrol
rofrol / Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt.diff
Created May 19, 2019 11:56
Changes to original Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt
```diff
diff --git a/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt b/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt
index 11a1f37..19cc58e 100644
--- a/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt
+++ b/Green.Book.2018.2160p.UHD.BluRay.X265-IAMABLE.srt
@@ -1,4 +1,4 @@
-1
+1
00:01:22,886 --> 00:01:27,734
Witaj Nowy Jorku! Jestem Bobby Rydell
@rofrol
rofrol / migration_from_actix-web-0.7.19_to_1.0.0-beta.5.md
Created May 17, 2019 16:28
migration_from_actix-web-0.7.19_to_1.0.0-beta.5.md
diff --git a/mock/server/src/main.rs b/mock/server/src/main.rs
index 91dbf9c7..f53b9dd6 100644
--- a/mock/server/src/main.rs
+++ b/mock/server/src/main.rs
@@ -1,4 +1,3 @@
-extern crate actix;
extern crate actix_web;
extern crate bytes;
extern crate env_logger;
@rofrol
rofrol / rofrol.itermcolors
Created December 15, 2018 05:11
Ubuntu wsl colors
<--
Screen Text 0 0 0
Screen Background 255 255 255
Popup Text 255 255 255
Popup Background 0 0 0
255 255 255
0 0 178
0 166 0
@rofrol
rofrol / index.js
Last active June 6, 2018 10:53
Fixed to Absolute Important user script
// ==UserScript==
// @name Fixed to Absolute Important
// @namespace https://greasyfork.org/en/scripts/369282-fixed-to-absolute-important
// @description Stops elements from following you as you scroll down the page
// @version 1
// ==/UserScript==
// https://gist.github.com/rofrol/a52a36102daf59eeef91c715c0ae402b
// Based on https://alisdair.mcdiarmid.org/kill-sticky-headers/
@rofrol
rofrol / moje wnioski macbook vs.md
Created April 26, 2018 13:00
moje wnioski macbook vs
  • macbook ma najlepszy touchpad
  • oprogramowania mniej niż na Windows, a jeśli już to płatne. Ale to i tak lepiej niż Linux gdzie jest stary Skype, nie można udostępniać ekranu w Slacku, nie ma wielu programów. Czasami jest jakiś program na maca którego nie ma na Windows jak np. Sketch.
  • przełączanie między aplikacjami: Mi na przykład bardziej pasuje zmiana programu przez alt+tab niż przesuwanie trzema palcami lub pokazanie wszystkich okien. Dodatkowo to pokazanie nie zawsze pokazuje miniatury. Nie wiem od czego to zależy. Dodatkowo przełączanie cmd+tab na macu grupuje aplikacje zamiast pokazać wszystkie okna. Jest hyperswitch ale on nie zachowuje stałej kolejności choć może jest to w opcjach. Dodatkowo niektóre aplikacje nie pokazują się przy używaniu hyperswitch jak są w fullscreen, np. zoom.us.
  • zewnętrzny monitor: nie da się z domyślnym oprogramowaniem zrobić only extrnal. Zainstalowałem jeden otwartoźródłowy i polecany, to wyłączył mi dwa ekrany
  • na zewnętrznym monitorze znika mi czasami kursor - musz
@rofrol
rofrol / Main.elm
Created April 11, 2018 13:21
Full example from http://folkertdev.nl/blog/elm-messy-json-value/ updated to elm 0.18
module Main exposing (..)
import Html exposing (text)
import Json.Decode as Decode exposing (..)
type FormField
= InputField Input
| DecimalField Decimal
| SpecialField String
@rofrol
rofrol / flatten.js
Last active March 27, 2018 11:52
flatten.js
/*
Write some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].
Your solution should be a link to a gist on gist.github.com with your implementation.
When writing this code, you can use any language you're comfortable with. The code must be well tested and documented if necessary, and in general please treat the quality of the code as if it was ready to ship to production.
Try to avoid using language defined methods like Ruby's Array#flatten.*
@rofrol
rofrol / jsx-cheatsheet.md
Last active December 13, 2020 08:51
jsx cheatsheet

Mój krótki poradnik o JSX

Wstęp

To nie jest style guide, więc można za pewne ładniej to napisać. Poradnik ma zwięźle pokazać działanie JSX.

JSX

JSX to jakby HTML. Składnia XML, ale zmieszany z javascriptem: