Skip to content

Instantly share code, notes, and snippets.

View thibaultlaurens's full-sized avatar

Thibault Laurens thibaultlaurens

View GitHub Profile

Keybase proof

I hereby claim:

  • I am thibaultlaurens on github.
  • I am thibaultlaurens (https://keybase.io/thibaultlaurens) on keybase.
  • I have a public key ASB6xxrR2iOtmWISKnPJwu309iojl7aUUSc2U9dHCx3EaAo

To claim this, I am signing this object:

@thibaultlaurens
thibaultlaurens / licenses.go
Last active February 28, 2019 14:05
Read the go lock files from all the repos of a given org, find the deps licenses from github api and dump the result in a csv file
package main
import (
"bufio"
"encoding/csv"
"encoding/json"
"errors"
"fmt"
"io/ioutil"
"log"
@thibaultlaurens
thibaultlaurens / block.rb
Last active May 1, 2020 08:45
Oxford Brookes MSc - Ruby YARV disassembly
respond_to do |format|
format.html #"send index.html"
format.json {render json: @currencies} #send user currencies info, in .json format
end
@thibaultlaurens
thibaultlaurens / solarsystem.pl
Last active May 1, 2020 08:42
Oxford Brookes MSc - Coursework minor program - Haskell
/* solar system database */
star(sun).
/* name, type, distance_from_sun(UA), earth_masses */
planet(jupiter, gas, 5.2, 318).
planet(saturn, gas, 9.5, 95).
planet(uranus, gas, 19.6, 14).
planet(neptune, gas, 30, 17).
planet(earth, terrestrial, 1, 1).
@thibaultlaurens
thibaultlaurens / syntax.sql
Last active May 1, 2020 08:38
Oxford Brookes MSc - SQL cheatsheet
* CREATE TABLE table_name (attribute1 type, ... , attributeN type)
* Types: char(n), varchar(n), int, smallint, real, DATE, TIME, DATETIME
* INSERT INTO table_name VALUES ( ... )
* DROP TABLE table_name
* ALTER TABLE table_name ADD COLUMN new_column type
ALTER TABLE table_name DROP COLUMN column type
@thibaultlaurens
thibaultlaurens / generic.cs
Last active May 1, 2020 08:45
Oxford Brookes MSc - C# disassembly
interface ICustomInterface
{ }
public class Class2 : ICustomInterface
public class CustomList<T> where T : ICustomInterface
{
void AddToList(T element)
{}
}