Skip to content

Instantly share code, notes, and snippets.

@Krisztiaan
Krisztiaan / vehicles.json
Created December 1, 2022 21:26
ShareNow vehicles
[{"id":"ZFA3120000JF09250","plate":"STB960","geoCoordinate":{"latitude":47.55918,"longitude":19.03503},"fuellevel":100,"address":"Budapest, Kunigunda útja 43","locationId":"55","buildSeries":"FIAT_500","fuelType":"GASOLINE","primaryColor":"425U","hardwareVersion":"HW43","generation":"UNDEFINED","imageUrl":"https://app.share-now.com/api/rental/rental-assets/vehicles/{density}/fiat_500_italian_blue.png","transmission":"GM","rank":1,"macAddress":"CC:F9:57:87:7B:37","vehicleCode":"2FDAAC286E844802","seats":4,"vin":"ZFA3120000JF09250","locationIdAsLong":55},{"id":"WBY8P210107D60590","plate":"RVZ976","geoCoordinate":{"latitude":47.50424,"longitude":19.1518},"fuellevel":93,"address":"Budapest, Kerepesi út 73","locationId":"55","buildSeries":"BMW_I3","fuelType":"ELECTRIC","primaryColor":"B85U","hardwareVersion":"HW42","generation":"UNDEFINED","imageUrl":"https://app.share-now.com/api/rental/rental-assets/vehicles/{density}/bmw_i3_capparis_white.png","transmission":"GA","rank":1,"seats":4,"vin":"WBY8P210107D60590","lo
@Krisztiaan
Krisztiaan / vehicles.json
Created December 1, 2022 18:57
ShareNow vehicles
[{"id":"ZFANF2D12MP940730","plate":"HH-SX7584","geoCoordinate":{"latitude":53.5708,"longitude":10.02626},"fuellevel":66,"address":"Winterhuder Weg 2, 22085 Hamburg","locationId":"3","buildSeries":"FIAT_500_X","fuelType":"GASOLINE","primaryColor":"SL-[296]","hardwareVersion":"HW43","generation":"UNDEFINED","imageUrl":"https://app.share-now.com/api/rental/rental-assets/vehicles/{density}/fiat_500_x_gelato_white.png","transmission":"GA","rank":1,"macAddress":"CC:F9:57:87:7F:FD","vehicleCode":"150A905DD2882202","seats":5,"vin":"ZFANF2D12MP940730","locationIdAsLong":3},{"id":"ZFANF2D17MP944093","plate":"HH-SX7836","geoCoordinate":{"latitude":53.59125,"longitude":10.07922},"fuellevel":74,"address":"Gartenstadtweg 81A, 22049 Hamburg","locationId":"3","buildSeries":"FIAT_500_X","fuelType":"GASOLINE","primaryColor":"SL-[296]","hardwareVersion":"HW43","generation":"UNDEFINED","imageUrl":"https://app.share-now.com/api/rental/rental-assets/vehicles/{density}/fiat_500_x_gelato_white.png","transmission":"GA","rank":1,"macA
@Krisztiaan
Krisztiaan / npu.user.js
Created May 24, 2022 18:31
Neptun PowerUp! de ki lehet szűrni az opcionális tárgyakat.
// ==UserScript==
// @name Neptun PowerUp!
// @namespace http://example.org
// @description Felturbózza a Neptun-odat
// @version 2.3.0
// @downloadURL https://github.com/solymosi/npu/releases/latest/download/npu.user.js
// @include https://*neptun*/*hallgato*/*
// @include https://*neptun*/*Hallgatoi*/*
// @include https://*neptun*/*oktato*/*
// @include https://*hallgato*.*neptun*/*
This file has been truncated, but you can view the full file.
$GPRMC,093858.5,V,4729.20233,N,01904.79403,E,,,080422,004.1,E,N*13
$GPGGA,093858.5,4729.20233,N,01904.79403,E,0,00,,,M,,M,,*44
$GPVTG,,T,,M,,N,,K,N*2C
$GPRMC,093858.6,V,4729.20233,N,01904.79403,E,,,080422,004.1,E,N*10
$GPGGA,093858.6,4729.20233,N,01904.79403,E,0,00,,,M,,M,,*47
$GPVTG,,T,,M,,N,,K,N*2C
$GPRMC,093858.7,V,4729.20233,N,01904.79403,E,,,080422,004.1,E,N*11
$GPGGA,093858.7,4729.20233,N,01904.79403,E,0,00,,,M,,M,,*46
$GPVTG,,T,,M,,N,,K,N*2C
@Krisztiaan
Krisztiaan / clean_workflows.sh
Created February 13, 2022 14:02
Delete all workflow runs from disabled actions, so GitHub will not show them in actions anymore.
#!/bin/bash
if ! command -v gh &>/dev/null; then
echo "The GitHub CLI <gh> could not be found."
read -p "Do you want to install it? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]; then
echo "Installing GitHub CLI..."
if ! command -v brew &>/dev/null; then
echo "The <brew> command could not be found."
import React, { useRef, useImperativeHandle } from 'react';
import type { HostComponent } from 'react-native';
import {
NativeModules,
findNodeHandle,
Platform,
UIManager,
requireNativeComponent,
} from 'react-native';
type AnyValue =
| { [key: string]: AnyValue }
| { [key: number]: AnyValue }
| AnyValue[]
| string
| number
| boolean
| null
| undefined
| symbol
@Krisztiaan
Krisztiaan / package.json
Last active April 1, 2021 13:57
Simple hook to use Fuse.js
{
"name": "use-fuse",
"version": "1.0.1",
"main": "useFuse.ts"
}
@Krisztiaan
Krisztiaan / package.json
Created March 12, 2021 08:56
Simple debounce hook
{
"name": "use-debounce",
"version": "1.0.0",
"main": "useDebounce.ts"
}
import { useState, useEffect } from 'react'
export default function useDebouncedState<T>(value: T, delay: number) {
const [debouncedValue, setDebouncedValue] = useState<T>(value)
useEffect(() => {
const handler = setTimeout(() => setDebouncedValue(value), delay)
return () => clearTimeout(handler)
}, [value, delay, setDebouncedValue])