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
testtest |
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
copy 関数を firebug のコンソールで実行すると、クリップボードにコピーできる。 | |
こんな感じでデータの整形とかやると便利 | |
copy(<> | |
<![CDATA[ | |
hoge | |
fuga | |
piyo | |
]]> | |
</>.split('\n').map(function(n,i){ | |
return 'x' +n; |
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
javascript:(function(){var d = new Date();var t = d.getHours() * 60 + d.getMinutes();if(t < 1000){t='0'+t}; var url='http://orega.tv/images/m' + t + '.jpg';var e = document.createElement("img");e.src=url;document.body.appendChild(e);e.style.position = 'absolute';e.style.top = '0px';e.style.left = '0px';})() |
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
# sinatra ファイルの分割 via http://www.sinatrarb.com/book.html#splitting_into_multiple_files | |
############################## | |
# main.rb | |
############################## | |
require 'rubygems' | |
require 'sinatra' | |
get '/' do | |
"hello world" |
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
#include <stdio.h> | |
int main(int argc, char* argv[]) { | |
int i = 0; | |
for(i = 0; i < argc; i++) { | |
printf("argv[%d]=%s\n", i, argv[i]); | |
} | |
} |
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
private function dropTable():void { | |
trace("dropTable") | |
var stmt:SQLStatement = new SQLStatement(); | |
stmt.sqlConnection = con; | |
stmt.text = "DROP TABLE IF EXISTS player;"; | |
stmt.addEventListener(SQLEvent.RESULT, stmtCreateResult2); | |
stmt.addEventListener(SQLErrorEvent.ERROR,stmtErrorHandler2); | |
stmt.execute(); | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" applicationComplete="init()"> | |
<mx:DataGrid x="64" y="42" id="dataGrid"> | |
<mx:columns> | |
<mx:DataGridColumn headerText="列 1" dataField="color"/> | |
<mx:DataGridColumn headerText="列 2" dataField="cpu"/> | |
<mx:DataGridColumn headerText="列 3" dataField="drive.c"/> | |
<mx:DataGridColumn headerText="列 4" dataField="drive.d"/> | |
</mx:columns> | |
</mx:DataGrid> |
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
#!/bin/sh | |
INPUT_MESSAGE="exec ok?[Y/n] "; | |
# OK Cancel のアレ | |
while [ "${READ_KEY}" != "Y" ] && [ "${READ_KEY}" != "n" ]; do | |
echo -n "${INPUT_MESSAGE}" | |
read READ_KEY; | |
done; |
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
#!/bin/sh | |
############################################## | |
# サーバへアプリケーション等をデプロイします | |
############################################## | |
#------------------------ | |
# ファイルチェック関数 | |
#------------------------ | |
func_file_test () { | |
if [ -d ${SRC_DIR_STATIC_CONTENT} ] ; then |
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
これでリモートサーバのファイルをローカルに同期できる。 | |
具体的にはリモートサーバの /fuga がローカルの /hoge/fuga に同期されるよ | |
rsync -avrz --delete user@remote:/fuga /hoge |
OlderNewer