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
| float dpLength(DelaunayPoint p1, DelaunayPoint p2) { | |
| float deltaX = p2.x - p1.x; | |
| float deltaY = p2.y - p1.y; | |
| float deltaZ = p2.z - p1.z; | |
| return sqrt((deltaX * deltaX) + (deltaY * deltaY) + (deltaZ * deltaZ)); | |
| } | |
| DelaunayPoint dpAdd(DelaunayPoint p1, DelaunayPoint p2) | |
| { |
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
| #!/usr/bin/python | |
| import plistlib | |
| import subprocess | |
| ppc_apps = [] | |
| command = ["system_profiler", "-xml", "SPApplicationsDataType"] | |
| task = subprocess.Popen(command, stdout=subprocess.PIPE) |
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
| # Screen Options ## | |
| shell bash # Tell screen your default shell | |
| startup_message off # Turn off start message | |
| defscrollback = 5000 | |
| shelltitle '$ |bash' # Dynamic window titled for running program | |
| msgwait 1 # Set messages timeout to one second | |
| nethack on # Turn on nethack error messages | |
| backtick 0 0 0 whoami # Set "%0`" to equal the output of "whoami" | |
| escape ^Oo |
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
| <?xml version="1.0"?> | |
| <!-- This file configures MAME to use four controllers (I use XBox 360 wireless controllers) as inputs --> | |
| <mameconfig version="10"> | |
| <system name="default"> | |
| <input> | |
| <port type="P1_JOYSTICK_UP"> | |
| <newseq type="standard"> | |
| JOYCODE_1_YAXIS_UP_SWITCH | |
| </newseq> | |
| </port> |
NewerOlder