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
/* | |
* Pinball Display Driver | |
* Arudino version by Leandro Pereira | |
* | |
* Based on code by Daniel Quadros, available at | |
* http://dqsoft.blogspot.com.br/2011/06/projeto-epoch-parte4-software-cont.html | |
*/ | |
#define DISP_S0 8 | |
#define DISP_S1 9 |
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
┌───┬───┬───┬───┬───┬───┬───┐ | |
└─┐ │ │ ─┤ │ │ │ ─┤ | |
│ │ │ ├─ │ ─┤ │ │ │ │ ┌─┘ | |
└─┴───┴───┴───┴───┴─┴─┴─┘ | |
2013-06-01 LHC, Campinas - São Paulo | |
A Tosconf é uma desconferência anual organizada pelo Laboratório | |
Hacker de Campinas (LHC). Em sua primeira edição, em 2012, atraiu | |
desenvolvedores, pesquisadores de segurança da informação e | |
figuras míticas da computação. |
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
namespace { | |
const char segment_pin[7] = { | |
[0] = 0, | |
[1] = 0, | |
[2] = 0, | |
[3] = 0, | |
[4] = 0, | |
[5] = 0, | |
[6] = 0, |
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
/* | |
* Pinball Display Driver | |
* Arudino version by Leandro Pereira | |
* | |
* Based on code by Daniel Quadros, available at | |
* http://dqsoft.blogspot.com.br/2011/06/projeto-epoch-parte4-software-cont.html | |
*/ | |
/* | |
* Com o ethernet shield, alguns dos pinos usados aqui nao funcionam pq o shield |
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 <assert.h> | |
#include <sys/types.h> | |
#include <dirent.h> | |
#include "lwan-status.h" | |
#include "lwan-template.h" | |
#include "strbuf.h" | |
struct file_list { | |
const char *path; |
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
/* | |
package main | |
import "fmt" | |
func main() { | |
fmt.Println("counting"); | |
for i := 0; i < 10; 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
import socket | |
import time | |
import random | |
import pygame | |
import pygame.camera | |
import pygame.transform | |
from pygame.locals import * | |
UDP_IP = "192.168.50.50" | |
UDP_PORT = 2711 |
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 <lwan.h> | |
#include <lwan-template.h> | |
#include <strbuf.h> | |
struct thing { | |
lwan_tpl_list_generator_t generator; | |
const char *name; | |
}; |
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
/* | |
* Buildbot 0.9.x shield generator | |
* Copyright (c) 2016 Leandro Pereira <leandro@tia.mat.br> | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in the | |
* Software without restriction, including without limitation the rights to use, copy, | |
* modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, | |
* and to permit persons to whom the Software is furnished to do so, subject to the | |
* following conditions: |
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
% sudo cpupower frequency-set -g performance ~/git/benchmark/build | |
Setting cpu: 0 | |
Setting cpu: 1 | |
Setting cpu: 2 | |
Setting cpu: 3 | |
% ./test ~/git/simdswitch | |
Run on (4 X 2746.51 MHz CPU s) | |
2017-01-06 08:06:24 | |
Benchmark Time CPU Iterations |