Skip to content

Instantly share code, notes, and snippets.

View 16pxdesign's full-sized avatar

Aleksy Ruszala 16pxdesign

View GitHub Profile
@16pxdesign
16pxdesign / ventoy.json
Created November 22, 2021 15:52
Ventoy auto search images on all hard drives
{
"control": [
{ "VTOY_MENU_TIMEOUT": "60" },
{ "VTOY_DEFAULT_IMAGE": "F6>My boot menu" }
],
"theme": {
"display_mode": "CLI"
}
}
@16pxdesign
16pxdesign / raspi-node-hid.txt
Created November 2, 2020 02:17 — forked from todbot/raspi-node-hid.txt
Installing node-hid on brand new Raspian on Raspberry Pi
# What is our setup
pi@raspberrypi:~ $ cat /etc/debian_version
9.4
pi@raspberrypi:~ $ lsb_release --all
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
Slider 1 + 2 images - https://www.w3schools.com/howto/howto_js_slideshow.asp
Article img- https://images.unsplash.com/photo-1476480862126-209bfaa8edc8?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=1050&q=80
Bootsrap
Instascan QR Copyright © 2016 Chris Schmich https://github.com/schmich/instascan/blob/master/README.md
package com.ruszala.fueltrack.ui.orders.map;
import androidx.fragment.app.FragmentManager;
import androidx.lifecycle.ViewModelProviders;
import android.os.Bundle;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
package com.ruszala.fueltrack.ui.home;
import android.content.Context;
import android.location.LocationManager;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
@helper DisplayTree(List<string> elements) {
}
@DisplayTree(new List<string>());
$.ajax({
xhr: function () {
var xhr = $.ajaxSettings.xhr();
xhr.upload.onprogress = function (e) {
console.log(Math.floor(e.loaded / e.total * 100) + '%');
};
return xhr;
},
contentType: false,
processData: false,
@16pxdesign
16pxdesign / HomeController.cs
Last active April 19, 2019 13:04
HomeController FIX
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Threading.Tasks;
using Application.Models;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
namespace Application.Controllers
@16pxdesign
16pxdesign / HomeController.cs
Created April 18, 2019 10:08
Form using #partialviews and #ajax
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Application.Models;
using Microsoft.AspNetCore.Mvc;
namespace Application.Controllers
{
public class HomeController : Controller
@16pxdesign
16pxdesign / css.css
Created April 17, 2019 13:28
air-datepicker only time-picker #picker #boostrap #jquery
.only-timepicker .datepicker--nav,
.only-timepicker .datepicker--content {
display: none;
}
.only-timepicker .datepicker--time {
border-top: none;
}