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
import urllib.request | |
import time | |
# Small script to test the latency of DigitalOcean servers by downloading | |
# a 10MB sample file from each. | |
REQ_FORMAT = "http://speedtest-{r}.digitalocean.com/10mb.test" | |
ZONES = { | |
'nyc1', 'nyc2', 'nyc3', |
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 <time.h> | |
#include <stdlib.h> | |
... | |
static void swap(void* array[], size_t p1, size_t p2) | |
{ | |
void* temp = array[p1]; | |
array[p1] = array[p2]; | |
array[p2] = temp; |
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
// Forma #1: por valor de retorno | |
int obtener_valor() | |
{ | |
return 4; | |
} | |
int main() | |
{ | |
int x = obtener_valor(); | |
// Uso el valor de x. |
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
// test.c | |
#include<stdio.h> | |
int main() | |
{ | |
size_t num = 100; | |
char cadena[10]; | |
sprintf(cadena, "%zd", num); | |
printf("%s\n", cadena); |
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
#%RAML 1.0 Library | |
--- | |
usage: | | |
This library defines annotation types to provide connectivity using the REST-Connect toolkit. | |
annotationTypes: | |
ignored: | |
type: string? | |
description: | | |
This annotation allows to specify a method which will not be transformed into an operation. |
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
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-api</artifactId> | |
<version>2.7</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.logging.log4j</groupId> | |
<artifactId>log4j-core</artifactId> | |
<version>2.7</version> | |
</dependency> |