Skip to content

Instantly share code, notes, and snippets.

View misho-kr's full-sized avatar

Misho Krastev misho-kr

  • San Jose, California
View GitHub Profile
import logging
import uuid
import time
import mesos.interface
import mesos.native
from mesos.interface import mesos_pb2
logging.basicConfig(level=logging.INFO)
#! /bin/bash
# HEADS UP! Make sure to use '*' or a valid hostname for the FDQN prompt
echo 01 > ca.srl
openssl genrsa -des3 -out ca-key.pem
openssl req -new -x509 -days 365 -key ca-key.pem -out ca.pem
openssl genrsa -des3 -out server-key.pem
openssl req -new -key server-key.pem -out server.csr
@misho-kr
misho-kr / Algorithms: Design and Analysis, Part 1.md
Last active August 29, 2015 14:14
Summary of "Algorithms: Design and Analysis, Part 1" course at Coursera.Org

This course is at an undergraduate level, likely situated in third or fourth year. Students should feel programming language concepts, including recursion, as well as proof techniques, including induction.

Week 1

I. Introduction

  • Why study algorithms, designer's mantra -- CAN WE DO BETTER
@misho-kr
misho-kr / Ruby on Rails: An Introduction.md
Last active December 3, 2015 07:17
Summary of "Ruby on Rails: An Introduction" online course at Coursera.Org

Ruby on Rails: An Introduction

By the time you finish this course, you’ll be able to establish a development environment to code and execute Ruby and Rails code, create Ruby programs utilizing proper flow of control structures, implement a basic Rails application that consumes external JSON API, and build a functional web application and deploy it to the “cloud” using a Heroku PaaS (Platform as a Service).

Week 1

In this module, we will install software required to develop Ruby on Rails applications. We will finish the module by familiarizing ourselves with a version control system called “Git”.

Slides and Installation Instructions

@misho-kr
misho-kr / Rails with Active Record and Action Pack.md
Last active December 13, 2015 06:39
Summary of "Rails with Active Record and Action Pack" online course on Coursera.Org

Rails with Active Record and Action Pack

Introduction to Active Record

In this module, we will begin exploring the database-interaction portion of Rails. We will start off with migrations that enable you to create and modify the schema of the database. We will then move on to discussing the Active Record gem Rails uses, which enables you to create, retrieve, update, and delete the data from the database. Before looking at Active Record, we will talk about some advanced Ruby features of meta-programming that will help facilitate our Active Record journey.

Slides

  • Rails scaffolding -- rails g scaffold \ \ [column-type]
@misho-kr
misho-kr / Coursera-PreCalculus.md
Last active December 31, 2015 12:09
Summary of Pre-Calculus course at Coursera.Org

Pre-Calculus

Description

This course is designed to prepare you for a college-level Calculus course. Through this course you will acquire a solid foundation in algebra and trigonometry. Emphasis is placed on understanding the properties of linear, polynomial, rational, radical, piece-wise, exponential, logarithmic, and trigonometric functions. You will learn to work with various types of functions in symbolic, graphical, numerical and verbal form.

This course will be taught over ten weeks, with materials released on a weekly basis. Each week will consist of a series of short lecture videos, quizzes every 3-5 lectures, readings and homework assignments through which you can practice your mastery of the material.

A prerequisite background in Introductory Algebra and Basic Geometry is necessary for this course.

@misho-kr
misho-kr / Algorithms, Part II.md
Last active January 4, 2016 08:18
Summary of "Algorithms, Part II" course at Coursera.Org

The course is the second part of a two-part course that is based on a variety of material that we have prepared over many years:

  • Our textbook Algorithms, 4th edition is the basic reference for the material we will be covering. Although the lectures are designed to be self-contained, we will assign optional readings for students who wish more extensive coverage of the material. You can purchase the textbook in either hardcover or electronic format from amazon.com.
  • Our booksite, which is open to everyone and contains a wealth of supplementary information, including synopses of the textbook and Java code that you will be using throughout the course.

References:

@misho-kr
misho-kr / Ruby on Rails Web Services and Integration with MongoDB.md
Last active February 7, 2016 10:00
Summary of "Ruby on Rails Web Services and Integration with MongoDB" online course at Coursera.Org

Ruby on Rails Web Services and Integration with MongoDB

Introduction to MongoDB, MongoDB-Ruby API, and CRUD

In this module, we’re going to explore the history and the rationale behind NoSQL databases, their relationship to RDBMS, and dive into the basics of MongoDB. We will install MongoDB, create a database, collections and perform CRUD operations. We will end this module by integrating MongoDB with Ruby Shell and try out some simple examples.

Ruby Driver, Mongoid

@misho-kr
misho-kr / Algorithms: Design and Analysis, Part 2.md
Created April 4, 2015 06:33
Summary of "Algorithms: Design and Analysis, Part 2" course at Coursera.Org

The course will have six weeks of lectures and assignments, followed by a final exam.

Week 1

I. TWO MOTIVATING APPLICATIONS

  • Distributed shortest-path routing -- sending email messages
@misho-kr
misho-kr / Algorithms, Part I.md
Last active September 30, 2016 06:03
Summary of "Algorithms, Part I" course at Coursera.Org

The course is based on a variety of material that we have prepared over many years:

  • Our textbook Algorithms, 4th edition is the basic reference for the material we will be covering
  • Our booksite, which is open to everyone and contains a wealth of supplementary information, including synopses of the textbook and Java code that you will be using throughout the course

References: