Skip to content

Instantly share code, notes, and snippets.

View chasingbob's full-sized avatar

Dries chasingbob

View GitHub Profile
@chasingbob
chasingbob / gif_utils.py
Created July 14, 2018 09:09
helper methods to create gifs
#gif.py
import sys
import glob
import datetime
import imageio
import pathlib
#from progress.bar import Bar
import PIL
from PIL import Image
@chasingbob
chasingbob / particle-gcp-integration.md
Created February 8, 2018 10:48
Quick list of resources setting up a particle photon integration with Google Cloud Platform
'''
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
@chasingbob
chasingbob / sensehat_helper.py
Last active May 24, 2016 21:02
Raspberry Pi SenseHAT helper
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
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();
@chasingbob
chasingbob / ListExtensions.cs
Created October 22, 2015 06:13
List Extension methods - first extension method creates a csv delimited string
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.
@chasingbob
chasingbob / AgileWisdom.md
Last active November 23, 2024 22:37
Agile Wisdom

######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.

@chasingbob
chasingbob / FeedForwardNeuralNetwork.cs
Last active September 29, 2015 20:39
How to instantiate and use the FeedForwardNeuralNetwork
var network = new FeedForwardNeuralNetwork(625, 1, 1, 30, -1);
@chasingbob
chasingbob / HeartOfProducerConsumer.cs
Created September 5, 2015 12:33
The Heart of a concurrent Producer/Consumer BlockingCollection implementation
public void Start()
17 {
18 IsRunning = true;
19
20 // Producer
21 Task.Run(async () =>
22 {
23 while (IsRunning)
24 {
@chasingbob
chasingbob / MainViewModel.cs
Created February 24, 2015 19:31
MainViewModel for example Chat Applicatoin
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()