Skip to content

Instantly share code, notes, and snippets.

View timctran's full-sized avatar

Tim timctran

View GitHub Profile
@timctran
timctran / PY0101EN-1-2-Strings.ipynb
Created March 7, 2020 09:00
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timctran
timctran / PY0101EN-1-1-Types.ipynb
Created March 7, 2020 04:04
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@timctran
timctran / keybase.md
Last active September 19, 2017 21:28
Keybase proof of my identity

Keybase proof

I hereby claim:

  • I am timctran on github.
  • I am timctran (https://keybase.io/timctran) on keybase.
  • I have a public key ASCL2s6juPe10sdsLFYU45bGmG5_YtcA-nC6T938UGr9ggo

To claim this, I am signing this object:

@timctran
timctran / adaboost.py
Last active December 14, 2016 08:41 — forked from tristanwietsma/adaboost.py
AdaBoostPython implementation of the AdaBoost (Adaptive Boosting) classification algorithm.
# Code changed for Python 3
import numpy as np
class AdaBoost:
def __init__(self, training_set):
self.training_set = training_set # read training set
self.N = len(self.training_set) # length of training set
self.weights = np.ones(self.N)/self.N # uniform weight
self.RULES = []
self.ALPHA = []
@timctran
timctran / jquery.md5.js
Created December 29, 2015 17:30 — forked from thanashyam/jquery.md5.js
Jquery MD5 - downloaded from: http://plugins.jquery.com/project/md5 (which is no longer available)
/**
* jQuery MD5 hash algorithm function
*
* <code>
* Calculate the md5 hash of a String
* String $.md5 ( String str )
* </code>
*
* Calculates the MD5 hash of str using the » RSA Data Security, Inc. MD5 Message-Digest Algorithm, and returns that hash.
* MD5 (Message-Digest algorithm 5) is a widely-used cryptographic hash function with a 128-bit hash value. MD5 has been employed in a wide variety of security applications, and is also commonly used to check the integrity of data. The generated hash is also non-reversable. Data cannot be retrieved from the message digest, the digest uniquely identifies the data.
@timctran
timctran / dataFormatExamples.js
Last active January 19, 2016 01:01 — forked from avishaan/dataFormatExamples.js
Dashboard MongoDB object format
// basic json document template
var graphBaseTemplate = {
'_id': '0012938801abfe', //auto assigned by database
'kHospitalName': 'Kaiser',
'kHospitalId': '0012938801abf1',
'kGraphName': 'dashboardBloodOverview',
'kGraphId': '0012938801abf2',
'datasets': datasets
};