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
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) |
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
<?php | |
namespace App\Model\Entity; | |
#use Cake\Auth\DefaultPasswordHasher; | |
use Authentication\PasswordHasher\DefaultPasswordHasher; | |
use Authorization\IdentityInterface; | |
use Cake\ORM\Entity; | |
/** | |
* User Entity |
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
// | |
// 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 |
OlderNewer