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
protected function commitProperties():void | |
{ | |
if (dirtyDataFlag && data) | |
{ | |
// do something | |
if (data.name.search(/[^a-z ]/i > -1 && email) | |
{ | |
// do something with data | |
} |
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
protected function commitProperties():void | |
{ | |
if (dirtyDataFlag && data) | |
{ | |
// do something | |
if (data.name.search(/[^a-z ]/i == -1) return; | |
if (data.email) | |
// do something with data |
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
protected function commitProperties():void | |
{ | |
dataChangedCondition: if (dirtyDataFlag && data) | |
{ | |
// do something | |
if (data.name.search(/[^a-z ]/i == -1) break dataChangedCondition; | |
if (data.email) | |
// do something with data |
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
protected function commitProperties():void | |
{ | |
if (dirtyDataFlag && data) | |
{ | |
// do something | |
if (data.name.search(/[^a-z ]/i > -1) | |
{ | |
if (data.email) | |
// do something with data |
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
// the old, lame way | |
protected var _property:Property; | |
public function get property():Property | |
{ | |
if (!_property) | |
{ | |
_property = new Property(); | |
} |
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
SELECT DISTINCT (round(timestamp / 86400000.0 - 0.5) * 86400000.0) as time FROM timeline ORDER BY timestamp ASC | |
--in AIR, set itemClass to Date | |
--the returned dates are offset with the computer's timezone, so you need to reverse it: date.time += date.timezoneOffset * 60000; |
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 com.destroytoday.example | |
{ | |
public class AccountController | |
{ | |
[Inject] | |
public var signalBus:SignalBus; | |
[Inject] | |
public var twitterService:TwitterService; | |
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
require 'find' | |
if ARGV.length != 2 | |
raise ArgumentError.new('Two arguments are required: path, extension') | |
end | |
path = ARGV[0] | |
extension = ARGV[1] | |
numFiles = 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
package com.destroytoday.example | |
{ | |
public class GetFollowerIDListCommand extends AsyncSignalCommand | |
{ | |
[Inject] | |
public var twitterService:ITwitterService; | |
[Inject] | |
public var followerModel:FollowerModel; | |
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 com.destroytoday.example | |
{ | |
public class CaptureFollowerSnapshotCommand extends CompositeSignalCommand | |
{ | |
[Inject] | |
public var user:UserVO; | |
public function CaptureFollowerSnapshotCommand() | |
{ | |
} |