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
/* http://en.wikipedia.org/wiki/Spherical_coordinate_system */ | |
module spherical_translate(value) | |
{ | |
radius = value[0]; | |
inclination = value[1]; | |
azimuth = value[2]; | |
x = radius * sin(inclination) * cos(azimuth); | |
y = radius * sin(inclination) * sin(azimuth); |
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
#!/usr/bin/env python | |
__doc__ = """Simple script to start and stop all torrents in Transmission | |
1. Make sure you have installed transmission-remote | |
2. Enable web client in Transmission (allow only for 127.0.0.1, do not use authentication) | |
3. Set up cron to start and stop the torrents (optional). e.g. | |
30 2 * * * path_to_script/torrentcontrol start | |
0 8 * * * path_to_script/torrentcontrol stop |
OlderNewer