Skip to content

Instantly share code, notes, and snippets.

View YuukanOO's full-sized avatar
💡
Working on seelf!

Julien LEICHER YuukanOO

💡
Working on seelf!
View GitHub Profile
@YuukanOO
YuukanOO / .drone.yml
Created March 28, 2022 07:18
Golang Drone CI with local cache
kind: pipeline
type: docker
name: default
steps:
- name: restore-cache
image: meltwater/drone-cache
pull: true
settings:
backend: filesystem
restore: true
@YuukanOO
YuukanOO / sandbox.ts
Last active June 23, 2020 14:06
Solid sandbox
import { createDocument, fetchDocument, TripleSubject } from "tripledoc";
interface SchemaDefinition {
write(subject: TripleSubject, value: any): void;
read(subject: TripleSubject): any;
}
class StringDefinition implements SchemaDefinition {
private readonly predicates: string[];
@YuukanOO
YuukanOO / Program.cs
Last active October 17, 2018 15:33
Ascii table parser in C#
class Program
{
static void Main(string[] args)
{
using (var package = new ExcelPackage(File.Create(@"C:\Temp\test.xlsx")))
{
var sheet = package.Workbook.Worksheets.Add("Sandbox");
var parser = new TableParser(1, 1);
@YuukanOO
YuukanOO / intent.json
Last active September 10, 2018 19:36
pytlas medium
{
"intent": "get_forecast",
"slots": {
"date": ["2018-09-16"],
"city": ["Paris"]
}
}
@YuukanOO
YuukanOO / samsungremote.py
Created September 30, 2016 19:22
Remote control samsung TV
#! /usr/bin/python
# Title: samsungremote.py
# Author: Asif Iqbal
# Adapted By: Julien LEICHER
# Date: 05APR2012
# Info: To send remote control commands to the Samsung tv over LAN
# TODO:
import sys
import socket
@YuukanOO
YuukanOO / _matt.scss
Last active January 16, 2017 08:17
Simple sass base for my personal projects
/**
* matt.scss - v0.3.0
*
* Matt is a simple sass declaration file which aims to provides a solid foundation
* for BEM based stylesheets by providing variables with semantic names.
*
* You may also link the Roboto font and material icons:
* - <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900" rel="stylesheet">
* - <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
*
/// <summary>
/// Le fonctionnement est très simple, côté Program.cs du service (donc dans le Main):
///
/// if (CLIServiceInstaller.Try("servicename"))
/// return;
///
/// Les paramètres fournit sont les commandes prises en comptes parmis :
/// - user
/// - password
/// - servicename
@YuukanOO
YuukanOO / toolkit.less
Created April 8, 2015 11:19
Less toolkit
/**
* This toolkit is developed and maintained by Julien Leicher (http://julien.leicher.me).
* Since I found myself rewriting it, I've decided to make a small toolkit.
*/
/**
* -----------------------------------------------------------------------------
* Needed variables
* -----------------------------------------------------------------------------
*/
@YuukanOO
YuukanOO / french_stemmer.rb
Last active August 29, 2015 14:02
French stemming algorithm in Ruby
# -*- encoding: utf-8 -*-
#
# Implementation of the stemming algorithm at http://snowball.tartarus.org/algorithms/french/stemmer.html
# Based on the javascript port made by Kasun Gajasinghe http://snowball.tartarus.org/otherlangs/french_javascript.txt
#
# Testing:
# It uses the file voc.txt (http://snowball.tartarus.org/algorithms/french/voc.txt)
# and compares results with output.txt (http://snowball.tartarus.org/algorithms/french/output.txt)
#
# At the time being, it fails for 242 words on 20403, feel free to edit this gist.