Skip to content

Instantly share code, notes, and snippets.

View TheOpenDevProject's full-sized avatar
🤑
Yeeet

Jesse TheOpenDevProject

🤑
Yeeet
View GitHub Profile
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");
template<typename T, typename ...Args>
std::unique_ptr<T> make_unique(Args&& ...args){
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
<TheHackOps> Right'o
<acerspyro> you clean up
<TheHackOps> Making progress on bucky daemon
<acerspyro> Because you shot first
* phorloop ([email protected]) 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
<!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){
$(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);
struct BasicConfig {
name: String,
port: u8
}
struct ExtendedConfig: BasicConfig{
module_name: String
}
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
fn get_route(&self,url: &str) -> Vec<&str>{
let mut request_paths = url.split("/");
let paths = request_paths.collect::<Vec<&str>>();
paths
}
match request.method(){
&tiny_http::Method::Get => self.handle_post(request.url()),
&tiny_http::Method::Post => self.handle_get(request.url())
}
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;
}