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 java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class ContainerThreadPool { | |
private static ContainerThreadPool contairnerThreadPoll; | |
public static ContainerThreadPool getInstance() { | |
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
#define WIN32_LEAN_AND_MEAN | |
#include <Windows.h> | |
#include <stdint.h> // portable: uint64_t MSVC: __int64 | |
// MSVC defines this in winsock2.h!? | |
typedef struct timeval { | |
long tv_sec; | |
long tv_usec; | |
} timeval; |
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
def imprime(letras, vet, lst): | |
s = '' | |
for x in xrange(len(letras)): | |
if vet[x] == True: | |
s += letras[x] | |
lst.append(s) | |
def combinacoes(letras, vet, p, n, lst): |
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
#define THRESHOLD 40 | |
struct ColorState { | |
int colorval; | |
unsigned int raw[]; | |
unsigned int norm[]; | |
int scaled[]; | |
}; | |
string debug_std_colors[] = { |
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 Queue | |
Grafo = { 0 : [1, 3], | |
1 : [0, 2], | |
2 : [1, 3], | |
3 : [0, 2] | |
} | |
def queue_insert(q, v): |
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
#define SPEED 75 | |
#define INPUT_BLACKCOLOR 1 | |
#define INPUT_BLUECOLOR 2 | |
#define INPUT_GREENCOLOR 3 | |
#define INPUT_YELLOWCOLOR 4 | |
#define INPUT_REDCOLOR 5 | |
#define INPUT_WHITECOLOR 6 | |
//************ ÚLTIMO CÓDIGO ***************** |
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
/* | |
TODO: | |
function: | |
[] vector_erase | |
error: | |
[] implements error | |
*/ |
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
// Framework unit_test c | |
#include <stdio.h> | |
#include <string.h> | |
// variaveis de teste | |
int a, *b; | |
// framework start | |
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
print('hello') |
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
def is_prime(number): | |
if number <= 0: | |
return False | |
if number == 1: | |
return True | |
elif number == 2: | |
return True | |
else: | |
for i in range(2, number): | |
if number % i == 0: |
OlderNewer