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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>keypress</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
</head> | |
<body id="content"> | |
<input id="textInput" type="text"> |
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
ファイルを送る | |
scp ファイル名 ユーザ@接続先ホスト:保存先 | |
# scp ./localfile.txt [email protected]:~/ | |
ファイルを取得する | |
scp ユーザ@接続先ホスト:ファイル名 保存先 | |
# scp [email protected]:~/serverfile.txt ~/ | |
シャットダウン | |
# shutdown -h now |
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
ログイン | |
$ mysql -u ユーザー名 -h ホスト名 -D データベース名 -p | |
rootのパスワードを設定 | |
$ mysqladmin -u root password 'パスワード' | |
ダンプ | |
$ mysqldump -h ホスト名 -u ユーザー名 データベース名 -p | |
DB作成 |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
</head> | |
<body> | |
<?php | |
$strDate[0] = "2012-10-28"; | |
$strDate[1] = "2012-10-29"; |
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 expandtab | |
"タブスペース | |
set ts=2 | |
"新しい行のインデントを現在行と同じにする | |
set autoindent |
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
シェルスクリプト問題 | |
はじめに | |
シェルスクリプトでは算術演算にexprコマンドを使います。 | |
# exprコマンドで実行した結果をaの変数に格納する | |
a=`expr 1+2` | |
またbashの機能として |
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
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>PHP XML</title> | |
</head> | |
<body> | |
<?php | |
function readXml(){ |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Flickr API</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
function ajaxStart () { | |
$.ajax({ | |
url: "http://api.flickr.com/services/feeds/photos_public.gne?jsoncallback=?", |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Instagram API</title> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.5.1.min.js"></script> | |
<script type="text/javascript" charset="utf-8"> | |
function ajaxStart () { | |
$.ajax({ | |
url: "https://api.instagram.com/v1/media/popular", |