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
-where => { | |
employee_code => {-in => [qw(CA CT CX)]} | |
}, |
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
Put this in the address bar: | |
http://whatsmy.browsersize.com/ |
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
<s:Form> | |
<s:layout> | |
<s:FormLayout gap="-5"/> | |
</s:layout> | |
</s:Form> |
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
<s:Button id="sendBtn" label="Send" click="sendBtn_clickHandler(event)" | |
enabled="{!model.documentSending && model.documentCreated}"/> |
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
# Join multiple lines without new line | |
value: > | |
part 1 | |
part 2 | |
# Join with newline | |
value2: | | |
line 1 | |
line 2 |
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
var dataSortField:SortField = new SortField(); | |
dataSortField.name = "activity"; | |
dataSortField.numeric = false; | |
var sort:Sort = new Sort(); | |
sort.fields = [dataSortField]; | |
this.taskAc.sort; | |
this.taskAc.refresh(); |
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
// ArrayCollection variables are references, so to create a copy: | |
var copyAc:ArrayCollection = new ArrayCollection(sourceAc.toArray()); | |
// or | |
var copyAc:ArrayCollection = ObjectUtil.copy(sourceAc) as ArrayCollection; |
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
use strict; | |
use warnings; | |
use v5.10; | |
use Test::More; | |
use Try::Tiny; | |
use Data::Dumper; | |
use Carp; | |
use List::Util qw(first); | |
use Class::Inspector; |
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
use Test::Most; | |
use v5.10; | |
use Data::Dumper; | |
use Data::Dump qw(dump); | |
my $dynamic_name = 'Table1|t1<=>Table2|t2'; | |
package Bar { | |
sub new { | |
my $class = shift; |
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
use strict; | |
use warnings; | |
use v5.10; | |
use Data::Dump qw(dump); | |
my $var; | |
while (<DATA>) { | |
$var .= $_; | |
} |