Skip to content

Instantly share code, notes, and snippets.

View JimmySorza's full-sized avatar

Jimmy Sorza JimmySorza

View GitHub Profile
diff --git a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
index d7d32cd..2443037 100644
--- a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
+++ b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/RNNotificationsPackage.java
@@ -4,28 +4,25 @@ import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.os.Bundle;
-import android.util.Log;
@JimmySorza
JimmySorza / android-studio-disable-test-only-mode.md
Created March 20, 2020 17:48 — forked from xujiaao/android-studio-disable-test-only-mode.md
Disable 'testOnly' mode for Android Studio 3.0
tags
Android
Android Studio

Disable 'testOnly' mode for Android Studio 3.0

@JimmySorza
JimmySorza / ReactNativeHTML.js
Created March 6, 2020 23:05 — forked from jsdf/ReactNativeHTML.js
Rendering HTML rich text as React Native <Text> elements
var React = require('react-native')
var {
View,
Text,
LinkingIOS,
StyleSheet,
} = React
// you might want to compile these two as standalone umd bundles
// using `browserify --standalone` and `derequire`
@JimmySorza
JimmySorza / true-ip-client.js
Last active February 13, 2020 21:45
get the true ip client with javascript using cloudfare
var req = new XMLHttpRequest();
req.open('GET', 'https://www.cloudflare.com/cdn-cgi/trace', false);
req.send(null);
if(req.status === 200) {
console.log(req.responseText);
}
@JimmySorza
JimmySorza / .zshrc
Created January 27, 2020 16:37 — forked from Alexisvt/.zshrc
.zshrc configuration file configured to work with Android and Flutter
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/aleville3/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AutoComplete from 'material-ui/AutoComplete';
import FieldTitle from 'admin-on-rest/lib/util/FieldTitle';
import { connect } from 'react-redux';
import { crudGetList as crudGetListAction } from 'admin-on-rest/lib/actions/dataActions';
import _ from 'lodash';
export class AutocompleteRemoteInput extends Component {
@JimmySorza
JimmySorza / custom-error.js
Created November 6, 2018 16:02 — forked from justmoon/custom-error.js
Creating custom Error classes in Node.js
'use strict';
module.exports = function CustomError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message;
this.extra = extra;
};
require('util').inherits(module.exports, Error);
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">