Skip to content

Instantly share code, notes, and snippets.

View basictomonokai's full-sized avatar

basictomonokai

View GitHub Profile
@basictomonokai
basictomonokai / a-htmlpnl1.bas.txt
Last active November 8, 2016 04:04
地震情報取得メインプログラム(a-namazu1.bas)、一覧表示用外部関数(a-htmlpnlnmz2.bas)、確認表示用外部関数(a-htmlpnl1.bas)、地図表示用HTML(osm.htm)
fn.def ynbox1$(titl$,odai$,honbun$)
outhtmlk$="\n"
outhtml$="?<html>"+outhtmlk$
outhtml$=outhtml$+""+outhtmlk$
outhtml$=outhtml$+"<head >"+outhtmlk$
outhtml$=outhtml$+""+outhtmlk$
outhtml$=outhtml$+" <meta http-equiv=\"content-type\" content=\"text/html;charset=UTF-8\"/>"+outhtmlk$
outhtml$=outhtml$+""+outhtmlk$
outhtml$=outhtml$+"<style type=\"text/css\">"+outhtmlk$
@basictomonokai
basictomonokai / itiran.html
Created November 8, 2016 09:26
地震情報取得ツール内部生成HTMLのサンプル
<html>
<head >
<meta http-equiv="content-type" content="text/html;charset=UTF-8"/>
<link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1">
@basictomonokai
basictomonokai / advindex.html
Created November 29, 2016 01:37
スライド表示プログラムとロード用HTMLファイル(BASIC! for Android)
<!DOCTYPE html>
<html >
<head>
<meta charset="UTF-8">
<link href="https://fonts.googleapis.com/earlyaccess/roundedmplus1c.css" rel="stylesheet" />
<style>
.wf-roundedmplus1c { font-family: "Rounded Mplus 1c"; }
</style>
@basictomonokai
basictomonokai / t-kanko1.bas.txt
Created December 26, 2016 13:33
観光情報取得 その1
REM Start of BASIC! Program
johourl1$="https://www.chiikinogennki.soumu.go.jp/k-cloud-api/v001/kanko/"
johourl2$="/xml?place="
johourl3$="&limit=20"
genre$="植物;庭園"
pref$="京都府"
egenre$=encode$("URL",,genre$)
@basictomonokai
basictomonokai / snippet-system.txt
Created March 13, 2017 12:18
system命令(BASIC!)
system.open
ansf$=replace$(ansz$,"../../","/sdcard/")
aaa$="/system/bin/am start -a android.intent.action.VIEW -t \"text/*\" "
bbb$="-c \"android.intent.category.DEFAULT\""
ddd$=" -d file:"+ansf$
ccc$=aaa$+bbb$+ddd$+" --user 0"
system.write ccc$
pause 5000
system.close
@basictomonokai
basictomonokai / snippet-dialogselect.txt
Created March 13, 2017 12:21
dialog.select命令(BASIC!)
dim selsyo$[3]
nxtsyo:
console.title "画像サイズ拡張子変換"
selsyo$[1]="jpg,png両方とも保存する"
selsyo$[2]="jpgのみ保存する"
selsyo$[3]="pngのみ保存する"
sailog:
@basictomonokai
basictomonokai / snippet-fndef.txt
Created March 13, 2017 12:24
fn.def命令(BASIC!)
fn.def lupget1$(urlx$)
fn.rtn outdata$
fn.end
@basictomonokai
basictomonokai / snippet-time.txt
Created March 13, 2017 12:25
time命令(BASIC!)
time y$, m$, d$, h$, n$, s$
today$=y$+m$+d$+h$+n$+s$
@basictomonokai
basictomonokai / snippet-appstart.txt
Created March 13, 2017 12:27
app.start命令(BASIC!)
bundle.create bptr
bundle.put bptr,"Intent.EXTRA_STREAM","file://" + root$ + "/" + filename$
app.start "android.intent.action.SEND","file://" + root$ + "/" + filename$,,,"text/*",,bptr
@basictomonokai
basictomonokai / snippet-wifi.txt
Created March 13, 2017 12:29
wifiチェック(BASIC!)
socket.myip ip$
if ip$="" then
popup "wi-fi未接続 終了します",0,0,1
exit
else
popup "wi-fi接続済",0,0,1
pause 4000
endif