Skip to content

Instantly share code, notes, and snippets.


title: "test" date: 2018-09-09T00:00:00-00:00 copyright: "Your Website" #mapsapikey: xxx

socialhandles: twitter: "stream_running" github: "runningstream"

googplus: "goog_addr_here"

@putuyoga
putuyoga / eslintrc.js
Created November 2, 2018 08:40
My Favorite React Native ESLint Rule
module.exports = {
parser: 'babel-eslint',
env: { browser: true },
extends: 'airbnb',
plugins: ['react', 'react-native', 'jsx-a11y', 'import', 'jest'],
rules: {
// Import Rules
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'import/no-named-as-default': 1,
'import/prefer-default-export': 2,
@putuyoga
putuyoga / CustomStorage.js
Created July 25, 2018 03:28
React Native Custom Storage for Android
import RNFetchBlob from 'react-native-fetch-blob';
const DocumentDir = RNFetchBlob.fs.dirs.DocumentDir;
const storagePath = `${DocumentDir}/persistStore`;
const encoding = 'utf8';
const toFileName = name => (
name.split(':').join('-')
);
@putuyoga
putuyoga / Human.cs
Created January 8, 2016 09:09
Simple class of Human.
public class Human
{
public int Energy { get; private set; }
public bool Tired { get; private set; }
public void Eat(int calory)
{
Energy += calory;
}