This file contains hidden or 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
| # coding:utf-8 | |
| require 'rubygems' | |
| require 'jpstock' | |
| # 証券コード => [優待に必要な株数, 優待額] | |
| codes = { | |
| '2131' => [5, 15000], | |
| '4665' => [100, 1000], | |
| '4839' => [1, 2000], | |
| '7291' => [100, 1000], |
This file contains hidden or 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
| user nginx; | |
| worker_processes 2; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
This file contains hidden or 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
| # coding:utf-8 | |
| require 'rubygems' | |
| require 'jpstock' | |
| # 証券コード => [優待に必要な株数, 優待額] | |
| codes = { | |
| '6875' => [100, 3000], | |
| '7291' => [100, 1000], | |
| '7313' => [100, 3000], | |
| '1334' => [1000, 3000], |
This file contains hidden or 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
| Set objMail = CreateObject("CDO.Message") | |
| objMail.From = "hoge@gmail.com" | |
| objMail.To = "foo@gmail.com" | |
| objMail.Subject = "テスト" | |
| objMail.TextBody = "本文" | |
| strConfigurationField ="http://schemas.microsoft.com/cdo/configuration/" | |
| With objMail.Configuration.Fields | |
| .Item(strConfigurationField & "sendusing") = 2 |
This file contains hidden or 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
| my | |
| $X=eval | |
| "\x63\x68\x72 | |
| 44" | |
| and | |
| my | |
| $Y=eval | |
| "\x63\x68\x72 | |
| 32" | |
| and |
This file contains hidden or 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
| # coding:utf-8 | |
| require 'rubygems' | |
| require 'jpstock' | |
| # 取得価額から逆日歩最高料率を計算して、 | |
| # 優待額との差をだし、 | |
| # お得かどうか判断します | |
| # 逆日歩最高料率の計算 | |
| def max_gyakuhibu(price, lot) | |
| m = price * lot |
This file contains hidden or 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
| require 'maimailog' | |
| require 'json' | |
| require 'optparse' | |
| require 'io/console' | |
| opts = {} | |
| opt = OptionParser.new | |
| opt.on('-u USERID', 'maimainet user id') { |v| opts[:u] = v } | |
| opt.on('-p', 'maimainet password') { |v| opts[:p] = v } | |
| opt.parse!(ARGV) |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| const ( | |
| zun = "ズン" |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "strings" | |
| "golang.org/x/oauth2" |
This file contains hidden or 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
| package main | |
| import ( | |
| "encoding/base64" | |
| "io/ioutil" | |
| "log" | |
| "net/url" | |
| "github.com/ChimeraCoder/anaconda" | |
| ) |