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
--# Joystick | |
Joystick=class() | |
function Joystick:init(x,y,id,type) | |
self.id=id | |
self.type=type | |
self.ox=x | |
self.oy=y | |
self.cx=x |
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
--# Main | |
-- Joystick | |
-- Use this function to perform your initial setup | |
function setup() | |
log("setup main") | |
--setup left controller | |
joystickLeft = JoystickController("LEFT") |
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
displayMode(FULLSCREEN) | |
function setup() | |
rectMode(CENTER) | |
s1,s2=nil,nil | |
end | |
function draw() | |
background(40, 40, 50) | |
fill(255) |
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
CharacterSprite = class() | |
function CharacterSprite:init(x) | |
self:log("init character") | |
-- you can accept and set parameters here | |
self.x = 200 | |
self.y = 200 | |
--parameters.watch("self.x") | |
--parameters.watch("self.y") | |
end |
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
itemList = fl.getDocumentDOM().library.items; | |
selectedItems = fl.getDocumentDOM().library.getSelectedItems(); | |
selectedItem = ""; | |
itemNameArray = new Array(); | |
itemArray = new Array(); | |
findLibraryItemOnStage = function(){ | |
fl.trace("findLibraryItemOnStage"); | |
if(selectedItems.length == 1){ |
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
echo "***************************************************" | |
echo "loading .profile $(date +%b-%d.%H:%M:%S)" | |
pwd | |
echo "***************************************************" | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
#export PATH=$PATH:/opt/local/bin/svn:/usr/local/bin | |
export PATH=$PATH:/opt/local/bin:/opt/local/sbin |
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 NAMES | |
#BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE | |
#COLOR NAMES - BOLD | |
#BRIGHTBLACK BRIGHTRED BRIGHTGREEN BRIGHTYELLOW BRIGHTBLUE BRIGHTMAGENTA BRIGHTCYAN BRIGHTWHITE | |
COLOR cyan | |
{ | |
^(\[ iPadApp.*) | |
^(\[ PageLayouts.*) |
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
########################################################################## | |
# RSYNC UTILS | |
########################################################################## | |
function backupClientsToDrobo(){ | |
SRC="/Volumes/Red_Pill/stevewarren-redpill/Clients*" | |
DEST="/Volumes/M-OSX-Backups/Users/stevewarren/" | |
LOG_FILE="backupClientsToDrobo" |
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
########################################################################## | |
# FDUPES CONVENIENCE FUNCTIONS | |
########################################################################## | |
function makeDupList(){ | |
fdupes --recurse --omitfirst $1 > duplist.txt | |
} | |
function copyDupFiles(){ | |
cat duplist.txt | while read LINE |
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
function showAliases(){ | |
echo "***************************************************" | |
echo ALIASES IN .PROFILE | |
echo "***************************************************" | |
alias | |
echo "***************************************************" | |
} | |
function showFunctions(){ | |
echo "***************************************************" |