Skip to content

Instantly share code, notes, and snippets.

View cybermascot's full-sized avatar
🏠
Working from home

Asad Raza Kazmi cybermascot

🏠
Working from home
  • Data Research Laboratories
  • UK
View GitHub Profile
@cybermascot
cybermascot / guess_candidate_model.py
Created March 14, 2017 17:03 — forked from gati/guess_candidate_model.py
Code for training an LSTM model for text classification using the keras library (Theano backend). Was used for guesscandidate.com.
from sklearn.cross_validation import train_test_split
from keras.preprocessing import sequence, text
from keras.models import Sequential
from keras.layers import (Dense, Dropout, Activation, Embedding, LSTM,
Convolution1D, MaxPooling1D)
# Embedding
max_features = 20000
maxlen = 100
embedding_size = 32
@cybermascot
cybermascot / FunctionGenerator.ino
Created October 28, 2018 08:40 — forked from ttmarek/FunctionGenerator.ino
Arduino code for generating a sine wave using Pulse Width Modulation.
#include "wavetable.h"
float seconds = 0;
int i = 0;
int num_readings = 0;
void setup()
{
Serial.begin(115200);