This file contains 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
''' | |
This solves the Number of Islands problem in Leetcode, but also creates unique | |
incrementing integer IDs for each island, and tracks all the coordinates that | |
make up each. | |
To solve the problem, you just return current_island_id + 1 | |
To see the grouped islands by ID, return islands | |
Problem: https://leetcode.com/problems/number-of-islands | |
''' | |
class Solution: |
- Let's Encrypt Apache - Ubuntu 18.04 (Bionic)
- Comparison of Let's Encrypt setup (post cerbot) for NodeJS, Apache& NGINX
- Important Apache files and directories
- Installing Apache
- Restart server:
sudo service apache2 restart
(same for stop, start)
This file contains 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
/** | |
* | |
* % United Flight Stats % | |
* Paste into your browser after loading the inflight website (https://unitedwifi.com) | |
* | |
*/ | |
// flight data API - used in the demo video | |
(function() { | |
const flightdataUrl = "https://services.inflightpanasonic.aero/inflight/services/flightdata/v1/flightdata"; |
This file contains 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
/* | |
* master index (App wrapper) | |
*/ | |
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import App from './App'; | |
import { Provider } from 'react-redux' | |
import { createStore } from 'redux' | |
import allReducers from './reducers' |
This file contains 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
{ | |
"marvel": { | |
"key": [Marvel API public key], | |
"secretKey": [Marvel API private key] | |
} | |
} |
This file contains 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
# coding: utf-8 | |
import motion | |
from time import sleep | |
from motion import * | |
import canvas as cv | |
from math import pi | |
''' Playing with attitude tracking(roll/pitch/yaw). Changes the color of the circle based on rotation around all 3 axes.''' |