Skip to content

Instantly share code, notes, and snippets.

View hellyeah's full-sized avatar

David Fontenot hellyeah

View GitHub Profile
//
// Vendor.swift
// Cash In
//
// Created by David Fontenot on 12/1/15.
// Copyright © 2015 MChackathon. All rights reserved.
//
import Foundation
var params = []
let twentyDollars = UIAlertAction(title: "$20", style: .Default, handler: {
(alert: UIAlertAction!) -> Void in
//poss do asyc funcs? idk how to code that but it would give the vc time to initialize and find current loc & render map
let vc = self.mainStoryboard.instantiateViewControllerWithIdentifier("MapViewController") as! MapViewController
self.presentViewController(loadingAlert, animated: true, completion: {() -> Void in
sleep(2)
self.dismissViewControllerAnimated(true, completion: {() -> Void in
self.showViewController(vc, sender: self)})
print("20 Selected")
})
if !(annotation is MKPointAnnotation) {
return nil
}

Day One: InstaCache Goal: working app in 12 hours (11pm)

11am Hacking Starts Customer Discovery 3pm Start building iOS Consumer app/Whatsapp vendor app 6pm Dinner 11pm Demos

//give me cash l
function getMePlaces(lat, long) {
return _array_of_places_
}
import Romans from "roman-numerals"
let toRoman = Romans.toRoman
console.log(toRoman(5))
let hackathons = [{title: "MHacks", organizer: "Dave Font", img: 'http://mhacks.com/images/mhacksIV.svg'},
{title: "HackDuke", organizer: "Ashley Qian", img: 'http://mhacks.com/images/mhacksIV.svg'},
{title: "HackHolyoke", organizer: "Eva Snyder", img: 'http://mhacks.com/images/mhacksV.svg'},
{title: "Cal Hacks", organizer: "Evadora", img: 'http://mhacks.com/images/mhacksVI.svg'}]
let cover = romanNumeral => `http://mhacks.com/images/mhacks${romanNumeral}.svg`
//hackathons = [{title: 'blah', author:'blahblah'}]
import Romans from "roman-numerals"
var toRoman = Romans.toRoman
console.log(toRoman(5))
hackathons = [{title: "MHacks", organizer: "Dave Font", img: 'http://mhacks.com/images/mhacksIV.svg'},
{title: "HackDuke", organizer: "Ashley Qian", img: 'http://mhacks.com/images/mhacksIV.svg'},
{title: "HackHolyoke", organizer: "Eva Snyder", img: 'http://mhacks.com/images/mhacksV.svg'},
{title: "Cal Hacks", organizer: "Evadora", img: 'http://mhacks.com/images/mhacksVI.svg'}]
cover = romanNumeral => `http://mhacks.com/images/mhacks${toRoman(romanNumeral+1)}.svg`
//hackathons = [{title: 'blah', author:'blahblah'}]
var inputs = document.getElementsByClassName('_1pu2');
for(var i=0;i<inputs.length;i++)
{ inputs[i].click(); }
class ScrollViewController: UIViewController, UIScrollViewDelegate {
var scrollView: UIScrollView!
var imageView: UIImageView!
var pageControl: UIPageControl!
override func viewDidLoad() {
super.viewDidLoad()
scrollView = UIScrollView(frame: view.bounds)