🦆
CTO of LiveVoice; Consultant for Ruby/Rails projects
-
LiveVoice, Skyrail
- Vienna, Austria
- https://livevoice.io
- https://skyrail.dev
- in/sebi-p
Pinned Loading
-
pca.rb
pca.rb 1# This script implements a very basic PCA (Principal Component Analysis).
2# PCAs are often used as statistical method on data sets to reduce
3# dimensionality / complexity. This is done by finding new features which
4# maximize variance. PCAs can reduce dimensionality down to any number,
5# but lose information within the process. However, most of the time,
-
boids.rb
boids.rb 1# This script simulates flocking behavior of boids (bird-oid objects), based
2# on Craig Reynolds algorithm. Also inspired by: https://eater.net/boids.
3# It could probably be better optimized for performance, e.g. by using
4# Quadtrees. Utilizing the 'matrix' library for vector operations didn't
5# seem to improve speed.
-
phone_unlock_patterns.rb
phone_unlock_patterns.rb 1# This script calculates all possible paths through mobile phone unlock codes.
2# Results are sorted in a depth first manner. There are exactly 389,498
3# valid paths. However, Android only allows paths with length > 3, resulting
4# in only 389,112 paths[1].
5#
-
needleman_wunsch.rb
needleman_wunsch.rb 1# This script is an implementation of the Needleman-Wunsch algorithm for
2# sequence alignment (mostly used for nucleotide or protein sequences in
3# bioinformatics). The algorithm works by first computing a similarity matrix
4# and then backtrack the optimal paths. The scores/penalties for matches,
5# mismatches and gaps can be set. Complexity is O(n*m) where n and m are the
-
pile_of_sand.rb
pile_of_sand.rb 1# This script implements a simple cellular automaton to simulate sand,
2# inspired by the game "Noita". View introduce a grid which holds
3# boolean values (true means there is sand). Then, we define three
4# simple rules how those cells evolve. Finally, we advance this grid
5# over and over to get the simulation.
-
toothpick_sequence.rb
toothpick_sequence.rb 1# This simple script implements the 'Toothpick sequence' from the online
2# encyclopedia of integer sequences: A139250. This pattern was explained
3# in more detail in a Numberphile video.
4#
5# https://oeis.org/A139250
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.