Skip to content

Instantly share code, notes, and snippets.

View MaxCodeXTC's full-sized avatar
🎯
Focusing

PT Philip MaxCodeXTC

🎯
Focusing
  • DeepCloud Inc.
  • S.E.A.
View GitHub Profile
@MaxCodeXTC
MaxCodeXTC / python_mysql.py
Created June 15, 2020 23:57 — forked from bradtraversy/python_mysql.py
Python & MySQL crash course for beginners
import mysql.connector
from mysql.connector import errorcode
config = {
'user': 'root',
'password': '',
'host': 'localhost',
'database': 'acme'
}
  • repo -> repository
  • clone -> bring a repo down from the internet (remote repository like Github) to your local machine
  • add -> track your files and changes with Git
  • commit -> save your changes into Git
  • push -> push your changes to your remote repo on Github (or another website)
  • pull -> pull changes down from the remote repo to your local machine
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MaxCodeXTC
MaxCodeXTC / 1hello.md
Created May 4, 2020 16:47 — forked from mpj/1hello.md
Arrow functions
@MaxCodeXTC
MaxCodeXTC / export_yt_channel_videos_to_csv.py
Created April 26, 2020 09:03 — forked from kholidfu/export_yt_channel_videos_to_csv.py
Export Youtube Channel Videos to CSV using Python3 + Youtube Api
import requests # or urllib
import csv
# get Youtube Data API Key
API_KEY = "" # insert your API key
# youtube channel ID
channel_id = "" # insert Youtube channel ID
page_token = ""
@MaxCodeXTC
MaxCodeXTC / brython.html
Created April 20, 2020 16:38 — forked from bradtraversy/brython.html
Python in the browser with Brython
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython.js" integrity="sha256-rA89wPrTJJQFWJaZveKW8jpdmC3t5F9rRkPyBjz8G04=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.8/brython_stdlib.js" integrity="sha256-Gnrw9tIjrsXcZSCh/wos5Jrpn0bNVNFJuNJI9d71TDs=" crossorigin="anonymous"></script>
//
// Console.log (output)
//
console.log("Basics ---------------------------------------");
//
// Comments
//
@MaxCodeXTC
MaxCodeXTC / basic_motion_detection_opencv_python.py
Created March 11, 2020 20:42 — forked from pknowledge/basic_motion_detection_opencv_python.py
Motion Detection and Tracking Using Opencv Contours
import cv2
import numpy as np
cap = cv2.VideoCapture('vtest.avi')
frame_width = int( cap.get(cv2.CAP_PROP_FRAME_WIDTH))
frame_height =int( cap.get( cv2.CAP_PROP_FRAME_HEIGHT))
fourcc = cv2.VideoWriter_fourcc('X','V','I','D')
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS ::before and ::after</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="main.css"/>
<style>
main p:nth-child(1)::before{
content: "HELLO";