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
int soundSensor = A1; | |
int relay = A2; | |
int relay2 = A3; | |
int relay3 = A4; | |
int relay4 = A5; | |
int claps = 0; | |
long detectionSpanInitial = 0; | |
long detectionSpan = 0; | |
boolean lightState = false; |
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
int soundSensor = A2; | |
int relay = A0; | |
int relay2 = A3; | |
int relay3 = A4; | |
int relay4 = A5; | |
int claps = 0; | |
long detectionSpanInitial = 0; | |
long detectionSpan = 0; | |
boolean clapState = false; | |
int doubleClap = 0; |
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
int soundSensor = A2; | |
int relay = A0; | |
int relay2 = A3; | |
int relay3 = A4; | |
int relay4 = A5; | |
int claps = 0; | |
long detectionSpanInitial = 0; | |
long detectionSpan = 0; | |
boolean clapState = false; | |
int doubleClap = 0; |
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
var docRef = app.activeDocument; | |
cTID = function(s) { return app.charIDToTypeID(s); }; | |
sTID = function(s) { return app.stringIDToTypeID(s); }; | |
function newGroupFromLayers(doc) { | |
var desc = new ActionDescriptor(); | |
var ref = new ActionReference(); | |
ref.putClass( sTID('layerSection') ); |
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
doc = app.activeDocument; | |
sel = doc.selection[0]; | |
var rotate; | |
var numberOfObjects; | |
var radius; | |
initWindow(); | |
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
Heavily modified code from: http://forums.creativecow.net/thread/227/12722 | |
timeToStart = 4; | |
text.sourceText = "4:59"; | |
if (time >= timeToStart){ | |
clockStart = 300; | |
function padZero(n){ | |
if (n < 10) return "0" + n else return "" + n | |
} |
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
// save as unlockAllLayers_Photoshop.jsx and put it in your scripts folder to see it in File > Scripts | |
var topLayer = app.activeDocument.layers[0]; | |
app.activeDocument.activeLayer = topLayer; | |
do{ | |
unlockLayer(); | |
selectLayerBelow(); | |
}while(topLayer != app.activeDocument.activeLayer) | |
function unlockLayer(){ | |
if(app.activeDocument.activeLayer.isBackgroundLayer ) app.activeDocument.activeLayer.name = 'From Background'; |
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 x; | |
float easing = 0.05; | |
float targetX = origin; | |
float dx = targetX - x; | |
if(abs(dx) > 1) { | |
x += dx * easing; | |
} |
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
me.addSeed = function(_r,_a) { | |
var r = _r || 0; | |
var a = _a || 0; | |
var seed = new FIB.GoldenSeed(0,0); | |
seed.radius = seed.tradius = r; | |
seed.angle = seed.tangle = a; | |
me.seeds.unshift(seed); | |
return seed; | |
}; |
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
/************************************************************************** | |
* | |
* @@@BUILDINFO@@@ 00globals-2.jsx 3.5.0.43 20-November-2009 | |
* ADOBE SYSTEMS INCORPORATED | |
* Copyright 2010 Adobe Systems Incorporated | |
* All Rights Reserved. | |
* | |
* NOTICE: Adobe permits you to use, modify, and distribute this file in | |
* accordance with the terms of the Adobe license agreement accompanying it. | |
* If you have received this file from a source other than Adobe, then your |
NewerOlder