Skip to content

Instantly share code, notes, and snippets.

View NetPumi2's full-sized avatar
:octocat:
Programming is like magic.

Lukáš Šálek NetPumi2

:octocat:
Programming is like magic.
View GitHub Profile
@lenkavon
lenkavon / reactiveconf-2017-cfp-shared-logic-web-mobile.md
Last active November 21, 2017 10:00
Sharing code between web and mobile using React, ReactNative and Redux

This is the response to lightning talk CFP at ReactiveConf.

Sharing code between web and mobile using React + ReactNative + Redux

When you stand in front of the project that aims to come with mobile and web application, going for combo React.js & ReactNative is easy choice. But to decide how to handle the data flow is a different story.

My team made this decision and after couple of talks and earlier experience with graphQL + Relay, we went for Redux. Redux enabled us to share most of the bussines logic even though the apps differ in usecases. I would like to share the challenges we had to overcome with you.

@codebutler
codebutler / JsonHelper.java
Created April 8, 2012 20:20
Convert Android JSONObject/JSONArray to a standard Map/List.
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.*;
public class JsonHelper {
public static Object toJSON(Object object) throws JSONException {
if (object instanceof Map) {
JSONObject json = new JSONObject();