Skip to content

Instantly share code, notes, and snippets.

Jérôme Foray Meroje

Block or report user

Report or block Meroje

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@riking
riking / beancount-export-patreon.js
Last active Aug 15, 2019
Beancount exporter for Patreon transactions.
View beancount-export-patreon.js
(function() {
// Copyright 2018 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@Jobarion
Jobarion / THX.java
Last active Jul 21, 2019
THX Deep Note Generator
View THX.java
/*
MIT License
Copyright (c) 2018 Jonas Balsfulland
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@enricofoltran
enricofoltran / main.go
Last active Oct 18, 2019
A simple golang web server with basic logging, tracing, health check, graceful shutdown and zero dependencies
View main.go
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"
@k1r0s
k1r0s / my-selector.tsx
Last active Oct 22, 2017
Preact native <select> implementation with search feature
View my-selector.tsx
/**
* <MySelector
* options={exampleArr}
* printBy="name"
* selected={this.selectedOpt}
* onOptionSelected={(opt) =>
* this.mySelectorValueChange(opt)}
* />
*/
import { h, Component } from "preact";
@abraham
abraham / book.txt
Created Jun 3, 2017
Factorio 16 blue belt green circuit outpost
View book.txt
0eNq9vd2SHceRdfkqNFwTbSf+MjJ1N3Mx8wIzV21tbSBYTZUJBDAAqK9lbXr3qQIBsCierLP2Cum7abZAYruH5/H0SI/tO/7nxQ9vfrl7/+H+7af//OHdu7+8+NP//PYnH1/86d+f/M/Hf3f/+t3bX//44/1Pb1+9efyzT397f/fiTy/uP939/OL7F29f/fz4v16/+vDTu5f/69VP796++Pv3L+7f/nj33y/+VP7+/c2/+fHTq9d/eXn/9uPdh093H5785Yr+8t3dm5ev/3z38dOTv9nA37z77/cf7j5+fPnpw6u3H9+/+/Dp5Q93b56C9L//x/cv7t5+uv90f/drCD7/j7/959tffv7hwdE/lVtY3794/+7jw19/CMmDFw+QL9vxb+P7F397+P9K+7fxYOvH+w93r3/9Lz4v9x9MVGFiz0w0YWJmJrowsWUmhjAxMhObMNEzE1OYaJmJXZiomYlDmCiZiXIRNi6hDZHfNczvIhK8hgleRIbXMMOLSPEapngROV7DHC8iyWuYgUVkeQ1fJEWkeQ3TvIg8r2GeV5HnNczzKvK8pHVc5HkJ87yKPC9hnleR5yXM8yryvIR5XkWelzDPq8jzEuZ5FXlewjyvIs9LmOdN5HkJ87yJPA/TvIk0DzOwiSxPvwhEkoc53kSOhyneRIqH2dfMfj00YQp5aMLkd/gBKNI7zO6eZ3dqIU/uNEx5bofPuuepHf5ge57ZYdb1PLHDV0fP8zp8//U8rdOeS57VYZkYeVKH5XTkOZ1uCoZI6jCrR57V6RZt5Gmd7jRHntfphnnkiZ3u+0ee2enny8hTO/3SG3lupx96W57cz30T92sm1vrnDyny92uodQm1nKC2pbZpRSHvSzbOPB9L3Vjm+bbUjWU25lI3ltnYl7qxzMax1I1FNuZlqVPKbJSlji+zUZfWUZCNttTxZevoSx1fto6xZIOtY607ztYxl7rKbB1r3XFmY607jmK1X5bWwWyUpQ48itVelzrwzEZbWgeLVV9aB7Mxlk4
@sparr
sparr / read_entities.py
Created May 17, 2017
Factorio python lua data raw entities
View read_entities.py
#!/usr/bin/env python3
import os
import lupa
DATA_PATH = "/Users/crisher/Library/Application Support/Steam/steamapps/common/Factorio/factorio.app/Contents/data"
lua = lupa.LuaRuntime(unpack_returned_tuples=True)
def lua_run_file(file):
@RomkeVdMeulen
RomkeVdMeulen / pollers.ts
Last active Apr 10, 2017
Simple poller library built in TypeScipt
View pollers.ts
import {BackendService} from "./backend";
export class PollerService {
constructor(private backendService: BackendService) {
}
static readonly INTERVAL = {
SHORT: 1000,
STANDARD: 2000,
@kennwhite
kennwhite / https.go
Last active Jul 12, 2018
Simple https http/2 static web server with HSTS & CSP (A+ SSLLabs & securityheaders.io rating) in Go using LetsEncrypt acme autocert
View https.go
package main
import (
"crypto/tls"
"golang.org/x/crypto/acme/autocert"
"log"
"net"
"net/http"
)
View Hero Element Hack
/* Courtesy of Steve Souders, #ImageCon17, San Francisco, US */
/* Details: https://developer.mozilla.org/en-US/docs/Web/API/Performance */
<link rel="stylesheet" href="/huge-slow.css">
<img src="hero.jpg"
onload="performance.clearMeasures('hero');
performance.measure('hero')">
<script>
@junian
junian / twitch-recorder.py
Last active Oct 2, 2019
Record Twitch Streams Automatically in Python
View twitch-recorder.py
# This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch.
# You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html
# original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/
import requests
import os
import time
import json
import sys
import subprocess
You can’t perform that action at this time.