Skip to content

Instantly share code, notes, and snippets.

View pywebdesign's full-sized avatar

Pierre-Yves pywebdesign

  • Pierre-Yves Mathieu - PyWebDesign
  • Québec Canada
View GitHub Profile
$1,580.97USD 0.08990094XɃT $17,585.69USD XɃT/USD
$879.50USD 0.05000000XɃT $17,590.00USD XɃT/USD
$594.89USD 0.03361000XɃT $17,700.00USD XɃT/USD
$1,947.00USD 0.11000000XɃT $17,700.01USD XɃT/USD
$821.98USD 0.04643979XɃT $17,700.11USD XɃT/USD
$11,859.95USD 0.67004927XɃT $17,700.12USD XɃT/USD
1.00000000XɃT $22,150.00CAD $22,150.00CAD XɃT/CAD
@pywebdesign
pywebdesign / gen_tree.py
Created December 15, 2017 14:44
gen tree
english = ["abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act", "action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit", "adult", "advance", "advice", "aerobic", "affair", "afford", "afraid", "again", "age", "agent", "agree", "ahead", "aim", "air", "airport", "aisle", "alarm", "album", "alcohol", "alert", "alien", "all", "alley", "allow", "almost", "alone", "alpha", "already", "also", "alter", "always", "amateur", "amazing", "among", "amount", "amused", "analyst", "anchor", "ancient", "anger", "angle", "angry", "animal", "ankle", "announce", "annual", "another", "answer", "antenna", "antique", "anxiety", "any", "apart", "apology", "appear", "apple", "approve", "april", "arch", "arctic", "area", "arena", "argue", "arm", "armed", "armor", "army", "around", "arrange", "arrest", "arrive", "arrow", "art", "artefact", "artist", "ar
english = ["abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act", "action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit", "adult", "advance", "advice", "aerobic", "affair", "afford", "afraid", "again", "age", "agent", "agree", "ahead", "aim", "air", "airport", "aisle", "alarm", "album", "alcohol", "alert", "alien", "all", "alley", "allow", "almost", "alone", "alpha", "already", "also", "alter", "always", "amateur", "amazing", "among", "amount", "amused", "analyst", "anchor", "ancient", "anger", "angle", "angry", "animal", "ankle", "announce", "annual", "another", "answer", "antenna", "antique", "anxiety", "any", "apart", "apology", "appear", "apple", "approve", "april", "arch", "arctic", "area", "arena", "argue", "arm", "armed", "armor", "army", "around", "arrange", "arrest", "arrive", "arrow", "art", "artefact", "artist", "ar
@pywebdesign
pywebdesign / significativeletter.py
Created December 15, 2017 14:20
lettre significative
english = ["abandon", "ability", "able", "about", "above", "absent", "absorb", "abstract", "absurd", "abuse", "access", "accident", "account", "accuse", "achieve", "acid", "acoustic", "acquire", "across", "act", "action", "actor", "actress", "actual", "adapt", "add", "addict", "address", "adjust", "admit", "adult", "advance", "advice", "aerobic", "affair", "afford", "afraid", "again", "age", "agent", "agree", "ahead", "aim", "air", "airport", "aisle", "alarm", "album", "alcohol", "alert", "alien", "all", "alley", "allow", "almost", "alone", "alpha", "already", "also", "alter", "always", "amateur", "amazing", "among", "amount", "amused", "analyst", "anchor", "ancient", "anger", "angle", "angry", "animal", "ankle", "announce", "annual", "another", "answer", "antenna", "antique", "anxiety", "any", "apart", "apology", "appear", "apple", "approve", "april", "arch", "arctic", "area", "arena", "argue", "arm", "armed", "armor", "army", "around", "arrange", "arrest", "arrive", "arrow", "art", "artefact", "artist", "ar
@pywebdesign
pywebdesign / unique.py
Created December 15, 2017 14:18
qwfwe
{'aba': '', 'abi': '', 'abl': '', 'abo': '', 'abs': '', 'abu': '', 'acc': '', 'ach': '', 'aci': '', 'aco': '', 'acq': '', 'acr': '', 'ac': '', 'act': '', 'ada': '', 'ad': '', 'add': '', 'adj': '', 'adm': '', 'adu': '', 'adv': '', 'aer': '', 'aff': '', 'afr': '', 'aga': '', 'ag': '', 'age': '', 'agr': '', 'ahe': '', 'ai': '', 'air': '', 'ais': '', 'ala': '', 'alb': '', 'alc': '', 'ale': '', 'ali': '', 'al': '', 'all': '', 'alm': '', 'alo': '', 'alp': '', 'alr': '', 'als': '', 'alt': '', 'alw': '', 'ama': '', 'amo': '', 'amu': '', 'ana': '', 'anc': '', 'ang': '', 'ani': '', 'ank': '', 'ann': '', 'ano': '', 'ans': '', 'ant': '', 'anx': '', 'an': '', 'apa': '', 'apo': '', 'app': '', 'apr': '', 'arc': '', 'are': '', 'arg': '', 'ar': '', 'arm': '', 'aro': '', 'arr': '', 'art': '', 'as': '', 'asp': '', 'ass': '', 'ast': '', 'ath': '', 'ato': '', 'att': '', 'auc': '', 'aud': '', 'aug': '', 'aun': '', 'aut': '', 'ave': '', 'avo': '', 'awa': '', 'awe': '', 'awf': '', 'awk': '', 'axi': '', 'bab': '', 'bac': '', 'bad': '
@pywebdesign
pywebdesign / last_word_finder.py
Created December 7, 2017 22:59
chercher le dernier mots
from mnemonic import Mnemonic
import binascii
import bisect
import hashlib
import hmac
import itertools
import os
import sys
import unicodedata
from pbkdf2 import PBKDF2
* Stopping nginx ...
* start-stop-daemon: 1 process refused to stop
* Failed to stop nginx [ !! ]
* Checking nginx' configuration ...
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful [ ok ]
* Starting nginx ...
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:443 failed (98: Address already in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
1573, 1688, 1689, 1690, 1691, 1692, 1693, 1694, 1695, 1696
@pywebdesign
pywebdesign / install-composer.sh
Last active April 27, 2016 18:44 — forked from matthewpizza/install-composer.sh
Install Composer on Webfaction
cd $HOME
ln -s `which php54` ~/bin/php
export PATH=$HOME/bin:$PATH
curl -sS https://getcomposer.org/installer | php54
echo -e "\n# Composer\nalias composer=\"php54 \$HOME/composer.phar\"" >> $HOME/.bash_profile
source $HOME/.bash_profile
@pywebdesign
pywebdesign / config.js
Last active October 22, 2016 21:28
Simple JsonAPi adapter for Restangular
// it require either lodash or underscorejs
.config(function(RestangularProvider) {
// add a response interceptor
RestangularProvider.addResponseInterceptor(function(data, operation, what, url, response, deferred) {
extractedData = data.data;
extractedData.meta = data.meta;
extractedData.included = data.included;
function _apply(elem, fct){