Skip to content

Instantly share code, notes, and snippets.

View waspinator's full-sized avatar
🎯
Focusing

waspinator waspinator

🎯
Focusing
View GitHub Profile
@waspinator
waspinator / create_mnist_with_keras.py
Created December 14, 2018 15:37
generate mnist images using keras
from keras.datasets import mnist
from PIL import Image
(x_train, y_train), (x_validate, y_validate) = mnist.load_data()
dataset_train = {'inputs': x_train, 'labels': y_train}
dataset_validate = {'inputs': x_validate, 'labels': y_validate}
for index, i in enumerate(dataset_train['inputs']):
im = Image.fromarray(i)
<?php
namespace App\Model\Entity;
#use Cake\Auth\DefaultPasswordHasher;
use Authentication\PasswordHasher\DefaultPasswordHasher;
use Authorization\IdentityInterface;
use Cake\ORM\Entity;
/**
* User Entity
//
// FireworksEffect - Free for all use from Davepl
//
// Fireworks Effect for Fourth of July
public class FireworksEffect : LEDEffect
{
// Each particle int the particle system remembers its color,
// birth time, postion, velocity, etc. If you are not using DateTime,
// all you need in its place is a number of seconds elapsed, which is