Skip to content

Instantly share code, notes, and snippets.

View germantellezv's full-sized avatar

Germán Téllez Vanegas germantellezv

View GitHub Profile
@germantellezv
germantellezv / temp_hum_fuzzifier_example.py
Created April 7, 2019 08:27 — forked from mvidalgarcia/temp_hum_fuzzifier_example.py
Example of fuzzy logic with skfuzzy library
import numpy as np
import skfuzzy as fuzz
CURRENT_TEMP = 15
CURRENT_HUM = 50
x_temp = np.arange(-20, 41, 1)
x_hum = np.arange(0, 101, 1)
x_sys = np.arange(12, 36, 1)
@tomsihap
tomsihap / gist:e703b9b063ecc101f5a4fc0b01a514c9
Created December 23, 2018 14:46
Install NVM in Ubuntu 18.04 with ZSH
# Find the latest version on https://github.com/creationix/nvm#install-script
$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Add in your ~/.zshrc the following:
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
$ source ~/.zshrc
@ferdef
ferdef / prototype.py
Last active March 20, 2019 05:15
Prototype Pattern
from copy import deepcopy
class Prototype:
def __init__(self):
self._objects = {}
def register_object(self, name, obj):
'''Store an object so it can be cloned later'''
self._objects[name] = obj