Skip to content

Instantly share code, notes, and snippets.

View junichiro's full-sized avatar

Junichiro Tobe junichiro

  • Novasell
  • Tokyo, Japan
View GitHub Profile
var MYAPP = {};
MYAPP.util = {
getData: function () {
var query_string = window.document.location.href.split('?')[1];
var data = query_string.split('&');
var result = {};
var tmp;
for(var i=0; i<data.length; i++) {
tmp = data[i].split('=');
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<body>
<div style="background-color:skyblue;padding-top:0px;">
<div style="float:left;">
<a href="#">
<img src="http://sc.e-3.ne.jp/images/help.png" alt="help" />
</a>
</div>
<br style="clear:both;" />
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<link href="reset.css" media="screen" rel="stylesheet" type="text/css" />
</head>
<body>
<div style="background-color:skyblue;padding-top:0;">
<img src="http://sc.e-3.ne.jp/images/help.png" alt="help" />
</div>
</body>
alias pmver="perl -le '\$m = shift; eval qq(require \$m) or die qq(module \"\$m\" is not installed\\n); print \$m->VERSION'"
@junichiro
junichiro / amazon_report_mail.pl
Created February 25, 2011 01:54
amazon affiliate report mail.
#!/usr/local/bin/perl
use strict;
use warnings;
use WWW::Mechanize;
use HTTP::Cookies;
use Email::Sender::Simple 'sendmail';
use Email::MIME;
use Email::MIME::Creator;
use Encode qw/encode decode from_to/;
@junichiro
junichiro / create_link_region.pl
Created March 1, 2011 06:30
create a tag with title by uri. (Web::Scraper version)
@junichiro
junichiro / seq_no_1.pl
Created March 3, 2011 06:36
generate sequencial number.
perl -e 'print "$_\n" for (1..100)'
#!/bin/bash
cd /root
ec2-bundle-vol -d /mnt --privatekey [path of your private key(pk-XXXX.pem] ¥
--cert [path of your cert(cert-XXXX.pem)] ¥
--user [your user id(XXXX-XXXX-XXXX)] ¥
--fstab /etc/fstab
#!/bin/bash
cd /root
ec2-bundle-vol -d /mnt --privatekey [path of other private key(pk-XXXX.pem] ¥
--cert [path of other cert(cert-XXXX.pem)] ¥
--user [other user id(XXXX-XXXX-XXXX)] ¥
--fstab /etc/fstab