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
| module(..., package.seeall) | |
| -- Source: http://keplerproject.github.com/wsapi/manual.html | |
| function run(wsapi_env) | |
| local headers = { ["Content-type"] = "text/html" } | |
| local function hello_text() | |
| local testStr = "aabb" | |
| local testStr2 = "ccdd" |
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 | |
| LUA_PATH="/usr/local/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;/root/.luarocks/share/lua/5.1//?.lua;/root/.luarocks/share/lua/5.1//?/init.lua;/usr/local/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;/usr/local/share/lua/5.1//?.lua;/usr/local/share/lua/5.1//?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;$LUA_PATH" | |
| LUA_CPATH="/usr/local/lib/lua/5.1//?.so;/root/.luarocks/lib/lua/5.1//?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so;$LUA_CPATH" | |
| export LUA_PATH LUA_CPATH | |
| exec "/usr/bin/lua" -lluarocks.loader "/usr/local/lib/luarocks/rocks/wsapi-xavante/1.4-1/bin/wsapi" "$@" | |
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
| # coding: utf-8 | |
| import web | |
| urls = ( | |
| '/hello/(.*)', 'Hello', | |
| '/upload', 'Upload', | |
| '/list', 'List', | |
| '/getimage/(.*)', 'GetImage', | |
| ) | |
| filedir = './upload' |
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
| Imports System | |
| Imports EnvDTE | |
| Imports EnvDTE80 | |
| Imports EnvDTE90 | |
| Imports System.Diagnostics | |
| Public Module Module1 | |
| Sub BeginMe() |
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
| from google.appengine.ext import webapp | |
| from google.appengine.ext.webapp.util import run_wsgi_app | |
| import logging | |
| from google.appengine.api import urlfetch | |
| from BeautifulSoup import * | |
| class SoapLinks(webapp.RequestHandler): | |
| def get(self, url): |
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
| from google.appengine.ext import webapp | |
| from google.appengine.ext.webapp.util import run_wsgi_app | |
| import logging | |
| from google.appengine.api import urlfetch | |
| from BeautifulSoup import * | |
| class SoapLinks(webapp.RequestHandler): | |
| def get(self, url): |
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 "stdafx.h" | |
| #include <stdlib.h> | |
| /* Magic numbers for the algorithm */ | |
| static const unsigned long mask01 = 0x01010101; | |
| static const unsigned long mask80 = 0x80808080; | |
| #define LONGPTR_MASK (sizeof(long) - 1) | |
| /* |
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 "stdafx.h" | |
| #include <stdlib.h> | |
| /* Magic numbers for the algorithm */ | |
| static const unsigned long mask01 = 0x01010101; | |
| static const unsigned long mask80 = 0x80808080; | |
| #define LONGPTR_MASK (sizeof(long) - 1) | |
| /* |
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 "stdafx.h" | |
| #include <stdlib.h> | |
| /* Magic numbers for the algorithm */ | |
| static const unsigned long mask01 = 0x01010101; | |
| static const unsigned long mask80 = 0x80808080; | |
| #define LONGPTR_MASK (sizeof(long) - 1) | |
| /* |
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 "stdafx.h" | |
| #include <stdio.h> | |
| /* fast strcpy -- Copyright (C) 2003 Thomas M. Ogrisegg <tom@hi-tek.fnord.at> */ | |
| //#include <string.h> | |
| //#include "dietfeatures.h" | |
| //#include "dietstring.h" | |
| // ----following are dietstring.h content. | |
| //#include <endian.h> | |
| //# define MKW(x) (x|x<<8|x<<16|x<<24) | |
| int MKW(int x) |