Skip to content

Instantly share code, notes, and snippets.

import ballerina/log;
import ballerina/http;
listener http:Listener todosListener = new(9090);
@http:ServiceConfig {
basePath: "/todos"
}
service TodoService on todosListener {
@dunithd
dunithd / JabberClient.java
Created November 1, 2010 10:55
Jabber client that connects to GTalk and sends a message
package com.dunithd.jabber;
import org.jivesoftware.smack.*;
import org.jivesoftware.smack.packet.Message;
import java.util.Collection;
public class JabberClient {
public static void main(String[] args) {
menuItems : [
{
"title" : "sdsd",
"childMenus" : [
{
"title" : "child-menu 01",
"tabs" : [
{ "title" : "some dumb title",
"description" : null,
"widgets" : [