Skip to content

Instantly share code, notes, and snippets.

View kinow's full-sized avatar
💭
😬

Bruno P. Kinoshita kinow

💭
😬
View GitHub Profile
@kinow
kinow / BaseTest
Created October 24, 2011 00:34
TestLink Java API BaseTest for TestNG tests
package br.eti.kinoshita.testlinkjavaapi;
import java.io.File;
import java.io.IOException;
import java.net.URL;
import org.apache.commons.io.FileUtils;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
@kinow
kinow / Euler1.java
Created October 27, 2011 16:39
Euler1
package euler;
import org.apache.commons.functor.UnaryPredicate;
import org.apache.commons.functor.UnaryProcedure;
import org.apache.commons.functor.core.composite.ConditionalUnaryProcedure;
import org.apache.commons.functor.generator.Generator;
import org.apache.commons.functor.generator.util.EachElement;
import org.apache.commons.functor.generator.util.IntegerRange;
/**
@kinow
kinow / bruno.py
Created November 4, 2011 20:08
bruno.py with division
#!/usr/bin/env python
if __name__ == '__main__':
total = 0 # total of the multiples of 3 or 5 seen so far
n = 1000 # the length of the range to be tested
next_mult_3 = 0 # the next multiple of 3 to be considered
next_mult_5 = 0 # the next multiple of 5 to be considered
i = 0
while i < n:
package br.eti.kinoshita.testlinkjavaapi;
import java.net.URL;
import br.eti.kinoshita.testlinkjavaapi.model.Execution;
public class T {
public static void main(String[] args) throws Exception {
pluginName = “testlink”;
found = false;
for(plugin in hudson.model.Hudson.instance.pluginManager.plugins) {
if(plugin.shortName.equals(pluginName)) {
found = true;
break;
}
}
if(found) { println "1"; } else { println "0"; }
name="localhost";
port = 9898;
userName="root";
password ="password";
noProxyHost="localhost, nostradamus";
pc = new hudson.ProxyConfiguration(name, port, userName, password, noProxyHost);
jenkins.model.Jenkins.instance.proxy = pc;
println "Proxy settings updated!"
/*
* The MIT License
*
* Copyright (c) <2012> <Bruno P. Kinoshita>
*
* 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
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>
<?xml version="1.0" encoding="UTF-8"?>
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<pluginGroups>
<pluginGroup>org.jenkins-ci.tools</pluginGroup>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>

#Jenkins and Bioinformatics - BioUno

Jenkins will be present at BOSC 2012, in a talk about BioUno. BioUno is a project that uses Jenkins as basis for building biology workflows. BioUno provides an alternative update center with custom plug-ins for bioinformatics tools like MrBayes, Structure,