Skip to content

Instantly share code, notes, and snippets.

@duhduhdan
duhduhdan / 2.0.0-alpha.24.js
Last active October 7, 2019 23:11
Example
import React from "react";
import { Text, TouchableOpacity, ScrollView, View } from "react-native";
import { createAppContainer, Themed } from "react-navigation";
import {
createStackNavigator,
NavigationStackProp
} from "react-navigation-stack";
import { createBottomTabNavigator } from "react-navigation-tabs";
import { Ionicons } from "@expo/vector-icons";
import { useSafeArea } from "react-native-safe-area-context";

Keybase proof

I hereby claim:

  • I am duhduhdan on github.
  • I am duhduhdan (https://keybase.io/duhduhdan) on keybase.
  • I have a public key ASAA_O18QaNnN1WJ-UxUoTWy9jk2dM6GDWE9cIdhO_4srgo

To claim this, I am signing this object:

@duhduhdan
duhduhdan / Future.js
Last active May 11, 2017 18:08
Experimenting with FP theorems
/**
* Future denotes a value that will occur after a certain amount of time
* Is a Functor:
* - type acting as context for other types
* - can apply normal function inside
* Is a Monad:
* - lifts a normal value to a Monadic one (Future.of)
* - chains 2 consecutive operations (Future.prototype.flatMap)
*/
class Future {
@duhduhdan
duhduhdan / webpack.config.js
Created May 5, 2016 14:22
Basic Webpack Setup
const path = require('path')
const webpack = require('webpack')
const root = path.normalize(__dirname, '/client')
const dist = path.join(root, '/dist')
const appEntry = path.join(root, '/src/client.js')
module.exports = {
entry: [
'webpack-dev-server/client?http://localhost:8080',