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 google.appengine.ext import webapp | |
from google.appengine.ext.webapp import util | |
from google.appengine.ext import db | |
import wsgiref.handlers | |
from net.glassesfactory.models import AMFImgData | |
from pyamf.remoting.gateway.wsgi import WSGIGateway | |
class MainHandler(webapp.RequestHandler): | |
def get(self): |
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 | |
NGINX=nginx-1.0.6 | |
cd $NGINX | |
./configure \ | |
--prefix=/usr/local/$NGINX \ | |
--conf-path=/etc/nginx/nginx.conf \ | |
--error-log-path=/var/log/nginx/error.log \ | |
--pid-path=/var/run/nginx/nginx.pid \ |
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
#OS Ubuntu Server 11.04 | |
#ハード構成: Core2Duo 2Core(多分) メモリ:1024MB HDD:30GB | |
#自宅鯖に kvm で仮想環境作って動かしちょります。 | |
#nginx いれるよ | |
$ sudo apt-get install build-essential | |
$ sudo adduser nginx --home=/var/www --shell=/sbin/nologin | |
$ mkdir src | |
$ cd src | |
$ wget wget http://nginx.org/download/nginx-1.0.6.tar.gz |
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
ExternalInterface.call('function(url){window.open(url, "うぃんどうめい","width=550,height=450,scrollbars=no,resizable=no,status=no");}', 'うーあーる'); |
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
[program:worm] | |
priority=3 | |
command= /usr/local/bin/node /var/www/dev/node_worm.js | |
user=root | |
autostart=true | |
autorestart=true | |
redirect_stderr=true | |
exitcodes=0 | |
stopsignal=INT | |
stdout_logfile=/var/log/test4js.log |
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
/*//////////////////////////////////////////// | |
GFWindowObsererTest | |
Autor glassesfactory | |
Date 2011/10/19 | |
Copyright 2011 glasses factory | |
http://glasses-factory.net |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja"> | |
<head> | |
<title></title> | |
<meta name="google" value="notranslate"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript"> | |
if(!window.opener || window.opener.closed){ | |
} |
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
efo = EnterFrameObserver = window.EnterFrameObserver = (fps)-> | |
@fps = fps | |
@listeners = {} | |
@listenerNum = 0 | |
@ticker = null | |
@isRunning = false | |
EnterFrameObserver.prototype.add = (listener)-> | |
if efo.isRunning | |
return |
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
class ParallaxObj | |
id:"" | |
target:null | |
#イージング関数 jquery.easing とか | |
easing:null | |
currentPos:0 | |
#scroll がどの辺まで来たらアニメーションが完了するか | |
threshold:0 | |
#scroll がどの辺まで来たらアニメーションを開始するか、オフセット値 |
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
class Easing | |
###Liner### | |
liner:(t,b,c,d)-> | |
return c * t / d + b | |
###Sine### | |
SineIn:(t,b,c,d)-> | |
return -c * Math.cos(t / d * (Math.PI / 2 )) + c + b |
OlderNewer