This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Project: | |
| 19_UNIR_doorBell_transmit_system | |
| Link: https://www.tinkercad.com/things/ehEDYXSSMlV-12-unir-autowaterbotultimateversionv02 | |
| Objective: | |
| This sketch focuses on wireless communication utilizing XBee Radios Series 1. | |
| The system comprises two Arduino units, each equipped with an XBee shield and a radio module. | |
| One Arduino is positioned outside your home or apartment, while the other is located indoors. | |
| Upon pressing a button on the outdoor unit, the indoor board triggers the doorbell. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| UNWNATED COMMITS - Deleting multiple latest commits | |
| git reset --hard <sha1-commit-hash> | |
| git push origin HEAD --force | |
| Breno Diogenes Fernandes | |
| git reset --hard HEAD~1 | |
| HEROKU |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| all: build | |
| build: msg3 msg2 msg1 | |
| msg1: msg2 | |
| @echo "3 - Exit make. Bye. Thank you!" | |
| msg2: msg3 | |
| @touch file1.txt | |
| @echo "2 - Creating file1.txt." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| products | consolidated total grouped | |
|---|---|---|
| Amaryllis Dress | 96991.00 | |
| Aster Pants | 39111.00 | |
| Boat Neck | 15355.00 | |
| Breathable Dobby | 14744.00 | |
| Crew Neck | 52793.00 | |
| Denim Jeans | 26720.00 | |
| Dobby Dress | 60614.00 | |
| Draped | 20191.00 | |
| Fig Dress | 172768.00 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| JUPYTER NOTEBOOK - Installation UBUNTU jupyter notebook: | |
| https://www.digitalocean.com/community/tutorials/how-to-set-up-jupyter-notebook-with-python-3-on-ubuntu-18-04 | |
| sudo apt update | |
| sudo apt install python3-pip python3-dev | |
| sudo -H pip3 install --upgrade pip | |
| sudo -H pip3 install virtualenv | |
| mkdir ~/my_project_dir | |
| cd ~/my_project_dir | |
| virtualenv my_project_env |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Installing nodejs and npm | |
| Prerequisites | |
| Ubuntu 18.04 or 20.04 | |
| A user with sudo privileges. | |
| 1- Install Node.js and NPM from Ubuntu Repository | |
| The easiest way to install Node.js and NPM is from the Ubuntu repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://stackoverflow.com/questions/6118779/how-to-change-default-timezone-for-active-record-in-rails | |
| # 0 -To find your tz: rake time:zones:all | |
| # 1- To run: bundle exec rake time:zones:all | |
| # 2- To test: rails console > Time.zone and Time.now | |
| config.time_zone = "Atlantic Time (Canada)" | |
| config.active_record.default_timezone = :local |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datetime import datetime, timedelta | |
| import requests | |
| import yagmail | |
| import os | |
| MY_LAT = -8.761070 | |
| MY_LNG = -63.885980 | |
| timezone_hour_offset = -4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # https://stackoverflow.com/questions/65827830/disabledfunctionerror-cv2-imshow-is-disabled-in-colab-because-it-causes-jupy | |
| from google.colab.patches import cv2_imshow | |
| from PIL import Image | |
| import face_recognition | |
| import cv2 | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| %matplotlib inline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Added packages: | |
| 8 - anaconda_depends 2020.02 py37_0 8 | |
| 32 - binutils_impl_linux-64 2.36.1 h193b22a_2 conda-forge | |
| 33 - binutils_linux-64 2.36 hf3e587d_1 conda-forge | |
| 84 - flit-core 3.7.1 pyhd8ed1ab_0 conda-forge | |
| 90 - gcc_impl_linux-64 11.1.0 h6b5115b_8 conda-forge | |
| 91 - gcc_linux-64 11.1.0 h97fdae6_1 conda-forge | |
| 102 - gxx_impl_linux-64 11.1.0 h6b5115b_8 conda-forge | |
| 103 - gxx_linux-64 11.1.0 h33c4e4b_1 conda-forge |