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
# Python script to arrange files numbering in my personal see folder. | |
from tzlocal import get_localzone | |
import datetime as dt | |
import os | |
import shutil | |
import sys | |
def ArrangeFilesNumbering(_startDir): | |
# Get the list of files and folders in |
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
// Function to detect if x second is already passed. | |
// If each tick is more than 1 second then this | |
// function is screwed, but that will not happen | |
// (hopefully). | |
function DetectChangeInTSecond(_t, _date){ | |
this.t = _t; | |
this.currSecond = _date.getSeconds(); | |
this.currSecondPrev = this.currSecond; | |
this.counter = 0; |
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
.sidebar-nav a, | |
.sidebar-nav a:active, | |
.sidebar-nav a:focus, | |
.sidebar-nav a:hover{ | |
outline: none; | |
} | |
.sidebar-nav ul a, | |
.sidebar-nav ul li{ | |
display: block; | |
} |
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
""" | |
I faced a problem when pulling data from Schipol Airport API. The first | |
data pull is only resulted in 20 elements, meanwhile there are hundreds | |
of flights in Schipol everyday. From my support contact, it appears that | |
the API are in a pagination of 20 flights for each paginations. | |
This script is made to pull all flights schedule from all paginations. | |
""" | |
import requests, sys |
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
var anyton = function (ton, parameters, init_count) { | |
if (!init_count) { | |
init_count = 1; // Singleton. | |
} | |
var instances = []; | |
this.create_instance = function () { | |
if (instances.length < init_count) { | |
instances.push(new ton(...parameters)); // No pun intended. |
OlderNewer