This file contains hidden or 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
public class Quadtree { | |
//maximum entities in each sector | |
private int MAX_ENT = 10; | |
//maximum number of levels | |
private int MAX_LEVELS = 5; | |
private int level; | |
private Array<Entity> collideEntities; |
This file contains hidden or 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/python | |
from os import system as syscommand | |
class PlayVideo(): | |
def __init__(self): | |
self.getUrl(); |
This file contains hidden or 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
public static void stringToDom(String xmlSource) | |
throws SAXException, ParserConfigurationException, IOException, TransformerException { | |
//parse the given input | |
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); | |
DocumentBuilder builder = factory.newDocumentBuilder(); | |
org.w3c.dom.Document doc = builder.parse(new InputSource(new StringReader(xmlSource))); | |
//write the document | |
TransformerFactory transformerFactory = TransformerFactory.newInstance(); |
This file contains hidden or 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
void setup(){ | |
//big speaker | |
pinMode(3,OUTPUT); | |
pinMode(11,OUTPUT); | |
pinMode(12,OUTPUT); | |
pinMode(13,OUTPUT); | |
} |