I hereby claim:
- I am ramajd on github.
- I am r_majd (https://keybase.io/r_majd) on keybase.
- I have a public key ASD8FvU2AO_Kt4Uf8iJcr7lVLLxIecd4LnfecId95U3p8wo
To claim this, I am signing this object:
macro(compile_proc) | |
set(options) | |
set(oneValueArgs ARG) | |
set(multiValueArgs FILES) | |
cmake_parse_arguments(ARGUMENT "${options}" "${oneValueArgs}" "${multiValueArgs}" "${ARGN}") | |
foreach(procfile ${ARGUMENT_FILES}) | |
add_custom_command( | |
OUTPUT ${procfile}.cpp | |
COMMAND |
export default { | |
async fetch(req) { | |
try { | |
const url = new URL(req.url); | |
const splitted = url.pathname.replace(/^\/*/, '').split('/'); | |
const address = splitted[0]; | |
url.pathname = splitted.slice(1).join('/'); | |
url.hostname = address; | |
url.protocol = 'https'; | |
return fetch(new Request(url, req)); |
trait IProcessor<'a> { | |
fn set_next(&'a mut self, next: &'a mut dyn IProcessor<'a>); | |
} | |
struct Processor<'a> { | |
next: Option<&'a mut dyn IProcessor<'a>>, | |
} | |
impl<'a> IProcessor<'a> for Processor<'a> { | |
fn set_next(&'a mut self, next: &'a mut dyn IProcessor<'a>) { |
<html> | |
<body> | |
<div> | |
<a href="example.com/123123213/123123">first example</a> | |
<a href="another link">2nd example</a> | |
<a href="this-is-the-2nd-example.com">third example</a> | |
<a href="example/asdasd/bbb">another example</a> | |
</div> | |
</body> |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <stdbool.h> | |
struct array { | |
int* data; | |
int* set_list; | |
int* set_pos_list; | |
int set_count; | |
int length; |
#include <stdio.h> | |
struct command { | |
char *name; | |
void (*function)(void); | |
}; | |
#define MKCMD(cmd) { #cmd, cmd ## _command } |
#include <stdio.h> | |
#define WARN_IF(EXPR) \ | |
if (EXPR) { \ | |
fprintf(stderr, "Warning: " #EXPR "\n"); \ | |
} | |
int main() { | |
int x = 1; | |
WARN_IF(x == 1); |
#include <stdio.h> | |
#ifndef MYFLAG | |
#define MYFLAG "default flag" | |
#endif | |
int main() { | |
printf("compiled with: %s\n", MYFLAG); | |
return 0; | |
} |
// hello.c | |
#include <stdio.h> | |
int faulty_devider(int first, int second) { | |
return first / second; | |
} | |
int main() { | |
int a = 100; |
I hereby claim:
To claim this, I am signing this object: