Skip to content

Instantly share code, notes, and snippets.

View ashwinvidiyala's full-sized avatar

Ashwin Vidiyala ashwinvidiyala

View GitHub Profile
@rogeliorv
rogeliorv / base-2.py
Last active November 24, 2022 03:16
Codility challenge get a base -2 number with the least significative bit at the left.
# Codility challenge for base -2 with the least significative bit at the left.
#
# In base -2 integers are represented by sequences of bits in the following way.
# Bits are ordered from the least to the most significant. Sequence B of N bits
# represents the number: sum(B[i] * (-2)^i for i = 0..N-1). The empty sequence represents 0.
# Note that such representation is suitable for both positive and negative numbers.
# NOTE: Remember negative division returns the floor. http://python-history.blogspot.mx/2010/08/why-pythons-integer-division-floors.html
@gbuesing
gbuesing / ml-ruby.md
Last active February 28, 2024 15:13
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems