Skip to content

Instantly share code, notes, and snippets.

Christophe Belpaire ChristopheBelpaire

Block or report user

Report or block ChristopheBelpaire

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
ChristopheBelpaire / gist:3c94a7ec58ff57b2f3a219aca5d15830
Last active Apr 11, 2017
And example of genserver using ElixirAle with set_int interruptions
View gist:3c94a7ec58ff57b2f3a219aca5d15830
defmodule GpioInput do
use GenServer
@item_in_pin 17
def start_link() do
GenServer.start_link(__MODULE__, [], [])
def init(_) do
View gist:d4c259c13ff6199fe0b6
class Turtle
def initialize(size)
@size = size
@array =! {|line| line =, " ")}
@direction = :RIGHT
@x = 0
@y = 0
ChristopheBelpaire / sublist.exs
Created Dec 12, 2014
My 'sublist' solution for
View sublist.exs
defmodule Sublist do
defp count(l) do
defp count([], size) do
View gist:8c56b237cd81b257dedb
I have : {
this.resource('dashboards', { path: '/' }, function() {
this.resource('dashboardsEdit', {path: ':id'}, function() {
this.route('newWidget', {path: 'new'});
You can’t perform that action at this time.