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
package com.example.andviewmdb; | |
import android.support.v7.app.ActionBarActivity; | |
import android.os.Bundle; | |
import android.os.Environment; | |
import android.app.Activity; | |
import android.view.Menu; | |
import android.widget.LinearLayout; |
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
package com.example.andaddmdb; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.PreparedStatement; | |
import android.support.v7.app.ActionBarActivity; | |
import android.text.SpannableStringBuilder; | |
import android.os.Bundle; | |
import android.os.Environment; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.example.andexcelread" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="8" | |
android:targetSdkVersion="21" /> |
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() |
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
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
# 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
<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
#!/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
#!/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'; |
OlderNewer