Skip to content

Instantly share code, notes, and snippets.

View Todo_service_basic.bal
import ballerina/log;
import ballerina/http;
listener http:Listener todosListener = new(9090);
@http:ServiceConfig {
basePath: "/todos"
}
service TodoService on todosListener {
View sample-dashboard.json
menuItems : [
{
"title" : "sdsd",
"childMenus" : [
{
"title" : "child-menu 01",
"tabs" : [
{ "title" : "some dumb title",
"description" : null,
"widgets" : [
@dunithd
dunithd / JabberClient.java
Created Nov 1, 2010
Jabber client that connects to GTalk and sends a message
View JabberClient.java
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) {