Skip to content

Instantly share code, notes, and snippets.

View hetmann's full-sized avatar
:electron:
react-native-10x-faster.com

Hetmann W. Iohan hetmann

:electron:
react-native-10x-faster.com
View GitHub Profile
@hetmann
hetmann / react-native-eslint.md
Last active February 27, 2020 08:57
React-Native & ESLint in 2 steps

React-Native & ESLint in 2 steps

Step 1.

Install (npm or yarn) the following packages to your project

yarn add @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint eslint-config-universe eslint-plugin-react-redux prettier typescript --dev

Step 2.

@hetmann
hetmann / ZendeskChat.js
Last active December 20, 2023 07:18
React Native implementation for Zendesk Chat using WebView & Modal components
import React, { Component } from "react";
import { WebView } from "react-native-webview";
import { Button, Modal, View } from "react-native";
// Author: Hetmann Wilhelm Iohan
// Email: contact@react-ui-kit.com
// Web: https://react-ui-kit.com
// YouTube: https://www.youtube.com/react-ui-kit
// This is a basic example showing how to use Zendesk Chat Widget using a webview inside a modal and a html code
@hetmann
hetmann / ducks-modular-redux.js
Created August 27, 2018 19:58
Redux Ducks - Proposal
// React - Redux Ducks proposal
// https://github.com/erikras/ducks-modular-redux
// Actions
const LOAD_PROFILE = 'instagram/profile/LOAD';
const EDIT_PROFILE = 'instagram/profile/EDIT';
// Initial state
const INITIAL_STATE = {
profile: {}
@hetmann
hetmann / Immutable JS Examples
Created August 25, 2017 11:09 — forked from singhshivam/Immutable JS Examples
Immutable JS Examples
List()
var list = Immutable.List([1,2,3])
// [1, 2, 3]
List.isList()
Immutable.List.isList(list)
// true
List.of()
var list = Immutable.List.of(1,2,3);
@hetmann
hetmann / traceroute.js
Created January 6, 2017 13:02 — forked from liamgriffiths/traceroute.js
traceroute clone in javascript
// sloppy traceroute clone
// inpired by https://blogs.oracle.com/ksplice/entry/learning_by_doing_writing_your
// and made possible by https://www.npmjs.org/package/raw-socket
var raw = require('raw-socket');
var dns = require('dns');
var target = process.argv[2] || '173.230.146.29';
var MAX_HOPS = 64;
var TIME_LIMIT = 5000;