A running example of the code from:
- http://marcio.io/2015/07/handling-1-million-requests-per-minute-with-golang
- http://nesv.github.io/golang/2014/02/25/worker-queues-in-go.html
Small refactorings made to original code:
#include <iostream> | |
#include <sstream> | |
#include <random> | |
#include <map> | |
using namespace std; | |
char toChar(int n) { | |
return n + '0'; | |
} |
print ["%.0d%s%s"%(i if i%3 and i%5 else 0,"" if i%3 else "Fizz","" if i%5 else "Buzz")for i in range(-50, 50)] |
A running example of the code from:
Small refactorings made to original code:
#include <stdlib.h> | |
#include "bst.h" | |
void insert_into_tree(struct node **root, char *value) | |
{ | |
// Caso a arvore esteja vazia (root==NULL) vamos criar um no | |
// auxiliar, setar seus dois ponteiros (left, right) para NULL | |
// e apontar root para este novo nó. | |
if(*root == NULL) | |
{ |
(function(GOAL){ | |
function generateSeriesByGoal(goal, timeframe){ | |
var newSeries = []; | |
var metaDividida = goal / timeframe; | |
for(var i = 0; i < timeframe; i++){ | |
newSeries[i] = metaDividida; | |
} |
#include <stdio.h> | |
#include <string.h> | |
#include <sys/stat.h> | |
#include <sys/types.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include "l_logging.h" | |
#define LOG_FILE "server.log" |
I hereby claim:
To claim this, I am signing this object:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="initial-scale=1"> | |
<title>Card</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/card/2.4.0/card.css"> | |
<style> |
#include <X11/Xlib.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <time.h> | |
#include <math.h> | |
#define NANOSECONDS_MULTIPLIER 1000000 |
I hereby claim:
To claim this, I am signing this object: