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
<?php | |
/** | |
* php-ansi-color | |
* | |
* Original | |
* https://github.com/loopj/commonjs-ansi-color | |
* | |
* @code | |
* <?php | |
* require_once "ansi-color.php"; |
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
get '/' => sub { | |
my $self = shift; | |
$self->render('clock'); | |
}; | |
get '/pic' => sub { | |
my $self = shift; |
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 Bio; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.OutputStreamWriter; | |
import java.net.HttpURLConnection; | |
import java.net.URI; | |
import java.net.URL; | |
import java.util.Hashtable; |
OlderNewer