Skip to content

Instantly share code, notes, and snippets.

Avatar
😱
(∩◕-◕)⊃━☆゚.*・。゚

Louis Charette lcharette

😱
(∩◕-◕)⊃━☆゚.*・。゚
View GitHub Profile
View Blueprint_0021_MacOS
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)
@lcharette
lcharette / objectPush.js
Last active Aug 29, 2015
APE Event Push SSJS Example
View objectPush.js
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 Apr 30, 2014
APE Socket communication
View Server_response.js
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",
View ape-server
#!/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
View gist:5095452
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)