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/ruby | |
# Takes one large image (say, 512 or 1024 px) and creates some iOS icons: | |
# | |
# Icon-72.png | |
# Icon-Small-50.png | |
# Icon-Small.png | |
# [email protected] | |
# Icon.png | |
# [email protected] |
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
package intelligentpathways.utils | |
{ | |
/** | |
* Search a collection, returning the object where object[fieldName] == value. Because I'm sick of writing this ugly loop for every combobox in a system :( | |
*/ | |
public function findInHavingOf(collection:*, fieldName:String, value:*):* | |
{ | |
for each (var testee:* in collection) | |
if (testee && fieldName in testee && testee[fieldName] == value) | |
return testee; |
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
public function Tag() | |
{ | |
super(); | |
invalidator = InvalidationManager.forComponent(this); | |
invalidator.forProperty("node").commitFunctionIs(commitNode); | |
} | |
[Bindable] | |
public var node:XML; |
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
public function getBreakdown(measuringLocationId:Number, fromDate:Date, toDate:Date):AsyncToken | |
{ | |
return helper.newResponseDecoder() | |
.createInstanceOf(DisplaySet) | |
.on(helper.newSoapInvocation() | |
.onService(service) | |
.methodNamed("getFugitiveBreakdown") | |
.addParameter("measuringLocationId", measuringLocationId) | |
.addParameter("dateRange", { fromDate:fromDate, toDate:toDate }) | |
.addUserCredentials("carbon","carbon") |
NewerOlder