I hereby claim:
- I am jeandudey on github.
- I am jeandudey (https://keybase.io/jeandudey) on keybase.
- I have a public key ASAQQcXSvIGBEFFbiclUkhnBcCxLxS9xonBi3nMFwCDg-Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#include <cstdint> | |
#include <sstream> | |
#include <Arduino.h> | |
#include <unity.h> | |
/* #include "SerializablePOD.h" | |
#include "TinyString.h" */ | |
#include "WiFiDTO.h" |
I hereby claim:
To claim this, I am signing this object:
impl<'a> std::ops::Sub<Vec3> for &'a Vec3 { | |
type Output = Vec3; | |
fn sub(self, other: Vec3) -> Vec3 { | |
let mut output = Vec3::new([0f64; 3]); | |
for index in 0..3 { | |
output.vector[index] = self.vector[index] - other.vector[index]; | |
} | |
return output; | |
} | |
} |
#include <stdio.h> | |
#include <gtk/gtk.h> | |
void hello(GtkWidget* widget, gpointer data) | |
{ | |
printf("Hello World!\n"); | |
} | |
int main(int argc, char* argv[]) | |
{ |
#!/usr/bin/python3 | |
import shutil | |
# Description: copy list of dlls to the given directory. | |
DLLS = ["libglibmm-2.4-1.dll", | |
"libgtkmm-3.0-1.dll", | |
"libgobject-2.0-0.dll", | |
"libglib-2.0-0.dll", |
#!/usr/bin/python3 | |
# Description: convert an string to a "literal string" (i.e. 'H', 'e', 'l', 'l', 'o') | |
# to use in PEGTL (i.e pegtl::string< 'H', 'e', 'l', 'l', 'o', ',', ' ' >). | |
def toliteralstring(str): | |
result = "" | |
for c in str: | |
result += "'" + c "' " | |
Lets say you're a purist object oriented programmer and you want wrap the argc
and argv
constant variables in a more situable
container like std::vector
and don't know how?
Here is the pre-canned solution just for you (licensed under the [WTFPL][1]):
// File: ArgumentsList.hpp
typedef std::vector<std::string> ArgumentsList;
void fill_arguments(ArgumentsList &args, int argc, const char **argv)
#include <iostream> | |
#include <sstream> | |
#include <string> | |
#include <locale> | |
#define MAX_WORDS 20 | |
std::string acronymise(std::string str) | |
{ | |
std::string words[MAX_WORDS]; |
#include <iostream> | |
#include <fstream> | |
#include <string> | |
int main(int argc, char **argv) | |
{ | |
std::ifstream file("HelloWorld.txt"); | |
std::string words; | |
if (file.is_open()) { |