Skip to content

Instantly share code, notes, and snippets.

View mvrozanti's full-sized avatar

Marcelo mvrozanti

View GitHub Profile
this video was created earlier in january from a stupid idea and was driven by sheer determination
despite lacking programming skill. here's a decent description of how it was made (because i am
too lazy to write a github readme):
1. the video
i downloaded the pv off youtube and used ffmpeg to resize it down to 70x54 dimensions (for easy
math calculations, i used 27 firefox windows, 7 tabs each, so it divided nicely). i then used
ffmpeg (again) to splice the source video into 15-second segments to reduce desyncing and cpu load.
2. the frames
@Marileal
Marileal / spaceColonization_myMouse.pde
Last active October 14, 2020 02:03
spaceColonization_myMouse
// based on the code of the coding challenge
// by Daniel Shiffman, accessed on:
// https://youtu.be/kKT0v3qhIQY
// needs to be run on Processing (https://processing.org/)
Tree tree;
float min_dist = 5;
float max_dist = 800;
boolean arboriza = false;
@ispringle
ispringle / i3 config
Last active February 3, 2024 01:10
Arch setup
# ██████╗ █████╗ ██████╗ ██████╗ ██████╗ █████╗ █╗███████╗
# ██╔══██╗██╔══██╗██╔══██╗██╔══██╗██╔════╝ ██╔══██╗╚╝██╔════╝
# ██████╔╝███████║██████╔╝██║ ██║███████╗ ╚█████╔╝ ███████╗
# ██╔═══╝ ██╔══██║██╔══██╗██║ ██║██╔═══██╗██╔══██╗ ╚════██║
# ██║ ██║ ██║██║ ██║██████╔╝╚██████╔╝╚█████╔╝ ███████║
# ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝ ╚═════╝ ╚════╝ ╚══════╝
#
# ██╗██████╗
# ██║╚════██╗
# ██║ █████╔╝
//
// Author: Jonathan Blow
// Version: 1
// Date: 31 August, 2018
//
// This code is released under the MIT license, which you can find at
//
// https://opensource.org/licenses/MIT
//
//
@qpwo
qpwo / halting_proof.py
Created August 6, 2018 22:09
Python proof of undecidability of the halting problem
# Proof of undecidability of halting problem:
from Turing import will_halt
# will_halt(program, input) -> does_halt
def loop_forever(garbage_input):
return loop_forever(garbage_input)
def square_root(n):
return n ** 0.5
@LukeSmithxyz
LukeSmithxyz / urlview.md
Last active May 30, 2023 13:27
Following Terminal Links with URLview

Following Terminal Links with URLview

Link handling

Specify what you want urlview to open your links with in ~/.urlview after COMMAND. I.e. the line below will make urlview open all urls in Firefox.

COMMAND firefox
@htruong
htruong / chroot-to-pi.sh
Last active April 17, 2024 01:20
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@sstativa
sstativa / morse.sh
Created November 14, 2017 01:21
Bash Morse code Generator
#!/bin/bash
#script: Morse
#Written by Ole-Jørgen Næss Kolsrud
#Thanks to crunchbangers damo, ehde and aibo!
#Also, thank you, Internet=P
#Dependencies: bash, beep
@saitoha
saitoha / suckless-st-sixel.diff
Last active December 9, 2023 19:02
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <saitoha@me.com>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <saitoha@me.com>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644
@jahe
jahe / jpa-cheatsheet.java
Last active March 14, 2024 21:33
JPA Cheatsheet
/*
JPA (Java Persistence API)
Transaction Management with an Entity-Mananger:
---
entityManager.getTransaction().begin();
entityManager.persist(<some-entity>);
entityManager.getTransaction().commit();
entityManager.clear();