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 | |
from collections import deque | |
import time | |
import threading | |
import matplotlib.pyplot as plt | |
def rollingFFT(s, n, dt): | |
fy = np.fft.fft(s) | |
# Frequencies associated with each samples |
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
"""Streaming pickle implementation for efficiently serializing and | |
de-serializing an iterable (e.g., list) | |
Created on 2010-06-19 by Philip Guo | |
http://code.google.com/p/streaming-pickle/ | |
Modified by Brian Thorne 2013 to add base64 encoding to support | |
python3 bytearray and the like. | |
""" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Latest compiled and minified CSS --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
<!-- Optional theme --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> |
I hereby claim:
- I am hardbyte on github.
- I am hardbyte (https://keybase.io/hardbyte) on keybase.
- I have a public key whose fingerprint is E49A A499 5C2B 735C CB01 EA5E 22AD F3BF C183 47DE
To claim this, I am signing this object:
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 sqlite3 | |
import numpy as np | |
logfile = "output.db" | |
conn = sqlite3.connect(logfile) | |
c = conn.cursor() | |
c.execute("SELECT COUNT() FROM messages") |
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 phe as paillier | |
import numpy as np | |
import pickle | |
class SecretKey(): | |
def __init__(self,sk): | |
self.sk = sk | |
def decrypt(self,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
package com.lightbend.akka.sample; | |
import akka.actor.*; | |
public class StatefulPrime { | |
static class IsPrimeActor extends AbstractLoggingActor { | |
// Define the actor protocol | |
static class IsPrimeRequest { |
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 com.lightbend.akka.sample; | |
import akka.actor.AbstractLoggingActor; | |
import akka.actor.Props; | |
import java.util.HashMap; | |
import java.util.Map; | |
class StatelessPrime { |
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 com.lightbend.akka.sample; | |
import akka.actor.Props; | |
import akka.actor.UntypedAbstractActor; | |
class UntyptedSimplePrime { | |
static class IsPrimeActor extends UntypedAbstractActor { | |
// Define the messages |
OlderNewer