Skip to content

Instantly share code, notes, and snippets.

curl -u 19614a6d-94a4-4788-a0bb-9d559f841b58:221610d0-4668-4379-9db7-29a086c98793 -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"deviceToken":"BSPA91bGDWDdl-xW3EmSs2bH7Qlo5AOfbCJtmyOukYxVHq8KKUqpPLBLUjettGYoN2nahBbAe3GgmxKPcZnqEIFFxHw3_brKOSmeXjZQuEVehSJTUdJuXUCmR3XweZ2MM_455fYMcvkUse1DIp1wjxnik2uHYSNl87wrJzLddoC7tPp-gch3eJAf","alias":"bob","categories":["lead"],"deviceType" : "iPhone", "operatingSystem" : "iOS", "osVersion" : "6.1.2"}' http://localhost:8080/ag-push/rest/registry/device
@lfryc
lfryc / windows.md
Created August 29, 2014 11:51 — forked from edewit/windows.md

##Toast Notifications

toast specs.

{
    "title" : "The title",
    "alert" :"HELLO!",
    "duration" : "short|long",
    "launch" : {
        "type": "toast",
@lfryc
lfryc / gist:86d46eb7b19314283dcb
Last active August 29, 2015 14:05
Show all WebSocket.send() invocations in Chrome Dev Tools console
(function( send ) {
WebSocket.prototype.send = function( data ) {
console.debug( 'WebSocket.send', data );
return send.call( this, data );
}
})( WebSocket.prototype.send );
@lfryc
lfryc / fails
Last active August 29, 2015 14:05
ws: open
ws1: init
WebSocket.send {"msgType":"add","id":"81082ff9-a3b5-421e-87fa-109c893c871b","clientId":"client1","content":"Do or do not, there is no try."}
ws2: init
WebSocket.send {"msgType":"add","id":"81082ff9-a3b5-421e-87fa-109c893c871b","clientId":"client2"}
ws2: sent
# switch Graphene to use remote reusable session
phantomjs --webdriver=4444 --remote-debugger-port=8888 --remote-debugger-autorun=true
# open browser at http://localhost:8888
adb devices -l
@lfryc
lfryc / aerogear.core.js
Created September 23, 2014 12:15
AeroGear.js Core with AMD
define("src/aerogear.core",
["exports"],
function(__exports__) {
"use strict";
/* AeroGear JavaScript Library
* https://github.com/aerogear/aerogear-js
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
@lfryc
lfryc / gist:db2bfb24baeb220487a7
Created October 22, 2014 12:41
Cordova Development

Windows

  1. install Visual Studio

  2. install Hybrid Tools

iPhone

serial

@lfryc
lfryc / gist:f9202da17f734933f471
Last active August 29, 2015 14:11
Easy MySQL in Docker
docker build -t easymysql github.com/nkratzke/easymysql
docker run -it -p 3306:3306 -e user="someuser" -e password="somepassword" -e right="WRITE" easymysql
#### second console:
### mind to change IP address to the docker address
docker run -it easymysql /bin/bash
root@408ffa1f5036:/# mysql -h 172.17.42.1 -u someuser -p
@lfryc
lfryc / README.md
Last active August 29, 2015 14:14
AeroGear Project Info Template

AeroGear Android Core Build Status

AeroGear's Android libraries were built as jar, apklib and aar using Maven and the android-maven-plugin. The project follows the standard Android project layout as opposed to the standard Maven layout so sources will be in /src instead of /src/main/java and can be imported directly into IDE as an Android project.

Core

The core library contains common components and interfaces which the rest of the AeroGear Android libraries depend on.

| | Project Info |