=================
For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
import com.esotericsoftware.yamlbeans.YamlWriter; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory; | |
/** | |
* WARNING: This creates a file that is never forced to be deleted. You MUST | |
* delete the file within the ExtraData object to clear space on the computer. | |
* | |
* @param run | |
* @return ExtraData object (From Amazon Device Farm |
A simple bash program that can be run as a service
Please do not continue if you have not learned the content covered in these assignments. It is important to learn the material. However if, like me, you find yourself needing to complete arbitrary tasks for classes you are capable of testing out of - but its not offered. Please continue...
README: To use this quickly, copy and paste the entire block of code in the 'console' using CTRL-V. They have been written so you do not need to copy each line, one-by-one
# Download the helper library from https://www.twilio.com/docs/python/install | |
import datetime | |
import time | |
import dateutil.parser | |
import pymongo | |
import os | |
import glob | |
import time | |
from collections import OrderedDict | |
from twilio.rest import Client |
Source: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
by Sander Marechal
I've written a simple Python class for creating daemons on unix/linux systems. It was pieced together for various other examples, mostly corrections to various Python Cookbook articles and a couple of examples posted to the Python mailing lists. It has support for a pidfile to keep track of the process. I hope it's useful to someone.