Skip to content

Instantly share code, notes, and snippets.

View bobbyali's full-sized avatar

Rehan Ali bobbyali

View GitHub Profile
@bobbyali
bobbyali / gist:79fed4df303bfcfd9eac
Last active August 29, 2015 14:15
Python Summary
Python quickstart tutorial
http://www.swaroopch.com/notes/python/#first_steps
Triple Quotes for multiple line strings
Split lines - use \
Strings:
* print '{0} was {1} years old when he wrote this book'.format(name, age)
{0:.3f}'.format(1.0/3) --> 0.333
@bobbyali
bobbyali / PlayerViewController.swift
Created March 17, 2015 17:08
An iOS youtube view controller.
import UIKit
import YouTubePlayer
class PlayerViewController: UIViewController, YouTubePlayerDelegate {
@IBOutlet var videoPlayer: YouTubePlayerView!
var videoID: String?
override func viewDidLoad() {
@bobbyali
bobbyali / Swift iOS Recipes
Created April 10, 2015 13:47
Swift iOS Code Recipes
Swift iOS Recipes
==================
** GUI Layout **
Alerts
var alert = UIAlertController(title: "Alert", message: "Message", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "Click", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
@bobbyali
bobbyali / NaiveBayesBinary.java
Last active January 27, 2019 13:51
Binary Naive Bayes Classifier in Java
package naive_bayes;
import java.util.*;
public class NaiveBayesBinary {
// lists containing training data
private List<Boolean> training_mumPresent = new ArrayList<Boolean>();
private List<Boolean> training_dadPresent = new ArrayList<Boolean>();
private List<Boolean> training_babyPresent = new ArrayList<Boolean>();
private List<Boolean> training_outcome = new ArrayList<Boolean>();
@bobbyali
bobbyali / NaiveBayesContinuous.java
Last active August 29, 2015 14:22
Continuous Naive Bayes Classifier in Java
package naive_bayes;
import java.util.ArrayList;
import java.util.List;
public class NaiveBayesContinuous {
// lists containing training data
private List<Float> training_nap = new ArrayList<Float>();
private List<Float> training_eat = new ArrayList<Float>();
private List<Float> training_toy = new ArrayList<Float>();

Keybase proof

I hereby claim:

  • I am bobbyali on github.
  • I am rehanali1 (https://keybase.io/rehanali1) on keybase.
  • I have a public key ASCmbU-0pYPZlnh74G2dJvnI97524SJSPBywpRkBSQqhJAo

To claim this, I am signing this object:

@bobbyali
bobbyali / intro_learning_resources.txt
Last active January 4, 2018 14:25
Intro level resources for learning about machine learning
===================================
GENERAL READING
Here are some general data science sites that could be worth a look. They contain links to lots of other good sites and resources. It's worth having a browse and seeing what captures your interest.
- http://partiallyderivative.com/news/2015/01/09/episode-9-the-one-that-will-totally-change-your-life
- http://blog.yhat.com/posts/ML-resources-you-should-know.html (summary of lots of resources)
- http://www.kdnuggets.com
- https://tinyletter.com/datamachina
- http://www.svds.com/blog/
@bobbyali
bobbyali / data_scientist_job_resources.txt
Last active January 15, 2018 17:42
This document contains a set of resources for helping to find a job in data science. It's possibly focused more on getting an initial junior data scientist role, and a foothold into the industry.
This document contains a set of resources for helping to find a job in data science. It's possibly focused more on
getting an initial junior data scientist role, and a foothold into the industry. Give me a shout if you would like any
help with any of this.
CV PREP
=======
Here are some general tips for writing a decent CV:
http://www.base36.com/2013/03/10-tips-for-a-successful-technical-resume/