Skip to content

Instantly share code, notes, and snippets.

View brotoo25's full-sized avatar

Broto brotoo25

  • Broto Tech.
  • Brazil
View GitHub Profile
@megahertz
megahertz / MobxRnnProvider.js
Last active January 11, 2020 09:56
This is a provider which allows to use mobx-react Provider with wix/react-native-navigation.
import { Provider } from 'mobx-react/native';
const SPECIAL_REACT_KEYS = { children: true, key: true, ref: true };
export default class MobxRnnProvider extends Provider {
props: {
store: Object
};
context: {
@dziad
dziad / JsonApiConverter.java
Last active February 15, 2016 21:00
JsonApi Gson Custom Converter
package com.travelpath.android.api;
import com.desmart.Inflector;
import com.google.gson.*;
import com.travelpath.android.api.responses.AuthenticateResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
@netoleal
netoleal / UIImage+Tint.h
Created August 5, 2014 20:56
UIImage+Tint
#import <UIKit/UIKit.h>
@interface UIImage (Tint)
- (UIImage *)tintedImageUsingColor:(UIColor *)tintColor;
@end
@alphazo
alphazo / gist:3303282
Created August 9, 2012 11:03
Clone MiFare cards using chinesse UUID writable cards

libnfc supports UUID writable cards and even has some dedicated tools for them.

However it doesn't work with some of the cards found on eBay that are even simpler to use. Sector 0 is unlocked and can be written without any additional commands. libnfc requires a small patch to get it working.

Following has been tested under ArchLinux with modified libnfc 1.5.1, mfoc 0.10.2 and a SCL3711 dongle.

Patch & recompile libnfc

The patch is fairly simple, open libnfc-1.5.1/utils/nfc-mfclassic.c and comment 2 lines (it was lines 384 and 385 for me):

// Try to write the trailer