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
| std::vector<sf::Sprite*> getCharacterCryWalk(){ | |
| //Load all textures into memory | |
| sf::Texture *walkState = new sf::Texture; | |
| sf::Texture *walkState_2 = new sf::Texture; | |
| sf::Texture *walkState_3 = new sf::Texture; | |
| sf::Texture *walkState_4 = new sf::Texture; | |
| walkState->loadFromFile("walk1_0.png"); | |
| walkState_2->loadFromFile("walk1_1.png"); | |
| walkState_3->loadFromFile("walk1_2.png"); | |
| walkState_4->loadFromFile("walk1_3.png"); |
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
| template<typename T, typename ...Args> | |
| std::unique_ptr<T> make_unique(Args&& ...args){ | |
| return std::unique_ptr<T>(new T(std::forward<Args>(args)...)); | |
| } |
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
| <TheHackOps> Right'o | |
| <acerspyro> you clean up | |
| <TheHackOps> Making progress on bucky daemon | |
| <acerspyro> Because you shot first | |
| * phorloop (~phorloop@203.213.239.151) has joined | |
| <TheHackOps> Fair call | |
| * acerspyro starts making "TheHackOps shot first" t-shirts. | |
| <TheHackOps> Hope those sell | |
| * TheHackOps gets lawyers ready | |
| <acerspyro> Sure they will |
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
| <!DOCTYPE HTML> | |
| <head> | |
| <title>HTML5 Generators - RootZero</title> | |
| <!--NO-CACHE-VERSIONING--> | |
| <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> | |
| </head> | |
| <script> | |
| $(document).on("ready",function(){ | |
| $("#myFile").on("change",function(e){ |
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
| $(document).on("ready",function(){ | |
| var fileInput = $('#myFile'); | |
| var fileDisplayArea = $('#fileDisplayArea'); | |
| $(fileInput).on("change",function(e){ | |
| var file = $('#myFile')[0].files[0]; | |
| var reader = new FileReader(); | |
| reader.readAsText(file); | |
| console.log(reader.result); | |
| $(fileDisplayArea).html(reader.result); |
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
| struct BasicConfig { | |
| name: String, | |
| port: u8 | |
| } | |
| struct ExtendedConfig: BasicConfig{ | |
| module_name: String | |
| } |
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
| functor BFS (structure Q: QUEUE) = (* after Okasaki, ICFP, 2000 *) | |
| struct | |
| datatype 'a tree | |
| = E | |
| | T of 'a * 'a tree * 'a tree | |
| fun bfsQ (q : 'a tree Q.queue) : 'a list = | |
| if Q.isEmpty q then [] | |
| else let | |
| val (t, q') = Q.remove q | |
| in case t |
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
| fn get_route(&self,url: &str) -> Vec<&str>{ | |
| let mut request_paths = url.split("/"); | |
| let paths = request_paths.collect::<Vec<&str>>(); | |
| paths | |
| } |
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
| match request.method(){ | |
| &tiny_http::Method::Get => self.handle_post(request.url()), | |
| &tiny_http::Method::Post => self.handle_get(request.url()) | |
| } |
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
| class MyClass{ | |
| //For arguments sake to fit with rust just make everything public | |
| public: | |
| std::string _name; | |
| MyClass(std::string name){ | |
| this->_name = name; | |
| } | |
| std::string Name(){ | |
| return this->_name; | |
| } |