Skip to content

Instantly share code, notes, and snippets.

View gslin's full-sized avatar

Gea-Suan Lin gslin

View GitHub Profile
$VAR1 = {
'SCRIPT_NAME' => '/test.pl',
'SERVER_NAME' => 0,
'HTTP_REFERER' => 'http://xxx.xx:5000/',
'HTTP_ACCEPT_ENCODING' => 'gzip,deflate',
'HTTP_CONNECTION' => 'keep-alive',
'PATH_INFO' => '',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'REQUEST_METHOD' => 'GET',
'SERVER_SOFTWARE' => 'CGI-Emulate-PSGI',
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
<version>1.0</version>
<type>photo</type>
<author_url>http://www.flickr.com/photos/bees/</author_url>
<cache_age>3600</cache_age>
<provider_name>Flickr</provider_name>
<provider_url>http://www.flickr.com/</provider_url>
<title>ZB8T0193</title>
{
"width" : 425,
"author_name" : "YouTubeHelp",
"author_url" : "http://www.youtube.com/user/YouTubeHelp",
"version" : "1.0",
"provider_url" : "http://www.youtube.com/",
"provider_name" : "YouTube",
"thumbnail_width" : 480,
"thumbnail_url" : "http://i3.ytimg.com/vi/ZA22WSVlCZ4/hqdefault.jpg",
"height" : 344,
#
name "Restore Fonts Packages"
outFile "Setup.exe"
setCompressor /solid lzma
installDir "$WINDIR\Fonts"
section
setOutPath $INSTDIR
file "Inconsolata\Inconsolata.otf"
From chesada@eng.cmu.ac.th Mon Mar 7 16:45:41 2011
Return-Path: <chesada@eng.cmu.ac.th>
X-Original-To: gslin@gslin.org
Delivered-To: gslin@gslin.org
Received: from x1.develooper.com (x1.develooper.com [207.171.7.70])
by colo-p.gslin.org (Postfix) with SMTP id 812537E819
for <gslin@gslin.org>; Mon, 7 Mar 2011 16:45:40 +0800 (CST)
Received: (qmail 3700 invoked by uid 225); 7 Mar 2011 08:45:38 -0000
Delivered-To: gslin@cpan.org
Received: (qmail 3681 invoked by uid 103); 7 Mar 2011 08:45:38 -0000
if [[ -f $HOME/.perlbrew/init ]]; then
source $HOME/.perlbrew/init
fi
short_option=""
__perlbrew_reinit () {
echo '# DO NOT EDIT THIS FILE' > $HOME/.perlbrew/init
command perlbrew $short_option env $1 >> $HOME/.perlbrew/init
source $HOME/.perlbrew/init
package Mojolicious::Plugin::MarkaplRenderer;
use strict;
use warnings;
use Mojo::Base 'Mojolicious::Plugin';
sub register {
my ($self, $app, $conf) = @_;
$conf ||= {};
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use DBI;
use LWP::Simple;
use WWW::Mechanize;
use XML::RSS;
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use OAuth::Lite::Consumer;
INIT {
my $c = OAuth::Lite::Consumer->new(
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use OAuth::Lite::Consumer;
use OAuth::Lite::Token;
use encoding ':locale';