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
<?php | |
include('./init.php'); | |
if(!$_SESSION['user']) exit('login.'); | |
/* tweet text */ | |
$A[] = 'ブブ'; | |
$A[] = 'ブー'; | |
$A[] = 'ブォォオ'; | |
$A[] = 'ブォ'; |
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/php -q | |
<?php | |
/* a2addsite - てwきwとwうw自分用apache2サイト追加スクリプト */ | |
/* 最初は10行ぐらいだったんだけどねwwwwwwww */ | |
ob_end_clean(); | |
//放り込んでいくディレクトリ(最後にスラッシュ付ける) | |
$a2confdir = '/etc/apache2/sites-available/'; | |
//DocumentRootが存在しない場合は作成を試みるか |
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
/* | |
- API Access - | |
*/ | |
function makeOAuthSign(pUrl, pParameters) | |
{ | |
pUrl = oauth.apiroot + pUrl; | |
// create Array | |
var accessor = { | |
consumerSecret : oauth.consumerSecret, | |
tokenSecret : oauth.tokenSecret |
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
{ | |
// スライドモーション検出 | |
document.observe('touchmove',function(e){ | |
//e.preventDefault(); //スクロール禁止 | |
stat.touchmoveFlag = true; | |
}); | |
// リスト挙動 | |
var target = $$('li.status'); | |
for(var i = 0; i < target.length; i++){ |
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
<?php | |
if( ($_GET['xml'])&&($_GET['callback']) ) | |
{ | |
$url = strip_tags($_GET['xml']); | |
$callback = strip_tags($_GET['callback']); | |
header('Content-Type: text/javascript; charset=utf-8'); | |
if( $xml = @simplexml_load_file('http://' . $url) ) { | |
$json = json_encode($xml); | |
} else { | |
$json = 'null'; |
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
<?php | |
/* | |
/ >、 | |
厶/vvゝ | |
|| ・_・リ | |
川゚O O゚ | |
`` | |
*/ | |
/* | |
- 定数定義 - |
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
var http = require('http'); | |
var fs = require('fs'); | |
var sys = require('sys'); | |
var io = require('socket.io'); | |
var port = 13401; | |
var server = http.createServer(function(req, res){ | |
res.writeHead(301, { | |
'Content-Type': 'text/html', | |
'Location': 'http://localhost/', |
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
/** | |
* radio.sock.js (noradi client prototype 0) | |
* @version 0.0 | |
* @author Yuki KAN <@kanreisa> | |
**/ | |
Event.observe(window, 'load', init, false); | |
function init() | |
{ |
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
#!/bin/sh | |
ffmpeg -i $1 -vcodec copy -acodec copy ffcopy_$1 | |
rm $1 | |
mv ffcopy_$1 $1 |
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
/** | |
* node.js demo chat server (app.js) | |
**/ | |
var http = require('http'); | |
var io = require('socket.io'); | |
var port = 13902; | |
var server = http.createServer(function(req, res){ |
OlderNewer