Skip to content

Instantly share code, notes, and snippets.

Avatar
💡
Making opensource stuff, or at least trying to

Julien LEICHER YuukanOO

💡
Making opensource stuff, or at least trying to
View GitHub Profile
@YuukanOO
YuukanOO / .drone.yml
Created Mar 28, 2022
Golang Drone CI with local cache
View .drone.yml
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 Jun 23, 2020
Solid sandbox
View sandbox.ts
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 Oct 17, 2018
Ascii table parser in C#
View Program.cs
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 Sep 10, 2018
pytlas medium
View intent.json
{
"intent": "get_forecast",
"slots": {
"date": ["2018-09-16"],
"city": ["Paris"]
}
}
@YuukanOO
YuukanOO / samsungremote.py
Created Sep 30, 2016
Remote control samsung TV
View samsungremote.py
#! /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 Jan 16, 2017
Simple sass base for my personal projects
View _matt.scss
/**
* 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">
*
View CLIServiceInstaller.cs
/// <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
View toolkit.less
/**
* 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 Aug 29, 2015
French stemming algorithm in Ruby
View french_stemmer.rb
# -*- 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.