Skip to content

Instantly share code, notes, and snippets.

@binaryfever
binaryfever / proxy.php
Created April 30, 2018 00:09 — forked from iovar/proxy.php
Simple PHP Proxy Script
<?php
/*
* Warning! Read and use at your own risk!
*
* This tiny proxy script is completely transparent and it passes
* all requests and headers without any checking of any kind.
* The same happens with JSON data. They are simply forwarded.
*
* This is just an easy and convenient solution for the AJAX
body>
<h1>Ginto Menu</h1>
<div class="nav-bar">
<ul>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=STARTERS"; ?>">Starters</a></li>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=SASHIMI"; ?>">Sashimi</a></li>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=SALAD"; ?>">Salads</a></li>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=FRIED"; ?>">Fried</a></li>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=YAKITORI"; ?>">Yakitori</a></li>
<li><a href="<?php echo $_SERVER['PHP_SELF'] . "?Category=ENTREE / DINNER SETS"; ?>">Entree / Dinner Sets</a></li>
@media only screen and (min-width: 768px) {
/* ====================
WIDE: CSS3 Effects
==================== */
.header-container,
.main aside {
-webkit-box-shadow: 0 5px 10px #aaa;
-moz-box-shadow: 0 5px 10px #aaa;
@media only screen and (min-width: 480px) {
/* ====================
INTERMEDIATE: Menu
==================== */
nav a {
float: left;
width: 27%;
margin: 0 1.7%;
-----------------------------------------------------------------------------------------
--
-- File: main.lua
--
-- Author: Jace W. Brown
-- Class: WNM 300 OL1: INTERACTIVE APPLICATIONS
-- Project: Assignment 10.1: Interactive Book—Accelerometer
--
-----------------------------------------------------------------------------------------
local function on_accelerometer( event )
if event.xGravity < 0 then
scene_index = scene_index - 1
if scene_index < 1 then
scene_index = 6
end
composer.gotoScene( scene_array[ scene_index ], {effect="slideRight", time=400} )
if event.xGravity > 0 then
scene_index = scene_index + 1
end
local function on_accelerometer( event )
if event.xGravity < 0 then
scene_index = scene_index - 1
if scene_index < 1 then
scene_index = 6
end
composer.gotoScene( scene_array[ scene_index ], {effect="slideRight", time=400} )
else if event.xGravity > 0 then
scene_index = scene_index + 1
if scene_index > #scene_array then
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="">
<!--<![endif]-->
<head>
<meta charset="utf-8">
local friends = {}
local function display_friends()
print( "*** Friends ***" )
for i = 1, #friends do
print( i, friends[i].name, friends[i].rating )
end
end
<body>
<div style="width:800px; margin:0 auto;">
centered content
</div>
</body>