Skip to content

Instantly share code, notes, and snippets.

View combefis's full-sized avatar

Sébastien Combéfis combefis

View GitHub Profile
@charlesvdv
charlesvdv / Cargo.toml
Created March 10, 2017 16:19
An iterator design pattern example written in Rust
[package]
name = "iterator-design-parttern"
version = "0.1.0"
authors = ["Charles Vandevoorde <charles.vandevoorde@hotmail.be>"]
[dependencies]
clap = "2.20.5"
@sCreami
sCreami / 4chan.py
Created February 22, 2016 20:03
🍀 4chan images downloader
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Copyright (c) 2016, Alexis Nootens <me@axn.io>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
@sCreami
sCreami / bot.py
Last active February 7, 2016 13:12
Plain simple IRC bot
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import time
import irc.client
import irc.bot
from collections import deque
VERSION = "1.3"
CANAL = "#DmnI8FbMsngr"
@sCreami
sCreami / primes.c
Last active August 29, 2015 14:19
Factorisation par nombres premiers.
/* Algorithme de test de primalité de Miller-Rabin obtenu depuis le site
* http://xn--2-umb.com/09/11/miller-rabin-primality-test-now-in-64-bit
* sous licence Creative Commons Attribution-ShareAlike 4.0 International
* http://creativecommons.org/licenses/by-sa/4.0/deed.en_US
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
@LeCoupa
LeCoupa / bash-cheatsheet.sh
Last active May 1, 2024 03:45
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04