Skip to content

Instantly share code, notes, and snippets.

View lcharette's full-sized avatar
😱
(∩◕-◕)⊃━☆゚.*・。゚

Louis Charette lcharette

😱
(∩◕-◕)⊃━☆゚.*・。゚
View GitHub Profile
malou$ java -cp "bin/*" -Djava.library.path=native blueprint.Blueprint
Operating system detected: MacOS
Starting Blueprint v0021.. Good luck!
Current folder: /Users/malou/Downloads/Blueprint0021
Initializing database..
Cache is up to date.
Exception in Application start method
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
Ape.registerCmd("channelsUserNb", false, function(params, infos) {
//Object to be returned
var reponse = new Object;
//List of channel, as an Array
var channelList = params.channelList;
//We loop for every channel in the Array
for (x in channelList)
@lcharette
lcharette / objectPush.js
Last active August 29, 2015 14:01
APE Event Push SSJS Example
Ape.registerCmd("objectPush", true, function(params, infos) {
//Make sure we have a channel defined
if (params.channel && params.channel != null) {
var chan = Ape.getChannelByName(params.channel);
if (!chan) return ["401", "UNKNOWN_CHANNEL"];
//Make data optional
if (!params.data) {
@lcharette
lcharette / Server_response.js
Created April 30, 2014 16:01
APE Socket communication
HTTP / 1.1 200 OK
Pragma: no - cache
Cache - Control: no - cache,
must - revalidate
Expires: Thu,
27 Dec 1986 07: 30: 00 GMT
Content - Type: application / x - ape - event - stream
[{
"time": "1398873326",
#!/bin/sh
#
# Example init.d script with LSB support.
#
# Please read this init.d carefully and modify the sections to
# adjust it to the program you want to run.
#
# Copyright (c) 2007 Javier Fernandez-Sanguino <jfs@debian.org>
#
# This is free software; you may redistribute it and/or modify