Skip to content

Instantly share code, notes, and snippets.

View brunobar79's full-sized avatar
💭
Building apps at @rainbow-me 🌈

Bruno Barbieri brunobar79

💭
Building apps at @rainbow-me 🌈
View GitHub Profile
@brunobar79
brunobar79 / RELEASE-NOTES.md
Last active July 13, 2019 00:26
MetaMask v0.1.8 Release notes

v0.1.8 - Private Beta

🙌 Thanks for trying out the MetaMask mobile BETA! We really appreciate your feedback 🤗

Table of Contents

@brunobar79
brunobar79 / Keybase.md
Created January 9, 2019 04:34
Keybase

Keybase proof

I hereby claim:

  • I am brunobar79 on github.
  • I am brunobar79 (https://keybase.io/brunobar79) on keybase.
  • I have a public key ASDPWn9zVcS9hX3CYquoq_MVQ5Actr0SaciU_rddf2vDCgo

To claim this, I am signing this object:

@brunobar79
brunobar79 / ButtonPackage.java
Created January 17, 2017 20:03
ButtonPackage.java
public class ButtonPackage implements ReactPackage {
private Button mModuleInstance;
@Override
public List<NativeModule> createNativeModules(ReactApplicationContext reactContext) {
List<NativeModule> modules = new ArrayList<>();
mModuleInstance = new Button(reactContext);
modules.add(mModuleInstance);
@brunobar79
brunobar79 / DimensionsHelper.js
Created March 9, 2016 18:45
Dimensions Helper
'use strict';
import React from 'react-native';
const {
Dimensions
} = React;
export default class DimensionsHelper{
static isIpad() {
@brunobar79
brunobar79 / AppDelegate.m
Created January 23, 2016 02:04
Using CLS_LOG in React Native Logs
RCTLogFunction CrashlyticsReactLogFunction = ^(
RCTLogLevel level,
__unused RCTLogSource source,
NSString *fileName,
NSNumber *lineNumber,
NSString *message
)
{
NSString *log = RCTFormatLog([NSDate date], level, fileName, lineNumber, message);
@brunobar79
brunobar79 / blockEmptyLinks.js
Created July 21, 2015 16:54
block empty links
@brunobar79
brunobar79 / column-width.something
Created January 14, 2015 21:55
column-width-stuff
var columnWidthSupported = typeof(document.body.style.webkitColumnWidth || document.body.style.mozColumnWidth)!== undefined;
var columns = [],
col_count = 2;
if($rootScope.matchMedia.small){
col_count = 4;
}else if($rootScope.matchMedia.smallPortrait){
@brunobar79
brunobar79 / applyToClassElements.js
Created January 13, 2015 18:37
applyToClassElements
function applyToClassElements(className,property,value){
var elements = document.querySelectorAll(className);
for(var i=0;i< elements.length; i++){
elements[i].property = value;
}
}
function colsWidth($num_cols,$total_width, $total_cols, $gutter_width){
if(typeof $total_cols === undefined){
$total_cols = 6;
}
if(typeof $gutter_width === undefined){
$gutter_width = 10;
}
var col_width = ($total_width - ($gutter_width * 2 * $total_cols) ) / $total_cols;