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
app.get('/', function(res, req){ | |
getCookie.execute({ | |
function(err,path,cookie){ | |
handleForward(path,cookie,function(cookie){ | |
//done | |
}) | |
}) | |
}) | |
}) |
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
exports.category = function(req, res){ | |
console.log(JSON.stringify(req.category)); | |
res.render('category/category',{ | |
title:"Category Page", | |
categories:req.categories, | |
currcategory:req.category, | |
err:req.err | |
}) | |
} |
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
//in main app: | |
require('./routes').init(app); | |
//index.js in folder /routes | |
module.exports = | |
{ | |
init:function(app){ | |
require('./index')(app); | |
} | |
} |
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
//STATICS | |
var GOOGLE_CLIENT_ID = "", | |
SSL_PORT = "443", | |
GOOGLE_CLIENT_SECRET = "", | |
GOOGLE_URLS = { | |
USER_INFO: "/oauth2/v1/userinfo", | |
GET_TOKEN: '/o/oauth2/token', | |
}, | |
GOOGLE_DOMAINS = { |
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 5 | |
html | |
head | |
block head | |
title= title | |
link(rel='stylesheet', href='/stylesheets/style.css') | |
link(rel='stylesheet', href='/stylesheets/mobile.css', media='screen and (max-device-width: 480px)') | |
body |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="org.gleason.gametutorial" | |
android:versionCode="1" | |
android:versionName="1.0" > | |
<uses-sdk | |
android:minSdkVersion="16" | |
android:targetSdkVersion="17" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK"/> | |
<application |
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
<?xml version="1.0" encoding="utf-8"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="org.gleason.superhockey" | |
android:versionCode="1" | |
android:versionName="1.1" > | |
<uses-sdk | |
android:minSdkVersion="14" | |
android:targetSdkVersion="17" /> | |
<uses-permission android:name="android.permission.WAKE_LOCK"/> |
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
setLeftPad(Pad.create(world, 50.0f, 30.0f)); | |
setPuck(Puck.create(world, Gdx.graphics.getWidth() / 2, | |
Gdx.graphics.getHeight() / 2)); |
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
LOCAL_PATH := $(call my-dir) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := SDL-prebuilt | |
LOCAL_SRC_FILES := $(LOCAL_PATH)/ext/SDL/$(TARGET_ARCH_ABI)/libSDL.so | |
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/ext/include | |
include $(PREBUILT_SHARED_LIBRARY) | |
include $(CLEAR_VARS) | |
LOCAL_MODULE := SDL-NET | |
LOCAL_C_INCLUDES := $(LOCAL_PATH) $(LOCAL_PATH)/include |
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
#include "game-gl.h" | |
#include <jni.h> | |
#include "box2d.hpp" | |
JNIEXPORT void JNICALL Java_com_gleason_gl_nat_Native_init(JNIEnv* env, jclass class) | |
{ | |
InitializeOpenGL(); | |
} |
OlderNewer