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
Verifying that +jeroenmerks is my openname (Bitcoin username). https://onename.io/jeroenmerks |
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 java.awt.Color; | |
import java.awt.Font; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.Image; | |
import java.awt.Point; | |
import java.awt.Polygon; | |
import java.awt.Rectangle; | |
import java.awt.RenderingHints; | |
import java.awt.event.ActionEvent; |
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
//Version with no walking involved | |
private boolean sleepWhile(final Condition condition, final int Threshold) { | |
final int Irritations = Threshold / 25; | |
for (int i = 0; i < Irritations && condition.isTrue(); i++) { | |
if (game.getClientState() != 11) { | |
i = 0; | |
} | |
Methods.sleep(Methods.random(20, 30)); | |
} | |
return condition.isTrue(); |
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
final RSObject Ore = objects.getNearest(oreID); //get the Object | |
if (Ore.interact("Mine")) { //Do the interaction, continue when it returns true | |
sleepWhile(new Condition() { | |
public boolean isTrue() { | |
return players.getMyPlayer().getAnimation() == -1; //The condition | |
} | |
}, Ore, 1000); //The targetObject and Threshold | |
} |
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
final int invCount = inventory.getCount(); | |
if (bank.withdraw(runeEssence, 0)) { | |
sleepWhile(new Condition() { | |
public boolean isTrue() { | |
return invCount == inventory.getCount(); | |
} | |
}, 1875); | |
} |
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
final int invCount = inventory.getCount(); | |
bank.withdraw(runeEssence, 0); | |
if (sleepWhile(new Condition() | |
public boolean isTrue() { | |
return invCount == inventory.getCount(); | |
} | |
}, 1875) { | |
bank.closeBank(); } |
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
//Compulsary piece of code | |
public interface Condition { | |
public boolean isTrue(); | |
} |
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
# coding=utf-8 | |
import os | |
import sys | |
def maak_fasta(): | |
fastabestand = open("blast_output_fasta.fa", "w") | |
for lijn in open("blast_output.txt", "r"): | |
split_lijn = lijn.split("\t") | |
fastabestand.write(">" + split_lijn[0] + "\n" + split_lijn[1] + "\n") |
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
#vraag 17 in de opdracht is fout | |
#Specifiek = eiwit dat voldoet aan een bepaalde eigenschap | |
#http://pypi.python.org/pypi/autopep8/ | |
import random | |
#In deze matrix staat alle relevante data die gebruikt wordt om de vragen mee te maken | |
#Elke rij is een aminozuur en elke kolom is een type eigenschap | |
#0 = soort_aminozuur | |
#1 = 3 lettercode |
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
""" | |
Het idee: | |
1. Je blast proteoom a met b | |
geblaste_proteomen = ( proteoom a, proteoom b ) | |
Je hebt nog een derde proteoom c die geblast moet worden tegen a en b | |
2. blast c tegen alle proteomen die in geblaste_proteomen zitten | |
3. voeg proteoom c toe aan geblaste_proteomen |
OlderNewer