Skip to content

Instantly share code, notes, and snippets.

View onliniak's full-sized avatar

Rafael Pszenny onliniak

View GitHub Profile
@onliniak
onliniak / trekking-avoid-highway
Last active June 4, 2023 18:07
BRouter roads avoid
# *** The trekking profile is for slow travel
# *** and avoiding car traffic, but still with
# *** a focus on approaching your destination
# *** efficiently.
#
# *** Unikaj wszystkich dróg samochodowych.
# *** W pierwszej kolejności wybierz drogi
# *** rowerowe, a w drugiej piesze.
# *** Unikaj miękkiej nawierzchni.
#
@onliniak
onliniak / trekking-avoid-cars.brf
Last active June 2, 2023 16:36
BRouter cars avoid
# *** The trekking profile is for slow travel
# *** and avoiding car traffic, but still with
# *** a focus on approaching your destination
# *** efficiently.
#
# *** Ta modyfikacja unika dróg z ograniczeniem
# *** prędkości powyżej 50 km/h oraz leśnych ścieżek
# *** niedostosowanych do ruchu rowerowego.
# ***
# ***
@onliniak
onliniak / trekking-avoid-steep.brf
Last active June 2, 2023 15:28
BRouter steep avoid
# *** The trekking profile is for slow travel
# *** and avoiding car traffic, but still with
# *** a focus on approaching your destination
# *** efficiently.
#
# *** Prędkość dostosowana do niewytrenowanego
# *** rowerzysty MTB. Nawigacja wybiera jak
# *** najłagodniejsze podjazdy. Lubi prowadzić
# *** drogami z przeciętnym ruchem samochodowym.
# *** Unika dróg "pomarańczowych" i "czerwonych".
@onliniak
onliniak / pnm2pdf.sh
Created September 14, 2022 21:23
XSane
gm convert *.pnm output.pdf
@onliniak
onliniak / demo.dart
Created May 12, 2022 22:05
Flutter RealWorld Demo
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:intl/intl.dart';
class Home extends StatelessWidget {
const Home({Key? key}) : super(key: key);
@override
@onliniak
onliniak / pdf.html
Created March 21, 2022 08:27
Czytnik PDF
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object
<object type="application/pdf"
data="/media/examples/In-CC0.pdf"
width="250"
height="200">
</object>
@onliniak
onliniak / _product.liquid
Created February 21, 2022 14:25
Liquid partials
# cat /templates/_product.liquid
ABC
@onliniak
onliniak / MainActivity.kt
Last active September 15, 2021 18:53
Jetpack Compose + Router + Flow
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val context: Context = this
val isWordPressKnew = runBlocking { context.settingsDataStore.data.first().websiteUrl }
setContent {
if(isWordPressKnew.isNullOrEmpty()){
@onliniak
onliniak / camera.kt
Last active March 22, 2022 09:24
Android Compose Jetpack
package io.github.onliniak.qr_scanner
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.rememberLauncherForActivityResult
import androidx.activity.compose.setContent
import androidx.activity.result.contract.ActivityResultContracts
import androidx.activity.result.launch
import androidx.compose.material.Button