Skip to content

Instantly share code, notes, and snippets.

View Mikayex's full-sized avatar

Thomas Laroche Mikayex

View GitHub Profile
@Mikayex
Mikayex / Segmentation.ijm
Created December 12, 2014 11:00
Macro ImageJ
function listOfImages() {
images=newArray(nImages+1);
for (i=1; i<=nImages; i++) {
selectImage(i);
images[i-1]=getTitle;
}
images[nImages]="Aucune";
return images;
}
@Mikayex
Mikayex / PKGBUILD
Last active August 29, 2015 14:11
go-sqlite3 PKGBUILD
# Contributor: Thomas Laroche <tho.laroche@gmail.com>
# Maintainer: Andreas B. Wagner <AndreasBWagner@pointfree.net>
pkgname=go-sqlite3
pkgver=240.4c5aec8
pkgrel=1
pkgdesc="sqlite3 driver for go that using database/sql"
arch=('i686' 'x86_64')
url="https://github.com/mattn/go-sqlite3"
license=('MIT')
depends=('sqlite3' 'go')
@Mikayex
Mikayex / PKGBUILD
Last active August 29, 2015 14:12
gogs-git-dev PKGBUILD
# Contributor: Thomas Laroche <tho.laroche@gmail.com>
# Maintainer: Thomas Fanninger <thomas@fanninger.at>
pkgname=gogs-git-dev
_pkgname=gogs
_branch=dev
pkgver=1915.81a44e4
pkgrel=1
epoch=1
pkgdesc="Gogs(Go Git Service) is a Self Hosted Git Service in the Go Programming Language. This is the current git version from branch ${_branch}."
@Mikayex
Mikayex / main.cpp
Created January 21, 2015 21:06
Démonstration openCV
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
int main(int argc, char** argv) {
Size2i imageSize(200, 200);
Scalar red(0, 0, 255), blue(255, 0, 0);
@Mikayex
Mikayex / README.md
Last active March 19, 2016 17:06
Patch to add sequential downloading option to Transmission
@Mikayex
Mikayex / Makefile
Created March 29, 2016 17:28
Transmission 2.92 sequential (Entware)
#
# Copyright (C) 2009-2014 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=transmission
@Mikayex
Mikayex / borgweb.service
Created August 9, 2016 09:18
Borgweb systemd service
[Unit]
Description=Web front-end for Borg
After=network.target
[Service]
Type=simple
User=root
Group=root
ExecStart=/usr/bin/borgweb
@Mikayex
Mikayex / Image2Sound.py
Created July 31, 2014 13:25
Sound2Image and Image2Sound
#Encode image to sound
#Requirement : Python 2.5, Numpy, audiolab, PIL
import numpy as np
from scikits.audiolab import Format, Sndfile
import math
from PIL import Image
import sys
if len(sys.argv)!=2: