Skip to content

Instantly share code, notes, and snippets.

@f0rr0
f0rr0 / cocktail.json
Last active September 29, 2020 00:12 — forked from akki91/cocktail.json
Skin kult apis
{
"data":{
"sections":[
{
"items":[
{
"type": "cocktail-intent",
"text_color": "#ffffff",
"title": "Emergency Anti Acne",
"subtitle": "Moisturizer + Face Serum",
@f0rr0
f0rr0 / README.md
Created August 26, 2017 05:17 — forked from busypeoples/README.md
Making Impossible States Impossible in ReasonML

Making Impossible States Impossible in ReasonML

Introduction

If you have already seen Richard Feldman's talk entitled "Making Impossible States Impossible" or have read "Designing with types: Making illegal states unrepresentable" then you can skip the explanations and just head straight to the Reason examples.

This post is intended to display how to model your Reason Application to prevent creating impossible states. The benefits of being able to design a feature in this way include avoiding having to deal with complex test scenarios regarding defined business rules and a clear documentation of what is possible just by looking at the type definition. Long story short, let's see how this all works by implementing an example.

Requirements

@f0rr0
f0rr0 / gist:7cb0b4b4b31ffd108e578ec1e423f267
Created December 27, 2016 06:42 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
@f0rr0
f0rr0 / ex-navigation.md
Created November 18, 2016 18:43 — forked from knowbody/ex-navigation.md
My exponent's ex-navigation docs/thoughts

Exponent - ex-navigation

This is for now, for my personal use only, things might not be correctly explained here. For the official docs please check: https://github.com/exponentjs/ex-navigation/blob/master/README.md

Navigation bar configuration

On every screen you can use the built-in navigation bar, you can add a title, left button, right button or change navigation bar’s style. All you need to do is pass appropriate params to navigationBar in the route configuration:

import React, { Component } from 'react';