Skip to content

Instantly share code, notes, and snippets.

View sioncojp's full-sized avatar

Shohei "Sion" Koyama sioncojp

View GitHub Profile
#!/usr/bin/perl
use warnings;
use strict;
my $profile01 = {
id => 'sion_cojp',
lang => [
'perl',
'bash',
#!/usr/local/bin/perl
#### 引数に株式名を入れて下さい。########
#### ex) perl kabuka.pl 引数 ########
use strict;
use warnings;
use Web::Scraper;
use URI;
use Encode;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset="UTF-8">
<title>ログイン画面</title>
</head>
<body>
<form name ="login" action="check_login.pl" METHOD="POST">
<table border=0 cellspacing=0>
<tr><td>ログイン名:</td><td><input type="text" name="login_user" size="20"></td></tr>
<tr><td>パスワード:</td><td><input type="text" name="login_password" size="20"></td></tr>
## iTerm2にsolarizedを導入
http://ethanschoonover.com/solarizedを落として、~/以下に移動
iterm->preferences->profile->color->load profile
## vimにsolarizedを導入
$mkdir ~/.vim
$git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
$vim .vimrc
set nocompatible " be iMproved
$sudo brew install rbenv
$sudo brew install ruby-build
※makeコマンドがない場合
xcode->preference->downloadでcuiをインストール
linux版
$sudo yum install git
$git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
$git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
$cd .rbenv/plugins/ruby-build/
#!/usr/bin/perl
use strict;
use warnings;
use Cache::Memcached::Fast;
my (@even, @odd, $str, $ii, $i, @data, $key, $value, $exptime, $file, $memd);
### ファイル名を指定してください
$file = "/tmp/11211.dump";
#!/usr/bin/perl
use strict;
use warnings;
use Cache::Memcached::Fast;
use String::Random;
my $memd = Cache::Memcached::Fast->new({
servers => [{address => 'localhost:11211'}],
utf8 => ($^V ge v5.8.1 ? 1 : 0),
});
#!/usr/bin/python
import urllib2
import sys
try:
import json
except ImportError:
import simplejson as json
MACKEREL_API_KEY=''
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import locale
import time
import curses
import sys, string
import random
import struct
# atom keymapのbackup用