- Allow individuals to vote using their own digital devices.
- Allow any voter to independently confirm that their vote was entered correctly.
- Allow any third party to independently tabulate the results of the election.
- Don't reveal the position taken by any single voter to anyone else.
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
def overrides(interface_class): | |
def overrider(method): | |
assert(method.__name__ in dir(interface_class)) | |
return method | |
return overrider | |
class Janela(object): | |
def set_title(self, title): | |
raise NotImplementedError() |
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" | |
"sync" | |
) | |
func gen(done <-chan struct{}, nums ...int) <-chan int { | |
out := make(chan int, len(nums)) | |
go func () { |
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 ( | |
"github.com/banthar/Go-SDL/sdl" | |
) | |
const ( | |
SCREEN_WIDTH int = 640 | |
SCREEN_HEIGHT int = 480 | |
SCREEN_BPP int = 32 |
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 numpy as np | |
def softmax(x): | |
"""Compute softmax values for each sets of scores in x.""" | |
return np.array([np.exp(e) / np.sum(np.exp(x), axis=0) for e in x]) | |
import matplotlib.pyplot as plt | |
x = np.arange(-2.0, 6.0, 0.1) | |
scores = np.vstack([x, np.ones_like(x), 0.2 * np.ones_like(x)]) |