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
import copy | |
import datetime as dt | |
import os | |
import shutil | |
import subprocess | |
import sys | |
import time | |
def main(args): |
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
from os import listdir | |
from os.path import isfile, join | |
from tzlocal import get_localzone | |
import datetime as dt | |
import os | |
import shutil | |
import sys | |
# Constants. | |
# Constant for a backup folder name. |
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
import datetime as dt | |
# This is a class to detect change in second. | |
# My first initial idea was to make a codes | |
# those execute for every second passed. | |
# The method here is to take the current time | |
# from datetime.datetime.now().time(), extract | |
# the second and then execute something when | |
# the value changes (most of the time codes | |
# will be executed for every one second). |
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
public color ChangeAlpha( | |
color _color, | |
int _desiredAlpha | |
){ return _color & ~#000000 | (_desiredAlpha << 030); } |
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
color alphaColor; | |
// I test this program using red color. | |
// But you can use any color you want. | |
color mainColor = color(255, 0, 0); | |
// The least alpha value is 0 while | |
// the most alpha value is 255. | |
// This variable is the starting alpha | |
// value. | |
int alphaValue = 255; |
NewerOlder