Skip to content

Instantly share code, notes, and snippets.

Marc-André Tremblay marctrem

Block or report user

Report or block marctrem

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View better_phantom.ml
#!/usr/bin/env ocaml
#use "topfind"
#thread
#require "core"
open Core
type name_unset
type name_set
View phantom_builder.ml
#!/usr/bin/env ocaml
#use "topfind"
#thread
#require "core"
open Core
type name_unset
type name_set
View phantom_builder.ml
#!/usr/bin/env ocaml
#use "topfind"
#thread
#require "core"
open Core
type name_unset
type name_set
View phantom_builder.ml
#!/usr/bin/env ocaml
#use "topfind"
#thread
#require "core"
open Core
type name_unset
type name_set
@marctrem
marctrem / Student_001.json
Last active Apr 30, 2018
Using Avro in FoundationDB
View Student_001.json
{
"type": "record",
"namespace": "gov.ed.schoolofrock",
"name": "Student",
"doc": "Represents a student",
"fields": [
{
"name": "name",
"type": "string"
},
View keybase.md

Keybase proof

I hereby claim:

  • I am marctrem on github.
  • I am marctrem (https://keybase.io/marctrem) on keybase.
  • I have a public key whose fingerprint is 37B8 7FED C17E 1618 E791 0A3B A4F4 2127 2352 1613

To claim this, I am signing this object:

@marctrem
marctrem / dec-repr-senior.clj
Created Aug 12, 2016
Some easy test from Codility
View dec-repr-senior.clj
(defn solution [num]
(let [num (str num)
freq (frequencies num)
biggest (->> (map #(repeat (get freq (char (+ 48 %)) 0) %) (range 9 -1 -1))
flatten
(clojure.string/join "")
read-string)]
(if (> biggest 100000000) -1 biggest)))
View soil_gen.py
#!/usr/bin/python3
'''
The MIT License (MIT)
Copyright (c) 2015 Marc-André Tremblay
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
@marctrem
marctrem / as.py
Last active Aug 29, 2015
AS challenge from IEEE2013
View as.py
#!/usr/bin/python3
import collections
def find_new_paths(graph, destination, current_paths, closed_paths):
new_paths = []
for path in current_paths:
last_element = path[-1]
for next_element in graph[last_element]:
new_path = list(path)
new_path.append(next_element)
You can’t perform that action at this time.