Skip to content

Instantly share code, notes, and snippets.

View rxmichael's full-sized avatar
💭
🚀

Michael Eid rxmichael

💭
🚀
View GitHub Profile

Keybase proof

I hereby claim:

  • I am rxmichael on github.
  • I am michaeleid (https://keybase.io/michaeleid) on keybase.
  • I have a public key ASA6opLz6bjl67QoVoBSnlRGlCA6D0dmLXCbvd9_uGcx7Qo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am teressaeid on github.
  • I am teressaeid (https://keybase.io/teressaeid) on keybase.
  • I have a public key ASC6YNW4FoMLYpqOWM-WWUQtaG4enMn3BdYDC9AOe1kBoQo

To claim this, I am signing this object:

@rxmichael
rxmichael / cocoapod.sh
Created March 8, 2018 20:59
Podspec update script
#!/bin/bash
sources="https://github.com/CocoaPods/Specs.git"
podRepo="INSERT YOUR PRIVATE POD REPO HERE"
echo "--------tag list--------"
git tag -l
echo "--------tag list--------"
@rxmichael
rxmichael / APIManager.swift
Last active September 1, 2017 01:40
Robots and Pencils
/**
This is an example of a REST API Network Manager. We have implemented the retreive method to work via an HTTP GET request to the API
Alamofire is used for simplicity of showing the request
**/
import Foundation
import Alamofire
class APIManager: NetworkManagaer {
@rxmichael
rxmichael / The Technical Interview Cheat Sheet.md
Created October 14, 2016 12:07 — 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.
@rxmichael
rxmichael / UIColor+Hex.swift
Created September 28, 2016 14:11
Extension for creating UIColor with hex values
import Foundation
import UIKit
/** Extends UIColor to initialize UIColor using hex values, f.e. UIColor(hex: 0x8046A2) */
extension UIColor {
convenience init(hex: Int, alpha: CGFloat) {
let r = CGFloat((hex & 0xFF0000) >> 16)/255
let g = CGFloat((hex & 0xFF00) >> 8)/255
let b = CGFloat(hex & 0xFF)/255
self.init(red: r, green: g, blue: b, alpha: alpha)
@rxmichael
rxmichael / LRUCache.java
Last active September 24, 2016 18:40
Java implementation of a cache
import java.util.HashMap;
import java.util.Iterator;
public class LRUCache<K,V>
{
// generic node class used to store key/value
class Node <K,V> {
K key;
V value;
Node next;
Node prev;