This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var buildPlatformString = function(platform){ | |
var platform = platform.toUpperCase(); | |
if ( platform== 'ANDROID'){ | |
platform = 'devices.platform_id=1'; | |
}else if (platform == 'IOS'){ | |
platform = '(devices.platform_id=2 or devices.platform_id=3 or devices.platform_id=4)'; | |
} | |
return platform; | |
} | |
var buildDynamicQuery = function(platform, type){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Created by: Chan | |
# Date: 2013/11/24 | |
PRODUCT_HOME="$1" | |
if [ -z "$PRODUCT_HOME" ]; then | |
echo "Usage: $(basename $0) <domain>" | |
exit 11 | |
fi | |
fail_if_error() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"welcomeFiles": ["index.jag"], | |
"initScripts": ["config/app.js"], | |
"urlMappings": [ | |
{ | |
"url": "/login", | |
"path": "/login.jag" | |
}, | |
{ | |
"url": "/logout", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<metadata xmlns="http://www.wso2.org/governance/metadata"> | |
<LIVE> | |
<date>2013-08-15 10:44:42.092</date> | |
</LIVE> | |
<IN-REVIEW> | |
<date>2013-08-15 10:44:26.361</date> | |
</IN-REVIEW> | |
<overview> | |
<status>LIVE</status> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (server, registry) { | |
var log = new Log(); | |
var GenericArtifactManager = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactManager; | |
var GenericArtifactFilter = Packages.org.wso2.carbon.governance.api.generic.GenericArtifactFilter; | |
var ByteArrayInputStream = Packages.java.io.ByteArrayInputStream; | |
var QName = Packages.javax.xml.namespace.QName; | |
var IOUtils = Packages.org.apache.commons.io.IOUtils; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
am = new carbon.registry.ArtifactManager(registry, "mobileapp"); | |
var attributes ={ | |
overview_status: "PENDING-REVIEW", | |
overview_name: ctx.name, | |
overview_platform:t, | |
overview_version: ctx.version, | |
overview_url: ctx.url, | |
overview_provider: ctx.provider, | |
overview_description: ctx.description, | |
overview_market:ctx.markettype, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2013 Dulitha Wijewantha (http://www.dulithawijewantha.com) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is | |
* furnished to do so, subject to the following conditions: | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.dchan.awesomebank | |
import scala.swing.SimpleSwingApplication | |
import scala.swing.MainFrame | |
import scala.swing.Button | |
import javax.swing.JPanel | |
import java.awt.BorderLayout | |
import scala.swing.FlowPanel | |
import scala.swing.TextField | |
import scala.swing.Label |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.dchan.concurrent; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.Queue; | |
/** | |
* Copyright (c) 2013 Dulitha Wijewantha (http://www.dulithawijewantha.com) | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy |