This file contains 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
/* | |
File: Agenda.c | |
*/ | |
#include "Agenda.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
void addLast(Agenda _this, Persona persona) { | |
AgendaNode node; |
This file contains 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 "sort.h" | |
#include <stdlib.h> | |
#define SWAP(a, b, tmp) ((tmp)=(a), (a)=(b), (b)=(tmp)) | |
void bubble_sort(float*array, int size) { | |
int i, j; | |
float tmp; |
This file contains 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 "array.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#define MAX(x, y) (((x) > (y)) ? (x) : (y)) | |
ARRAY array_new(unsigned int size) { | |
ARRAY s_array; | |
This file contains 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 "search.h" | |
unsigned int linear_search(int* array_items, unsigned int size, int search_item) { | |
unsigned int i; | |
for(i=0; i<size; i++) { | |
if(array_items[i] == search_item) { | |
/* elemento encontrado, devolvemos el indice 'i' */ | |
return i; |
This file contains 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
#!/usr/bin/env python | |
import os | |
import sys | |
def _r_get_files(parent_dir, list_files): | |
for child_name in os.listdir(parent_dir): | |
## Ignore directories | |
# if child_name == ".git": | |
# continue |
This file contains 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
#!/usr/bin/env python | |
import sys | |
import multiprocessing | |
import time | |
def fn_loop_count(message, start_count, end_count): | |
for i in range(start_count, end_count): | |
print(message + ":" + str(i)) | |
start_count +=1 |
This file contains 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
#!/usr/bin/env python | |
import signal | |
import time | |
class SigalrmException(Exception): | |
pass | |
def sigalrm_handler(signum, frame): | |
raise SigalrmException() |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
import sys | |
PRINTABLE_ASCII = [ | |
9, 10, 13, (32, 126) | |
] | |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
import sys | |
PROGNAME = os.path.basename(__file__) | |
EXCLUDE_PATHS = [ | |
"/proc", |
This file contains 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
#!/usr/bin/env python3 | |
import os | |
import sys | |
PROGNAME = os.path.basename(__file__) | |
EXCLUDE_PATHS = [ | |
"/proc", |
OlderNewer