Skip to content

Instantly share code, notes, and snippets.

View dhiraj-das's full-sized avatar
:octocat:
starting something new

Dhiraj Das dhiraj-das

:octocat:
starting something new
  • Guwahati, India
View GitHub Profile

Privacy Policy

As a user, you will be interacting with our app by voice or text input through the Google Assistant. Our conversations with you involve asking for some information, storing it temporarily and transmitting the same to our server with API.AI and then sending you a result.

What Information We Collect

  • Name, gender and age of the child for whom you would want to use our service
  • Your feedback regarding some of our responses
  • That is mostly it. We do not collect any passwords, usernames or any other sensitive information. We also do not verify if the inputs you provide are correct, or real or fictitious.

#moc-iOS

Repo for iOS Development month of code.

#####Prerequisites: Should be familiar with basics of OOP.

Course structure:

//
// ViewController.swift
// EmptyStateDemo
//
// Created by Dhiraj Das on 5/20/17.
// Copyright © 2017 Dhiraj Das. All rights reserved.
//
import UIKit
import ReachabilitySwift
@dhiraj-das
dhiraj-das / Builder.swift
Created May 2, 2017 17:23
Builder Design Pattern in Swift
var myHouse: House? = nil
myHouse = HouseBuilder(noOfRooms: 2)
.set(color: .red)
.addBalcony()
.set(noOfBathrooms: 3)
.build()
@dhiraj-das
dhiraj-das / HouseBuilder.swift
Created May 2, 2017 17:21
Builder Design Pattern in Swift
class HouseBuilder {
var color: UIColor = UIColor.white
var noOfRooms: Int
var noOfBathrooms: Int = 1
var hasBalcony: Bool = false
init(noOfRooms: Int) {
self.noOfRooms = noOfRooms
}
@dhiraj-das
dhiraj-das / House.swift
Created May 2, 2017 17:19
Builder Design Pattern in Swift
class House {
var color: UIColor
var noOfRooms: Int
var noOfBathrooms: Int
var hasBalcony: Bool
init(builder: HouseBuilder)
{
color = builder.color
noOfRooms = builder.noOfRooms