Skip to content

Instantly share code, notes, and snippets.

View maxdevjs's full-sized avatar
💭
╯︵ ┻━┻

maxdevjs maxdevjs

💭
╯︵ ┻━┻
View GitHub Profile
@morrolinux
morrolinux / instructions.md
Last active July 23, 2024 15:45
FIrefox - Vertical tab bar with auto hide

What to expect

Graphical aspect may vary depending on your choices in following the instructions below, but the end result should look something like this:

immagine

Enable Firefox features

@PJUllrich
PJUllrich / big-o.md
Last active June 28, 2024 20:25
Big-O Time Complexities for Elixir Data Structures

Big-O Time Complexities for Elixir data structures

Map [1]

Operation Time Complexity
Access O(log n)
Search O(log n)
Insertion O(n) for <= 32 elements, O(log n) for > 32 elements [2]
Deletion O(n) for <= 32 elements, O(log n) for > 32 elements
@morrolinux
morrolinux / gist:743aaa0ec933fa68a5b2f82e4308605e
Last active July 10, 2023 22:01
Schermo Wireless a bassa latenza
- Parzialmente ispirato a vari gist sparsi per il web
- Sto ancora facendo tuning dei parametri
# TRASMETTERE:
INTEL e AMD [VAAPI] (libva-mesa-driver):
ffmpeg -f x11grab -s 1920x1080 -framerate 60 -i $DISPLAY -vaapi_device /dev/dri/renderD128 -vf 'format=nv12,hwupload,scale_vaapi=w=1920:h=1080' -c:v h264_vaapi -qp:v 26 -bf 0 -preset superfast -tune zerolatency -b:v 2000K -minrate 2000K -maxrate 2000K -bufsize 512k -f rawvideo udp://192.168.1.222:12345
NVIDIA (CUDA/NVENC/H264) STREAM:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -f x11grab -s 1920x1080 -i $DISPLAY -c:v h264_nvenc -zerolatency 1 -delay:v 0 -preset p1 -tune ull -b:v 2000k -bufsize 512k -maxrate 2000k -qmin 0 -temporal-aq 1 -rc-lookahead 0 -i_qfactor 0.75 -b_qfactor 1.1 -f rawvideo udp://192.168.1.222:12345
@ForgottenProgramme
ForgottenProgramme / todo.py
Created June 26, 2021 08:09
Todo Manager CLI tool (Python) Mahe Iram Khan
#!/usr/bin/env python
import sys
from datetime import datetime
HELP_MESSAGE = """/
Usage :-
$ ./todo add "todo item" # Add a new todo
$ ./todo ls # Show remaining todos
$ ./todo del NUMBER # Delete a todo
$ ./todo done NUMBER # Complete a todo
$ ./todo help # Show usage
@argentinaluiz
argentinaluiz / README.md
Created August 12, 2020 14:06
VSCode - Guia para configuração do ambiente com Docker
@volfegan
volfegan / saturn.pde
Last active June 29, 2020 17:38
Mimics a probe approaching Saturn like planet
//inspired by https://www.dwitter.net/d/10534
//https://twitter.com/VolfeganGeist/status/1273451476556353536
float i, m, n, p, s, t, x, y;
void setup() {
size(1080, 720);
noStroke();
}
void draw() {
background(0);
t+=.05;
@JeremyMorgan
JeremyMorgan / workstationsetup.sh
Last active March 27, 2023 21:12
Setup for my FreeBSD Workstation
# This may be runnable as a script, but keep in mind -y is not always acknowledged.
# These are the drop dead basics
pkg -y install vim
pkg -y install git
pkg -y install chromium
pkg -y install gimp
pkg -y install sudo
# Install Rust
@volfegan
volfegan / circlesTunnelPerfectSpiral.pde
Last active December 28, 2019 03:09
Circles in Circles moving creates a perfect spiral
//reference code for solution of perfect Spiral:
//https://gist.github.com/chandeeland/b69156115e2b5842d83ca9eb3b2bbf2e
//failed trial:: https://gist.github.com/volfegan/e55decad6814e63fb450379c9bf13a61
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009
float a, b, x, y, d, h=600/2, r, s, shrink=0.94;
void setup() {
size(600, 600);
}
void draw() {
background(#EFF2D0);
@maciej-makowski
maciej-makowski / lib.rs
Created November 16, 2019 09:38
JS13K game test
#![no_std]
#![feature(maybe_uninit_ref)]
extern crate alloc;
use core::f64::consts::PI;
//use no_panic::no_panic;
use wasm_bindgen::prelude::*;