Skip to content

Instantly share code, notes, and snippets.

@edewit
edewit / cordova.md
Last active August 29, 2015 14:03 — forked from matzew/cordova.md

Requirements

  • Have gpg-agent installed, configured and running. One way to be sure to check if your gpg agent is running correctly is to encrypt and decrypt a file, using the gpg tool, don't forget to pass the --use-agent option, you should be prompted with a dialog (depending on your OS asking for your pass phrase). Now try to decrypt again, you hsould not be asked again for your pass phrase : your agent is working.

Release process

Preparation

Once the code is ready to be released, create a branch that indicates the version, e.g. 0.5.0-release and send a heads-up (or vote) email to the mailing list asking to test the bits before we do release.

@edewit
edewit / api.md
Last active August 29, 2015 14:03
- (void)echo:(CDVInvokedUrlCommand*)command
{
    CDVPluginResult* pluginResult = nil;
    NSString* echo = [command.arguments objectAtIndex:0];
    
    if (echo != nil && [echo length] > 0) {
        pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsString:echo];
    } else {
 pluginResult = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR];
@Override
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) throws JSONException {
if ("echo".equals(action)) {
this.echo(args.getString(0), callbackContext);
return true;
}
return false; // Returning false results in a "MethodNotFound" error.
}
public void echo(String echo, CallbackContext callbackContext) {
<dependency id="org.jboss.aerogear.cordova.android.reflect" url="https://github.com/edewit/aerogear-reflect-cordova.git"/>
public class Echo extends BasePlugin {
public boolean echo(String echo, CallbackContext callbackContext) {
callbackContext.success(message);
return true;
}
@edewit
edewit / windows.md
Last active August 29, 2015 14:04

##Toast Notifications

toast specs.

{
    "title" : "The title",
    "alert" :"HELLO!",
    "duration" : "short|long",
    "launch" : {
        "type": "toast",
{
       "variants" : ["c3f0a94f-48de-4b77-a08e-68114460857e", "444939cd-ae63-4ce1-96a4-de74b77e3737" ....],
       "alias" : ["user@account.com", "someone@aerogear.org", ....],
       "categories" : ["someCategory", "otherCategory"],
       "deviceType" : ["iPad", "AndroidTablet"],
       "ttl" : 3600,
       "message": {
         "alert":"HELLO!",
 "sound":"default",
/*
Converts A class to a dictionary, used for serializing dictionaries to JSON
Supported objects:
- Serializable derived classes
- Arrays of Serializable
- NSData
- String, Numeric, and all other NSJSONSerialization supported objects
oauth2.google("517285908032-l580qf378r0jg5l9ebt52ugvbp5vvf06.apps.googleusercontent.com", ['openid', 'email'])
.then(function (result) {
console.log(result);
}, function (error) {
alert(error);
});
-- phpMyAdmin SQL Dump
-- version 3.5.7
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Nov 14, 2014 at 01:28 PM
-- Server version: 5.5.29
-- PHP Version: 5.4.10
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";