Skip to content

Instantly share code, notes, and snippets.

View jgimenez's full-sized avatar

Jordi Giménez Gámez jgimenez

View GitHub Profile
@jgimenez
jgimenez / Bugfender.cs
Last active October 31, 2016 16:07
Unity support for Bugfender
using UnityEngine;
using System.Collections;
public class Bugfender : MonoBehaviour {
public string APP_KEY;
private static AndroidJavaClass bugfender;
// Use this for initialization
void Start () {
@jgimenez
jgimenez / README.md
Last active October 19, 2016 10:50
Twitter Logging Service for iOS output stream to Bugfender

This code lets you use Bugfender as an output stream in your Twitter Logging Service instance.

First of all, set up Twitter Logging Service and Bugfender following the instructions given in their websites.

Then add Bugfender to TLS like this:

TLSLoggingService *logger = [TLSLoggingService sharedInstance];
[logger addOutputStream:[TLSBugfenderOutputStream new]];
@jgimenez
jgimenez / BugfenderDestination.swift
Created October 19, 2016 10:09
SwiftyBeaver destination to Bugfender
//
// BugfenderDestination.swift
// Bugfender
//
// Copyright by Bugfender Team
import Foundation
import SwiftyBeaver
public class BugfenderDestination: BaseDestination {
@jgimenez
jgimenez / device_models.sql
Created January 25, 2016 14:42
SQL of iOS (iPhone/iPad/iPod) models described
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DROP TABLE IF EXISTS `device_models`;
CREATE TABLE `device_models` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`model_id` varchar(10) NOT NULL,
`model_name` varchar(50) NOT NULL,
@jgimenez
jgimenez / gist:da69495b2ce30f96a065
Created March 4, 2015 14:40
Asana notifications for FluidApp
// For use with fluidapp.com (pro version)
// For Google Chrome/Firefox/Safari: https://greasyfork.org/en/scripts/6118-asana-notifications-favicon
(function() {
// changes the favicon. avoids setting the same favicon twice.
function updateFavicon(unread) {
if(this.lastState != unread) { // ensures we're not changing the icon all the time
window.fluid.dockBadge = unread ? '★' : '';
this.lastState = unread;
}
@jgimenez
jgimenez / keybase.md
Created May 21, 2014 08:50
keybase statement

Keybase proof

I hereby claim:

  • I am jgimenez on github.
  • I am gimix (https://keybase.io/gimix) on keybase.
  • I have a public key whose fingerprint is F0B9 7053 AF22 D772 F3B6 5BCA AD23 9146 06D3 C5B6

To claim this, I am signing this object:

package cat.mobilejazz.android.system;
public class AndroidFlavors {
// http://stackoverflow.com/questions/8309624/detect-app-is-running-on-kindle-fire
public static boolean isKindleFire() {
return android.os.Build.MANUFACTURER.equals("Amazon")
&& (android.os.Build.MODEL.equals("Kindle Fire")
|| android.os.Build.MODEL.startsWith("KF"));
}