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
/** | |
* @description | |
* sort items in a list by text | |
* | |
* based on {@link http://stackoverflow.com/questions/1134976/how-may-i-sort-a-list-alphabetically-using-jquery} | |
* | |
* @param {String/Object} Selector or jQuery Object | |
* @param {Boolean} sort descending | |
*/ | |
(function ($) { |
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 | |
class ExtensionName_RestApiExtension extends JJ_RestApiExtension { | |
public static $url_handlers = array( | |
'ExtensionName/$Action/$ID' => 'handleExtensionName' | |
); | |
public static $allowed_actions = array( | |
'handleExtensionName' |
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
import org.json.*; | |
import java.lang.reflect.Method; | |
class AppConnector extends Thread { | |
private boolean isDebug, available, running; | |
// app reload interval. will be updated from the server | |
private int interval = 500; | |
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
import org.json.*; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.client.HttpClient; | |
import org.apache.http.client.methods.HttpPost; |
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
/* | |
* AppConnector.h | |
* appConnector | |
* | |
* Created by Jonathan Pirnay & Jörn Röder. | |
* Copyright 2012 jj. All rights reserved. | |
* | |
*/ | |
#include "ofMain.h" |
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
/* | |
* AppConnector.cpp | |
* appConnector | |
* | |
* Created by Jonathan Pirnay & Jörn Röder. | |
* Copyright 2012 jj. All rights reserved. | |
* | |
*/ | |
#include "AppConnector.h" |
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
/* | |
* RequestHandler.h | |
* appConnector | |
* | |
* Created by Jonathan Pirnay & Jörn Röder. | |
* Copyright 2012 jj. All rights reserved. | |
* | |
*/ | |
#include "ofMain.h" |
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
/* | |
* RequestHandler.cpp | |
* appConnector | |
* | |
* Created by Jonathan Pirnay & Jörn Röder. | |
* Copyright 2012 jj. All rights reserved. | |
* | |
*/ | |
#include "RequestHandler.h" |
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 fs = require('fs'), | |
express = require('express'), | |
app = express(), | |
redis = require('redis').createClient( | |
process.env.REDIS_PORT_6379_TCP_PORT || 6379, | |
process.env.REDIS_PORT_6379_TCP_ADDR || '127.0.0.1', | |
{} | |
), | |
server = require('http').createServer(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
// class pattern helpers | |
// | |
// @see https://stackoverflow.com/questions/1595611/how-to-properly-create-a-custom-object-in-javascript | |
// | |
Function.prototype.makeSubclass= function() { | |
function Class() { | |
if ('_init' in this) | |
this._init.apply(this, arguments); | |
} | |
Function.prototype.makeSubclass.nonconstructor.prototype= this.prototype; |
OlderNewer