Skip to content

Instantly share code, notes, and snippets.


Tuan Nguyen Anh anhtuank7c

Block or report user

Report or block anhtuank7c

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
radiovisual / .eslintrc
Last active Aug 11, 2019
React Native AirBnB ESLint Config
View .eslintrc
"parser": "babel-eslint",
"plugins": [
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
JagCesar / Fastfile
Created Dec 29, 2016
Cookin Fastfile
View Fastfile
# Customise this file, documentation can be found here:
# All available actions:
# can also be listed using the `fastlane actions` command
# Change the syntax highlighting to Ruby
# All lines starting with a # are ignored when running `fastlane`
# If you want to automatically update fastlane if a new version is available:
# update_fastlane
megahertz / MobxRnnProvider.js
Last active Dec 18, 2018
This is a provider which allows to use mobx-react Provider with wix/react-native-navigation.
View MobxRnnProvider.js
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: {
mfmendiola /
Created Nov 17, 2016
ReadableArray and ReadableMap serialization helpers for the React Native—Android bridge.
ArrayUtil exposes a set of helper methods for working with
ReadableArray (by React Native), Object[], and JSONArray.
package com.iodine.start;
import com.facebook.react.bridge.Arguments;
import com.facebook.react.bridge.ReadableArray;
Bhavdip /
Created Oct 6, 2016
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:
View bitrise.yml
format_version: 1.2.0
- opts:
is_expand: false
- opts:
is_expand: false
knowbody / App.js
Last active Mar 18, 2019
Check internet connection in React Native app
View App.js
// quick snippet to check the connection in your RN app
// dispatches an `setIsConnected` action every time the NetInfo changes (on/off network)
componentDidMount() {
const dispatchConnected = isConnected => this.props.dispatch(setIsConnected(isConnected));
NetInfo.isConnected.fetch().then().done(() => {
NetInfo.isConnected.addEventListener('change', dispatchConnected);
View ElasticPaginatorComponent.php
namespace App\Controller\Component;
use Cake\Controller\Component\PaginatorComponent;
use Cake\Datasource\RepositoryInterface;
use Cake\Network\Exception\NotFoundException;
use Cake\ElasticSearch\Query;
class ElasticPaginatorComponent extends PaginatorComponent
mmazzarolo / Appfile
Created May 17, 2016
Simple Fastlane setup for React-Native (Android - iOS)
View Appfile
# iOS
app_identifier "" # The bundle identifier of your app
apple_id "" # Your Apple email address
team_id "1234ABCD" # Developer Portal Team ID
# Android
json_key_file "./google-play-api-secret.json" # Path to the json secret file - Follow to get one
package_name "" # Your Android app package
lopspower /
Last active Oct 19, 2019
Hexadecimal color code for transparency

Hexadecimal color code for transparency


How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

You can’t perform that action at this time.