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
package CE::Selenium::FacebookRegistration; | |
use CE::Config; | |
use Test::Class::Most parent => 'CE::Test::Class::WWWSelDriver'; | |
sub class {'CE'} | |
sub new_obj { | |
return 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
my $tasks = [ | |
# Task 1 | |
{ id => 1, | |
title => "Do stuff", | |
date_created => "2012-03-06 22:42:40", | |
date_modified => undef, | |
date_ended => undef, | |
priority_level => "2", | |
status_level => "active", | |
# Two goals for task 1 |
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
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
my $original = "belize-i-27869844"; | |
(my $original_regexed = $original) =~ s/^(.*)?-(\d+|i-[0-9a-f]{8})\b(.*)/$1-$3/; | |
print STDERR "My original regex turns $original into $original_regexed\n"; |
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
package RoosterPirates::Web::Controller::Login; | |
use Moose; | |
use namespace::autoclean; | |
BEGIN { extends 'Catalyst::Controller'; } | |
sub index : Chained('/') PathPart('login') Args('0') { | |
my ( $self, $c ) = @_; | |
$c->stash( template => 'login.tt2' ); |
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
<script type="text/javascript">/* <[CDATA[ */ | |
(function() { | |
var e = document.createElement('script'); e.type="text/javascript"; e.async = true; | |
e.src = document.location.protocol + '//platform.twitter.com/widgets.js'; | |
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(e); | |
Page.onReady('node-base', function(Y) { | |
twttr.events.bind('follow', function(event) { | |
console.log(event); | |
console.log("I got a follow!"); |
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
server { | |
listen 80; | |
server_name blog.akbuntu.local; | |
location / { | |
default_type text/html; | |
root /home/amiri/roosterpirates/Ripe/RoosterPirates-Web/root/yar; | |
autoindex on; | |
expires 30d; | |
} |
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
for (int i = 0; i < [inSeasonArray count]; i++) { | |
// check whether this green has 4 best seasons, and if so skip | |
NSLog(@"Here is the produceBest dictionary: ",[[inSeasonArray objectAtIndex:i] valueForKey:@"produceBest"] ); | |
NSLog(@"Here is the number of items in produceBest dictionary: ",[[[inSeasonArray objectAtIndex:i] valueForKey:@"produceBest"] count] ); | |
if ([[[inSeasonArray objectAtIndex:i] valueForKey:@"produceBest"] count] > 3) { | |
continue; | |
} |
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
for (NSString *string in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) { | |
NSLog(@"During loop, my temp string is: %@",string); | |
[self.greensArray addObject:string]; | |
} | |
NSLog(@"After assignment from temp, self.greensArray is: %@",self.greensArray); |
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
NSMutableArray *tempGreens = [NSMutableArray array]; | |
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) { | |
NSString *mygreen = [NSString string]; | |
mygreen = object; | |
NSLog(@"During loop, my temp string is: %@",mygreen); | |
[tempGreens addObject:mygreen]; | |
} | |
NSLog(@"After loop my temp array is: %@",tempGreens); | |
self.greensArray = [self.greensArray arrayByAddingObjectsFromArray:tempGreens]; | |
NSLog(@"After assignment from temp, self.greensArray is: %@",self.greensArray); |
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
NSMutableArray *tempGreens = [NSMutableArray array]; | |
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) { | |
NSString *mygreen = [NSString string]; | |
mygreen = object; | |
NSLog(@"During loop, my temp string is: %@",mygreen); | |
[tempGreens addObject:mygreen]; | |
} | |
NSLog(@"After loop my temp array is: %@",tempGreens); |