Skip to content

Instantly share code, notes, and snippets.

View makotoworld's full-sized avatar
😉
Happy Coding!

nzk makotoworld

😉
Happy Coding!
View GitHub Profile
We couldn’t find that file to show.
#!usr/bin/perl
use Perl6::Say;
use Data::Dumper;
my %hash = ('makoto' => 'perl',
'nozaki' => {});
sub push_hash{
my %hash = @_;
#!/usr/bin/perl
use strict;
use warnings;
use Perl6::Say;
use Data::Dumper;
use DateTime;
use LWP::UserAgent;
#!/usr/bin/perl
use strict;
use warnings;
use Imager;
my $filename = shift;
my $img = Imager->new;
$img->read( file => $filename ) or die $img->errstr;
$img->filter( type => 'contrast', intensity => 1.3 );
#!/usr/bin/perl
use strict;
use warnings;
use WebService::Simple;
use WebService::Simple::Parser::JSON;
use Perl6::Say;
use Data::Dumper;
use Encode;
@makotoworld
makotoworld / DB.pm
Created February 25, 2010 08:16
DeafNewsJp by Perl
#!/usr/bin/perl;
#DB.pm
package DB;
use DBIx::Skinny connect_info => +{
dsn => 'dbi:mysql:deafnews:localhost',
username => 'root',
password => 'password',
connect_options => +{
RaiseError => 1,
PrintError => 0,
my $charcter = "あいうえお";
utf8::decode($charcter);
print '検証文字列: ',$charcter,"\n";
if($charcter !~ /([\x{3041}-\x{30F6}])/) {
print 'ひらがなとカタカナが含まれていません';
}
#!/usr/bin/perl
# deaf_blog_yahoo_api.pl
use strict;
use warnings;
use WebService::Simple;
use WebService::Simple::Parser::JSON;
use Perl6::Say;
use Data::Dumper;
@makotoworld
makotoworld / DeafNewsJp Python
Created August 6, 2010 08:05
DeafNewsJp Python
import datetime
from google.appengine.ext import db
from google.appengine.api import users
class Deafnewsdb(db.Model):
keyword = db.StringProperty(required=True)
title = db.StringProperty(required=True)
url = db.StringProperty(required=True)
bitly_url = db.StringProperty(required=True)
publisher = db.StringProperty(required=True)