Skip to content

Instantly share code, notes, and snippets.

View mchirico's full-sized avatar
💭
Kubernetes... API Server Development

Mike Chirico mchirico

💭
Kubernetes... API Server Development
View GitHub Profile
@mchirico
mchirico / tableViewCustomLabelTagRemove.swift
Last active October 13, 2016 11:00
Removing cells in tableview via a tag ... Taken from my MontCoEMS test app
//
// ViewController.swift
// MontCoEMS
//
// Created by Mike Chirico on 12/4/15.
// Copyright © 2015 Mike Chirico. All rights reserved.
//
//http://webapp.montcopa.org/eoc/cadinfo/livecadrss.asp
import UIKit
@mchirico
mchirico / tensorFlowIrisCSV.py
Last active April 2, 2021 06:56
Tensorflow: working with tensorboard, CSV, and saving results
#!/usr/bin/env python
import tensorflow as tf
import numpy as np
from numpy import genfromtxt
# Build Example Data is CSV format, but use Iris data
from sklearn import datasets
from sklearn.model_selection import train_test_split
import sklearn
def buildDataFromIris():
@mchirico
mchirico / funcptr.c
Created March 22, 2013 22:28
An example of a function pointer in C
#include <stdio.h>
#include <stdlib.h>
double Plus (double a, double b) { return a+b; }
double Mult (double a, double b) { return a*b; }
double Minus (double a, double b) { return a-b; }
double Div (double a, double b) { return a/b; }
void SF(double a, double b, double (*ptF)(double, double))
{
@mchirico
mchirico / dismiss
Created March 11, 2012 12:05
Common way to dismiss Modal View Controller
- (IBAction)buttonBack:(id)sender {
[[self presentingViewController] dismissModalViewControllerAnimated:YES];
}