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
import groovy.transform.Field; | |
@Field x = 1..5 | |
def hello(obj) { | |
groovy_lang() | |
println "what the fuck $obj.a, $obj.b, $obj.c, $x.from, $x.to" | |
} | |
def groovy_lang() { |
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
#include <stdio.h> | |
#include <string.h> | |
void write_value(char *c, int value, int head, int tail, int len) | |
{ | |
int high = value >> 8; | |
int low = (1 << 8) - 1 & value; | |
if (len == 1) { | |
c[0] = low | head; | |
} |
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
#include <string.h> | |
#include <stdio.h> | |
typedef enum live { | |
placeholder, | |
oldman, | |
dog, | |
husband, | |
wife, | |
boy, |
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
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <ctype.h> | |
#include <fcntl.h> | |
#include <stddef.h> | |
#include <stdarg.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <malloc.h> | |
#include <errno.h> |
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
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
char *replace(char *dst, const char *src, const char *rep_from, const char *rep_by) | |
{ | |
//*dst = 0; | |
const char *start = src; | |
char *end; | |
size_t len = strlen(rep_from); |
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
#include <stdio.h> | |
static int num_ten[] = { | |
1, 10, 100, 1000, 10000, 100000, 1000000, 10000000, 100000000, 100000000 | |
}; | |
int get_num(n, s, e) { | |
int d = num_ten[9 - e]; | |
int r = num_ten[e - s + 1]; | |
return n / d % r; |
NewerOlder