Skip to content

Instantly share code, notes, and snippets.

View interactivenyc's full-sized avatar
💭
Looking for work

Steve Warren interactivenyc

💭
Looking for work
View GitHub Profile
@interactivenyc
interactivenyc / CodeaTutsJoystick.lua
Created April 14, 2016 02:39
CodeaTuts Joystick Help
--# 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
@interactivenyc
interactivenyc / Main.lua
Created April 13, 2016 02:14
Joystick 1.1
--# Main
-- Joystick
-- Use this function to perform your initial setup
function setup()
log("setup main")
--setup left controller
joystickLeft = JoystickController("LEFT")
displayMode(FULLSCREEN)
function setup()
rectMode(CENTER)
s1,s2=nil,nil
end
function draw()
background(40, 40, 50)
fill(255)
@interactivenyc
interactivenyc / CharacterSprite.lua
Last active April 11, 2016 21:45
Joystick Project Main Class
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
@interactivenyc
interactivenyc / findLibraryItemsOnStage.jsfl
Created November 17, 2015 16:30
JSFL findLibraryItemsOnStage
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){
@interactivenyc
interactivenyc / .profile
Last active December 14, 2015 13:08
My Entire .profile
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
@interactivenyc
interactivenyc / colortail.sh
Created March 5, 2013 15:54
colortail configuration file
#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.*)
@interactivenyc
interactivenyc / rsync.sh
Created March 5, 2013 15:50
RSYNC Convenience Functions
##########################################################################
# RSYNC UTILS
##########################################################################
function backupClientsToDrobo(){
SRC="/Volumes/Red_Pill/stevewarren-redpill/Clients*"
DEST="/Volumes/M-OSX-Backups/Users/stevewarren/"
LOG_FILE="backupClientsToDrobo"
@interactivenyc
interactivenyc / fdupes.sh
Created March 5, 2013 15:48
FDUPES CONVENIENCE FUNCTIONS
##########################################################################
# FDUPES CONVENIENCE FUNCTIONS
##########################################################################
function makeDupList(){
fdupes --recurse --omitfirst $1 > duplist.txt
}
function copyDupFiles(){
cat duplist.txt | while read LINE
@interactivenyc
interactivenyc / showAliasesAndFuntions.sh
Created March 5, 2013 15:47
Shows Aliases and Functions in .profile
function showAliases(){
echo "***************************************************"
echo ALIASES IN .PROFILE
echo "***************************************************"
alias
echo "***************************************************"
}
function showFunctions(){
echo "***************************************************"