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/env perl | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use MIME::Base64; | |
use YAML qw(LoadFile); | |
use Data::Dumper; | |
$config = LoadFile("$ENV{HOME}/.posterous"); |
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/evn perl | |
# this simple script demostrate modifying symbol table at runtime | |
use 5.010; | |
package Hello; | |
sub hello { | |
"hello"; | |
} |
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/env perl | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use UNIVERSAL::dump; | |
use XML::Simple; | |
use Data::Dumper; | |
use YAML qw(LoadFile); | |
$config = LoadFile "$ENV{HOME}/.posterous"; |
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/env perl | |
use LWP::UserAgent; | |
use HTTP::Request; | |
use UNIVERSAL::dump; | |
use YAML qw(LoadFile); | |
package HTTP::Request; | |
sub authorization_basic { |
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/env perl | |
use 5.010; | |
use warnings; | |
use utf8; | |
use DBI; | |
use SQL::Abstract; | |
use Data::Dumper; |
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
diff --git a/lib/Mojo/Template.pm b/lib/Mojo/Template.pm | |
index b18ea02..2d81da2 100755 | |
--- a/lib/Mojo/Template.pm | |
+++ b/lib/Mojo/Template.pm | |
@@ -88,6 +88,15 @@ sub compile { | |
my $code = $self->code; | |
return unless $code; | |
+ my $c = shift; | |
+ my $declare_stash; |
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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
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/env ruby | |
$:.unshift "example.ext" | |
require "example" | |
puts Example.new.just_hello | |
puts Example.new.hello("shelling") |
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
#include <stdio.h> | |
/* Question: | |
** write a program to solve equation set | |
** ax + by = 1 | |
** cx + dy = 2 | |
** and print the result | |
*/ | |
int main(void) | |
{ |