Skip to content

Instantly share code, notes, and snippets.

View josescasanova's full-sized avatar
:octocat:

jose josescasanova

:octocat:
View GitHub Profile
@josescasanova
josescasanova / queue_item.rb
Created March 18, 2014 13:04
Queue_item tests
.............F...F........................................
Failures:
1) QueueItem#category_name returns the category's name of the video
Failure/Error: expect(queue_item.category_name).to eq("comedies")
expected: "comedies"
got: "Category"
Verifying I am +josecasanova on my passcard. https://onename.com/josecasanova
@josescasanova
josescasanova / index.html
Created July 7, 2015 02:25
made with love
<span>
Made with <i class="fa fa-heart pulse"></i> in <a href="#" target="_blank">Miami</a>
</span>
@josescasanova
josescasanova / The Technical Interview Cheat Sheet.md
Last active August 29, 2015 14:28 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.
// Trigger page view track
mixpanel.track('Viewed Affiliate', {
'Version': '1',
'SD': 'SeamlessDocs'
});
sample here
import UIKit
import TVMLKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate, TVApplicationControllerDelegate {
var window: UIWindow?
}
var appController: TVApplicationController?
static let TVBaseURL = "http://localhost:9001/"
static let TVBootURL = "\(AppDelegate.TVBaseURL)js/application.js"
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
window = UIWindow(frame: UIScreen.mainScreen().bounds)
let appControllerContext = TVApplicationControllerContext()
guard let javaScriptURL = NSURL(string: AppDelegate.TVBootURL) else {
fatalError("unable to create NSURL")
}
appControllerContext.javaScriptApplicationURL = javaScriptURL
appControllerContext.launchOptions["BASEURL"] = AppDelegate.TVBaseURL
//
// AppDelegate.swift
// catVideos
//
// Created by Jose Casanova on 9/27/15.
// Copyright © 2015 Jose Casanova. All rights reserved.
//
import UIKit
import TVMLKit