Skip to content

Instantly share code, notes, and snippets.

View sbaus42's full-sized avatar
💭
_

Santiago Baus sbaus42

💭
_
View GitHub Profile
if _name_ == '_main_':
a = []
for _ in range(int(raw_input())):
name = raw_input()
score = float(raw_input())
a.append([name,score])
sorted_a = sorted(a, key=lambda x: x[1])
println('hello world')
@sbaus42
sbaus42 / circeDecoding.sc
Last active September 19, 2018 05:23
Case class decoding
import io.circe.generic.auto._
import io.circe.syntax._
import io.circe._
case class Person(name: String)
case class Greeting(salutation: String, person: Person, eclamationMarks: Int)
case class Fucker(state: Map[String, List[String]])
case class Foo(value: String)
module StringCalculator
class << self
def add string_numbers = nil
return 0 unless string_numbers
delimeters = get_delimeters string_numbers
num_array = string_numbers.split delimeters
raise 'negative numbers not allowed' if num_array.join().match(/-[0-9]/)

Keybase proof

I hereby claim:

  • I am sbaus42 on github.
  • I am santi (https://keybase.io/santi) on keybase.
  • I have a public key ASCeqFMwfNKHfjP2iokZkbTC8Vp42PfO1ZVlnPgX60NJ0Qo

To claim this, I am signing this object: