Infura 提供公開的 Ethereum 主網和測試網路節點。到 Infura 官網申請,只要輸入一點基本資料和 Email,就可以收到 API-key。
| files.download('example.txt') # from colab to browser download |
UPDATE (Fall 2020): This gist is an updated version to the Windows 10 Fall Creators Update - Installing Node.js on Windows Subsystem for Linux (WSL) guide, I usually just keep here notes, configuration or short guides for personal use, it was nice to know it also helps other ppl, I hope this one too.
Windows updated windows subsystem for linux to version 2, as the F.A.Q stated you can still use WSL version 1 side by side with version 2. I'm not sure about existing WSL machines surviving the upgrade process, but as always backup and 🤞. NOTE: WSL version 1 is not replace/deprecated, and there ar
| #!/usr/bin/python3 | |
| """ Demonstrating APScheduler feature for small Flask App. """ | |
| from apscheduler.schedulers.background import BackgroundScheduler | |
| from flask import Flask | |
| def sensor(): | |
| """ Function for test purposes. """ | |
| print("Scheduler is alive!") |
| #!/usr/bin/env python3 | |
| # Tcp Port Forwarding (Reverse Proxy) | |
| # Author : WangYihang <wangyihanger@gmail.com> | |
| ''' | |
| +-----------------------------+ +---------------------------------------------+ +--------------------------------+ | |
| | My Laptop (Alice) | | Intermediary Server (Bob) | | Internal Server (Carol) | | |
| +-----------------------------+ +----------------------+----------------------+ +--------------------------------+ | |
| | $ ssh -p 1022 carol@1.2.3.4 |<------->| IF 1: 1.2.3.4 | IF 2: 192.168.1.1 |<------->| IF 1: 192.168.1.2 | | |
| | carol@1.2.3.4's password: | +----------------------+----------------------+ +--------------------------------+ |
Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers:
First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.
| # The initial version | |
| if [ ! -f .env ] | |
| then | |
| export $(cat .env | xargs) | |
| fi | |
| # My favorite from the comments. Thanks @richarddewit & others! | |
| set -a && source .env && set +a |
| Download/Copy all related *.zip files in one directory. | |
| Open terminal and change to that directory which has all zip files. | |
| Enter command zip -s- FILE_NAME.zip -O COMBINED_FILE.zip | |
| Enter unzip COMBINED_FILE.zip |

