Skip to content

Instantly share code, notes, and snippets.

View duckmole's full-sized avatar

Fabrice Nourisson duckmole

  • Ajonc
  • Aix en Provence
View GitHub Profile
@duckmole
duckmole / ssh-copy-github
Created April 11, 2018 07:43
Import all the ssh keys from profile's github to `authorized_keys`.
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
ssh-copy-github
===============
@author: duckmole (inspired by sang)
Import all the ssh keys from profile's github to `authorized_keys`.
Performs deduplication over public keys.
@duckmole
duckmole / game_of_life.hs
Created March 16, 2018 10:21
Game of Life : Haskell implementation
type Position = (Int,Int)
neighbours :: Position -> [Position]
neighbours (x,y) =
[(x+i,y+j) | i <- [-1..1], j <- [-1..1], i /= 0 || j /= 0]
data State = Alive | Dead deriving (Eq)
type World = Position -> State
count_alive_neighbours :: World -> Position -> Int
@duckmole
duckmole / ygritte.js
Last active March 9, 2018 09:12
CodingDojo : Édition Ygritte.js
"use strict";
import chai from "chai";
chai.should();
const expect = require('chai').expect;
const assert = require('chai').assert;
let init_position = Promise.resolve({x:0, y:0});
let move = (direction) => (position) => {
let compute = (resolve, reject) => {
Verifying that +duckmole is my blockchain ID. https://onename.com/duckmole
@duckmole
duckmole / gist:9eed197aa438db2ac25f
Created September 14, 2015 15:05
Keybase proof
### Keybase proof
I hereby claim:
* I am duckmole on github.
* I am duckmole (https://keybase.io/duckmole) on keybase.
* I have a public key whose fingerprint is 9B79 A175 A62E F97D EE2D 17B8 7F67 39EE 026E 8940
To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am duckmole on github.
  • I am duckmole (https://keybase.io/duckmole) on keybase.
  • I have a public key whose fingerprint is 1347 E0EB E52E 115A 01B9 B1CD 1572 0F3F D3B3 E067

To claim this, I am signing this object: