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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using Excel = Microsoft.Office.Interop.Excel; |
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> | |
#include <time.h> | |
int main(void) | |
{ | |
time_t timer; | |
struct tm *t_st; | |
/* 現在時刻の取得 */ | |
time(&timer); |
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/perl | |
use strict; | |
use warnings; | |
use Web::Scraper; | |
use URI; | |
use Encode; | |
my $scraper = scraper { | |
process '//dl[@class="stocksInfo"]/dt[1]','numb' => 'TEXT'; |
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/local/bin/perl | |
use Win32::ODBC; | |
print "Content-type: text/html\n\n"; | |
print "<html>"; | |
print "<body>"; | |
$db= new Win32::ODBC("DSN=passwd"); |
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
<html> | |
<head> | |
<META HTTP-EQUIV="content-type" CONTENT="text/html; | |
charset=utf-8"> | |
</head> | |
<?php | |
$server = '127.0.0.1'; | |
$username = 'root'; | |
$password = 'root'; |
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
# coding=utf-8 | |
import jsm | |
if __name__ == "__main__": | |
import tempfile | |
q = jsm.Quotes() | |
c = jsm.QuotesCsv() | |
for range in (jsm.DAILY, jsm.WEEKLY, jsm.MONTHLY): | |
print(q.get_historical_prices(4689, range)) | |
c.save_historical_prices(tempfile.mktemp(dir='/tmp/'), 4689, range) |
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
from pyExcelerator import * | |
wb = Workbook() | |
ws = wb.add_sheet('0') | |
for row in xrange(100): | |
for col in xrange(10): | |
ws.write(row, col, '%d, %d' % (row, col)) | |
wb.save(r'test01.xls') |
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
import jsm | |
c = jsm.QuotesCsv() | |
c.save_historical_prices('4689.csv',4689) |
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
# -*- coding: utf-8 -*- | |
#!/usr/bin/env python | |
import urllib2 | |
import re | |
def getkabuka(code): | |
url='http://stocks.finance.yahoo.co.jp/stocks/detail/?code='+str(code)+'.T&d=1y' | |
f=urllib2.urlopen(url) | |
txt=f.read() |
NewerOlder