Skip to content

Instantly share code, notes, and snippets.

View nikitagruia-dev's full-sized avatar
🎯
Focusing

Nikita nikitagruia-dev

🎯
Focusing
View GitHub Profile
@strufkin
strufkin / cayennelpp.py
Created January 5, 2018 00:11
CayenneLPP python lib for pycom
__author__ = __maintainer__ = "Helder Moreira"
__license__ = "MIT"
__version__ = "1.0.0"
# TYPE : [IPSO OBJ, SIZE(S)]
TYPE = {
'LPP_DIGITAL_INPUT' : [3200, 1 ],
'LPP_DIGITAL_OUTPUT' : [3201, 1 ],
'LPP_ANALOG_INPUT' : [3202, 2 ],
'LPP_ANALOG_OUTPUT' : [3203, 2 ],
@primaryobjects
primaryobjects / react-confirm.js
Created November 1, 2017 19:03
A simple example of a confirm alert dialog in ReactJs / React.
<div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } />
@Simplesmente
Simplesmente / install-docker-mint.sh
Created August 10, 2017 17:21
Install docker Linux Mint 18.2
sudo apt-get update
sudo apt-get install apt-transport-https ca-certificates -y
sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D
sudo echo deb https://apt.dockerproject.org/repo ubuntu-xenial main >> /etc/apt/sources.list.d/docker.list
sudo apt-get update
sudo apt-get purge lxc-docker
sudo apt-get install linux-image-extra-$(uname -r) -y
sudo apt-get install docker-engine cgroup-lite apparmor -y
sudo usermod -a -G docker $USER
sudo service docker start