This file contains hidden or 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
| #gif.py | |
| import sys | |
| import glob | |
| import datetime | |
| import imageio | |
| import pathlib | |
| #from progress.bar import Bar | |
| import PIL | |
| from PIL import Image |
This file contains hidden or 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
| ''' | |
| Dogs vs. Cats using Keras | |
| https://blog.keras.io/building-powerful-image-classification-models-using-very-little-data.html | |
| ''' | |
| from keras.preprocessing.image import ImageDataGenerator | |
| from keras.models import Sequential | |
| from keras.layers import Conv2D, MaxPooling2D |
This file contains hidden or 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 PIL import Image | |
| '''Extract (8x8) pixels in format SenseHat will be able to render''' | |
| def get_sense_pixels(img): | |
| rgb_img = img.convert('RGB') | |
| image_pixels = list(rgb_img.getdata()) | |
| return image_pixels | |
This file contains hidden or 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
| void Main() | |
| { | |
| var b = new B(); | |
| b.Print(); | |
| var workCount = 5; | |
| workCount = b.DoWork(workCount); | |
| Console.WriteLine($"Count is now: {workCount}"); | |
| var e = new E(); |
This file contains hidden or 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
| public static class ListExtentions | |
| { | |
| /// <summary> | |
| /// Converts this instance to delimited text. | |
| /// </summary> | |
| /// <typeparam name="T"></typeparam> | |
| /// <param name="instance">The instance.</param> | |
| /// <param name="delimiter">The delimiter.</param> | |
| /// <param name="includeHeader"> | |
| /// if set to <c>true</c> then the header row is included. |
######DeveloperUG 13 October 2015
######Paul:
###Balance Love what you do
###Communication Choose your medium - you do not write in the same style on slack/skype than how you would in a formal e-mail.
This file contains hidden or 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
| var network = new FeedForwardNeuralNetwork(625, 1, 1, 30, -1); |
This file contains hidden or 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
| public void Start() | |
| 17 { | |
| 18 IsRunning = true; | |
| 19 | |
| 20 // Producer | |
| 21 Task.Run(async () => | |
| 22 { | |
| 23 while (IsRunning) | |
| 24 { |
This file contains hidden or 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
| public class MainViewModel : PropertyChangedBase | |
| { | |
| #region Commands | |
| public ICommand LineSentCommand { get; set; } | |
| #endregion Commands | |
| private Manager man = new Manager("IndabaCloudExamples"); | |
| private DateTime _lastCheck = DateTime.UtcNow.AddSeconds(-60000); | |
| public MainViewModel() |
NewerOlder