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
messageBox.show = function(infoNodeId, PositionNodeId) { | |
var title = jstree().messageBoxTitle(infoNodeId); | |
var content = jstree().messageBoxText(infoNodeId, PositionNodeId); | |
}; | |
//------ | |
contextMenu.delete_node = function(node) { | |
this.popupMessage.show(node.id, node.id); | |
this.popupMessage.loading.done(function(){ |
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 ibms.gp.bioinfo.monitor.util; | |
import org.apache.commons.lang.builder.HashCodeBuilder; | |
public class ColInfo { | |
private String name; | |
private String type; | |
private String modifier; | |
public ColInfo (String name, String type, String modifier) { |
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
CKEDITOR.plugins.add( 'tokens', | |
{ | |
requires : ['richcombo'], //, 'styles' ], | |
init : function( editor ) | |
{ | |
var config = editor.config, | |
lang = editor.lang.format; | |
// Gets the list of tags from the settings. | |
var tags = []; //new Array(); |
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
#!/usr/bin/perl | |
use XML::XPath; | |
use XML::XPath::XMLParser; | |
use WWW::Mechanize; | |
# To get the unirprot data through WWW::Mechanize | |
my $w = WWW::Mechanize->new(); | |
$w->get("http://www.uniprot.org/uniprot/P05067.xml"); | |
# Initial |
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
#!/usr/bin/perl | |
my $app = sub { | |
my $env = shift; | |
my $html = "<h1>This is created by Plack</h1>"; | |
return [ 200 , | |
[ 'Content-type' => 'text/html', 'charset' => 'utf-8' ] , | |
[ $html ] ]; |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
*{ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
} | |
div.bk{ | |
background: linear-gradient(60deg, yellow, blue); |
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
#!/usr/bin/perl | |
package PJProcess; | |
use base qw( TheSchwartz::Worker TheSchwartz::Job ); | |
sub work { | |
my $class = shift; | |
my TheSchwartz::Job $job = shift; | |
... | |
$job->completed(); | |
} | |
1; |
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
#!/usr/bin/perl | |
use Process1; | |
use Process2; | |
use base qw( TheSchwartz ); | |
my $client = TheSchwartz->new( databases => $setting); | |
$client->can_do('Process1'); | |
$client->can_do('Process2'); | |
$client->work(); |
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
import org.json.*; | |
public static void main(String[] args) { | |
// Declare Hashtable | |
Hashtable stor = new Hashtable(); | |
stor.put("Keya","a"); | |
stor.put("keyb","b") | |
// Declare JSONObject and initialization with stor | |
JSONObject jsonObject = new JSONObject(stor); | |
// Output |
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
# Include of ExcelHelper Module | |
use Tool::DB::ExcelHelper; | |
# definition of mapping between xls title and column | |
my $xls_schema = { | |
'Date' => 'date', | |
'Catalog No' => 'catno', | |
'Type' => 'type', | |
'old data' => 'old_val', | |
'new data' => 'new_val', |