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 <stddef.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <sys/time.h> | |
#include <time.h> | |
static long long int ts_us() | |
{ | |
struct timeval tv; | |
struct timezone tz; |
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
From f376831f690d3907c26acf20f2829c6a83ec8437 Mon Sep 17 00:00:00 2001 | |
From: "Felipe F. Tonello" <eu@felipetonello.com> | |
Date: Wed, 2 Dec 2015 15:32:47 +0000 | |
Subject: [PATCH] blog: hello-world.c | |
Signed-off-by: Felipe F. Tonello <eu@felipetonello.com> | |
--- | |
drivers/Kconfig | 2 ++ | |
drivers/Makefile | 1 + | |
drivers/hello/Kconfig | 5 +++++ |
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
/** | |
* Author: Felipe Ferreri Tonello <eu@felipetonello.com> | |
* | |
* This url-shortner it only works with ASCII characters. It encodes and | |
* decodes ids. | |
* You can change base_x as you wish. | |
* | |
* It runs at least 20 times faster then a Python implementation. | |
* | |
* $ time python url-shortner.py -s I7 |