Skip to content

Instantly share code, notes, and snippets.

View AlainMuller's full-sized avatar

Alain Muller AlainMuller

View GitHub Profile
@AlainMuller
AlainMuller / README.md
Last active March 24, 2023 10:36 — forked from jmhobbs/README.md
Create scrolling text gifs for Slack

Makes little scrolly text jiffs in Flywheel colors.

Prerequisites

  • imagemagick brew install imagemagick
  • gifsicle brew install gifsicle (update: with giflossy integration, install it if needed brew install giflossy)
  • Hartwell Bold.otf font installed -> https://www.cufonfonts.com/font/hartwell-alt
  • u r on a mac

Usage

@AlainMuller
AlainMuller / KeyStoreHelper.java
Created February 8, 2018 09:56 — forked from alphamu/KeyStoreHelper.java
Using Android KeyStore to generate a password. The code create a public/private key pair and uses the base64 encoded form of the certificate to as the password. The code modified the KeystoreHelper class from AOSP demo projects.
/*
* Copyright 2013 The Android Open Source Project
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software

Keybase proof

I hereby claim:

  • I am alainmuller on github.
  • I am alainmuller (https://keybase.io/alainmuller) on keybase.
  • I have a public key whose fingerprint is D293 06B3 8841 C88E 7DBC A0B7 0677 F398 5776 6648

To claim this, I am signing this object:

@AlainMuller
AlainMuller / gestionEvents
Created November 25, 2013 16:01
Fonction rapide (crade?) permettant de virer des listeners (support multi-plateformes)
// Fonction d'ajout de listener
var addEvent = function (elm, evType, fn, useCapture) {
// Cross browser event handling for IE5+, NS6+ and Mozilla/Gecko
if (elm.addEventListener) {
elm.addEventListener(evType, fn, useCapture);
return true;
} else if (elm.attachEvent) {
var r = elm.attachEvent('on' + evType, fn);
return r;
} else {