Skip to content

Instantly share code, notes, and snippets.

View amiri's full-sized avatar

Amiri Barksdale amiri

View GitHub Profile
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) {
NSString *mygreen = [NSString string];
mygreen = object;
NSLog(@"While constructing loop, my temp string is: %@",mygreen);
}
for (id object in [[searchViewArray valueForKey:@"produceName"] filteredArrayUsingPredicate:predicate]) {
NSLog(@"While constructing loop, object is: %@",object);
}
sub update : Chained('object') PathPart('update') Args(0) {
my ( $self, $c ) = @_;
my $media_dir = '/deployment/' . $c->config->{'Locales'}->{$c->stash->{lang}} . '/' . $c->config->{$c->stash->{episode}->images->result_source->source_name}->{deploy_dir} if $c->stash->{episode};
$c->stash( media_dir => $media_dir ) if $media_dir;
my $form = EpisodeForm->new(media_directory => dir($media_dir));
my $item = $c->stash->{episode};
if (lc $c->req->method eq 'post') {
$c->stash(episode => $item, form => $form );
$c->req->params->{'file'} = $c->req->upload('file');
use My::Community::Testing;
my $test = My::Community::Testing->new;
my $schema = $test->schema;
$schema->current_user($schema->resultset('User')->find({ username => 'Harry'}));
my $article_rs = $schema->resultset('Article');
package MoosifierTest::Schema::Statistic;
use Moose;
use MoosifierTest::Types::Library;
extends 'DBIx::Class';
has 'accessdate' => (
isa => Int,
is => 'rw',
package MoosifierTest::Types::Library;
require Exporter;
@ISA = qw/Exporter/;
@EXPORT = qw /Email Bool Value Num Int Str ArrayRef HashRef Object SimpleStr NonEmptySimpleStr StrongPassword NonEmptyStr Uri DateTime/;
use MooseX::Types -declare =>
[qw/
Email
/];