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
@bingoohuang
bingoohuang / IPToCountryCodeTest.java
Created July 3, 2013 09:42
find country code by ip using ip ranges implemented by TreeMap
/**
* This utility provides methods to either convert an IPv4 address to its long format or a 32bit dotted format.
*
* @author Aion
* Created on 22/11/12
*/
public static class IPv4 {
/**
* Returns the long format of the provided IP address.
@mpj
mpj / 1hello.md
Last active May 29, 2020 02:52
Arrow functions
@Dashon-Hawkins
Dashon-Hawkins / hangman-game-in-html-js.markdown
Created February 12, 2017 07:52
Hangman Game in HTML/JS
@kholidfu
kholidfu / export_yt_channel_videos_to_csv.py
Created August 14, 2017 14:35
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 = ""
@adyngom
adyngom / eltonuikit.html
Last active February 13, 2020 09:27
Code for the CSS Grid Quick Overview Tutorial
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Elton ui Kit</title>
<style>
@import 'https://fonts.googleapis.com/css?family=Comfortaa:300,700|Bungee+Shade|Josefin+Sans:400';
html {
background-color: #eee;
<!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";
@pknowledge
pknowledge / basic_motion_detection_opencv_python.py
Created June 25, 2019 18:11
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')
@bradtraversy
bradtraversy / python_heroku.MD
Created August 16, 2019 16:38
Python & Postgres Heroku Deployment

Python Heroku Deployment

Steps to create a postgres database and deply a Python app to Heroku

Install guinicorn locally

pipenv install gunicorn
or
pip install gunicorn
@draffauf
draffauf / javascript_fundamentals.js
Created January 5, 2020 18:52
JavaScript Fundamentals
//
// Console.log (output)
//
console.log("Basics ---------------------------------------");
//
// Comments
//
@stefanjudis
stefanjudis / importJSON.gs
Created January 15, 2020 08:31
API data in google sheets
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();