Skip to content

Instantly share code, notes, and snippets.

View aanoaa's full-sized avatar
💭
💩 💩 💩

Hyungsuk Hong aanoaa

💭
💩 💩 💩
View GitHub Profile
# Configuration is done per "Connection".
<Config>
<Connection freenode>
Network freenode
LoadModule Echo
LoadModule Eval
LoadModule Kspell
LoadModule Letter
LoadModule Twitter
#!/usr/bin/env perl
use strict;
use warnings;
use AnyEvent;
use AnyEvent::HTTP;
use LWP::Simple;
use Data::Dumper;
use DateTime::Format::W3CDTF;
use DBI;
use File::Temp;
use DateTime::Format::W3CDTF;
my $ts = "2010-12-23T23:05:24+09:00";
my $date = DateTime::Format::W3CDTF->parse_datetime($ts);
print $date->ymd, "\n";
print $date->hms, "\n";
print $date->epoch, "\n";
#use DateTime::Format::Strptime;
#my $Strp = new (
@aanoaa
aanoaa / wwwget.pl
Created December 17, 2010 07:20
HTTP Message capture
#!/usr/bin/env perl
use strict;
use warnings;
use IO::Socket;
use Time::HiRes qw[gettimeofday tv_interval];
my $time=[gettimeofday()];
unless(@ARGV>1) {
die "usage: $0 host port [document+]\n";
}
@aanoaa
aanoaa / yaaic - fullscreen
Created December 16, 2010 09:39
갤탭같이 큰화면에서 yaaic 를 fullscreen으로 즐기장
diff --git a/application/.classpath b/application/.classpath
index 609aa00..6efcbb7 100644
--- a/application/.classpath
+++ b/application/.classpath
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="gen"/>
@aanoaa
aanoaa / inheritance.pl
Created November 1, 2010 08:14
inheritance test in moose
#!/usr/bin/env perl
package Foo;
use Moose;
has package => (
is => 'ro',
isa => 'Str',
default => __PACKAGE__
);
__PACKAGE__->meta->make_immutable;
#!/usr/bin/perl
# gitweb - simple web interface to track changes in git repositories
#
# (C) 2005-2006, Kay Sievers <[email protected]>
# (C) 2005, Christian Gierke
#
# This program is licensed under the GPLv2
use strict;
@aanoaa
aanoaa / a.mkdn
Created September 27, 2010 04:06
  • 10.14 목요일 ~ 10.17 일요일
    • 가격: 483,500 (유류세 포함)
    • 항공사: 델타항공
    • 상행 10.14
      • 출발 인천 공항 10:40
      • 도착 나리타 공항 13:15
    • 하행 10.17
      • 출발 나리타 공항 19:00
      • 도착 인천 공항 21:45
#!/usr/bin/env perl
use Plack::Request;
use Plack::Response;
use Const::Fast;
use Path::Class;
use XML::Twig;
use LWP::UserAgent;
use Carp qw/confess/;
use utf8;
use Encode qw/encode decode/;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.DataOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;