Skip to content

Instantly share code, notes, and snippets.

View RommelTJ's full-sized avatar
🥑
Guac happening

Rommel Rico RommelTJ

🥑
Guac happening
View GitHub Profile
{
"public_identifier":"rommel-rico-29661363",
"profile_pic_url":"None",
"background_cover_image_url":"None",
"first_name":"Rommel",
"last_name":"Rico",
"full_name":"Rommel Rico",
"follower_count":419,
"occupation":"Team Lead, Engineer III at Chatmeter",
"headline":"Team Lead, Engineer III",

Keybase proof

I hereby claim:

  • I am rommeltj on github.
  • I am rommelrico (https://keybase.io/rommelrico) on keybase.
  • I have a public key ASBrGNi8uVBo0mc9m7FlJsQANFdR2vLmdhUSSt__qQbekwo

To claim this, I am signing this object:

protocol MyProtocol {
func doSomething() -> String
// factory
static func make() -> MyProtocol
}
typealias WidgetFactory = () -> MyProtocol
class WidgetA: MyProtocol {
WKInterfaceController.openParentApplication(["content": "isLoggedIn"], reply: { (reply, error) -> Void in
if let response = reply as? [String:String] {
if let loggedIn = response["loggedIn"] {
if loggedIn == "true" {
WKInterfaceController.openParentApplication(["content": "getMessages"], reply: { (reply, error) -> Void in
if let response = reply as? [String:[String]] {
if let messages = response["messages"] {
self.table.setHidden(false)
self.table.setNumberOfRows(messages.count, withRowType: "TableRowController")
@RommelTJ
RommelTJ / DynamicNotificationController
Created April 20, 2015 19:07
Sample Dynamic Notification for Apple Watch
//
// DynamicNotificationController.swift
// NotificationDemo
//
// Created by Rommel Rico on 4/20/15.
// Copyright (c) 2015 Rommel Rico. All rights reserved.
//
import WatchKit
import Foundation
//
// ViewController.m
// D21Background
//
// Created by Rommel Rico on 2/5/15.
// Copyright (c) 2015 Rommel Rico. All rights reserved.
//
#import "ViewController.h"
@RommelTJ
RommelTJ / gist:8246805
Created January 3, 2014 21:19
Android Urban Airship stack trace
FATAL EXCEPTION: main
java.lang.RuntimeException: Binary XML file line #20: You must supply a layout_height attribute.
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:5632)
at android.view.ViewGroup$LayoutParams.<init>(ViewGroup.java:5584)
at android.view.ViewGroup.generateLayoutParams(ViewGroup.java:4655)
at android.view.LayoutInflater.inflate(LayoutInflater.java:477)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.widget.ArrayAdapter.createViewFromResource(ArrayAdapter.java:371)
at android.widget.ArrayAdapter.getView(ArrayAdapter.java:362)