Skip to content

Instantly share code, notes, and snippets.

Avatar

Guillaume Vincent guillaumevincent

View GitHub Profile
@guillaumevincent
guillaumevincent / portefeuille.test.ts
Last active December 23, 2020 16:39
ES Typescript Kata
View portefeuille.test.ts
interface IEvenement {}
class Depot implements IEvenement {
valeur: number;
constructor(valeur: number) {
this.valeur = valeur;
}
}
View btc.py
words = "gruyère apporter rituel mallette anguleux intime irréel ralentir posture orque grand fatal donner négation carotte replier nocif opprimer tenir accolade éprouver sonde tambour cylindre"
import binascii
from mnemonic import mnemonic
from bip32 import BIP32
import base58
import hashlib
mnemo = mnemonic.Mnemonic("french")
@guillaumevincent
guillaumevincent / installation.md
Last active August 9, 2018 16:08
react-native-navigation v2 react-native 0.56 android installation
View installation.md

Installing

Requirements

  • node >= 8
  • react-native >= 0.56

npm

  • npm install --save react-native-navigation@alpha

Android

@guillaumevincent
guillaumevincent / index.html
Created June 14, 2017 16:34
test async copy
View index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Test</title>
</head>
<body>
@guillaumevincent
guillaumevincent / output.txt
Created January 15, 2017 11:12
zmq lost message PUSH/PULL
View output.txt
$ python push.py
message n°0
message n°1
message n°2
message n°3
message n°4
message n°5
message n°6
message n°7
message n°8
@guillaumevincent
guillaumevincent / README.md
Last active March 9, 2023 17:05
Windows Service with Python 3.5 and pyinstaller
View README.md
View signature email okiwi
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="119" height="82">
<img alt="logo" src="http://okiwi.org/img/okiwi.png" width="92"
height="74" style="margin: 0; border: 0; padding: 0; display: block;">
</td>
<td width="3" bgcolor="#8B6849">
</td>
<td width="310" height="82"
style="padding-left:10px; font-family: sans-serif; color: #8B6849; font-size: 13px;">
View license
The MIT License (MIT)
Copyright (c) Guillaume Vincent <guillaume@oslab.fr> (guillaumevincent.com)
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:
View signature_email_akema.html
<table width="400" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="87" height="82">
<img alt="birdLogo" src="http://akema.fr/images/akema_logo_signatures.jpg" width="130"
height="45" style="margin: 0; border: 0; padding: 0; display: block;">
</td>
<td width="3" bgcolor="#7234C7">
</td>
<td width="310" height="82"
style="padding-left:10px; font-family: sans-serif; color: #747b82; font-size: 12px;">
@guillaumevincent
guillaumevincent / index.js
Last active December 30, 2015 13:00
requirebin sketch
View index.js
var crypto = require('crypto');
var loading = document.createElement('p');
var iterations = 10;
crypto.pbkdf2('password', 'salt', iterations, 32, 'sha256', function (error, key) {
if (error) {
console.log(error);
}
loading.innerHTML = 'key:' + key.toString('hex');
document.body.appendChild(loading);
});