Skip to content

Instantly share code, notes, and snippets.

View macknilan's full-sized avatar
:octocat:
Focusing

Rodolfo Ugalde 8a macknilan

:octocat:
Focusing
View GitHub Profile
@macknilan
macknilan / index.php
Created February 2, 2021 16:11 — forked from oriolrivera/index.php
Conversor de moneda usando la API de Google
<?php
/* conversor_divisas()
*
* Conversor de moneda usando la API de Google
*/
function currency($from, $to, $amount)
{
@macknilan
macknilan / graph_models.md
Created October 11, 2019 05:20 — forked from rg3915/graph_models.md
Generate graphic model Django with PyGraphViz

How to generate graphic model Django with PyGraphViz?

sudo apt-get install graphviz libgraphviz-dev pkg-config
virtualenv -p python2.7 .venv
source .venv/bin/activate
pip install -r requirements.txt
pip install pygraphviz
pip uninstall pyparsing
pip install -Iv https://pypi.python.org/packages/source/p/pyparsing/pyparsing-1.5.7.tar.gz#md5=9be0fcdcc595199c646ab317c1d9a709
#! /usr/local/bin/python3
"""Secrets generator."""
import argparse
import base64
import hashlib
import secrets