- Define nested Schema
- Saga middleware detect a _REQUEST Action, which trigger a API request
- API request success trigger a _REQUEST_SUCCESS Action, api client get API response, map it with model to be normalized to, if the match found, normalizer flatten the nested JSON objects into flat entities structure, then send to store
- Redux store puts the normalized entities in place automatically
- ?? We need to manually update associated key to parent object, can this be automated?
- When passing data from Store to Container, we denormalize the objects by recursively looking into the key -> object mapping, reassemble the parent object. If any child object is missing, we report a error in console
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dependencies: | |
pre: | |
- curl -o- -L https://yarnpkg.com/install.sh | bash | |
override: | |
- yarn | |
post: # At least for me, it doesn't seem like `scripts` in `package.json` are being run, so you need to add them explicitly | |
- yarn run postinstall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)webViewDidFinishLoad:(UIWebView*)theWebView | |
{ | |
// Black base color for background matches the native apps | |
theWebView.backgroundColor = [UIColor blackColor]; | |
// Register for notification center | |
[[NSNotificationCenter defaultCenter] | |
addObserver:self | |
selector:@selector(keyboardWillShow:) | |
name:UIKeyboardWillShowNotification |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Code created by Kwik - Copyright: kwiksher.com | |
-- Version: 2.2.5 | |
module(..., package.seeall) | |
function new() | |
local numPages = 3 | |
local menuGroup = display.newGroup() | |
local dispose | |
local _W = 1536 | |
local _H = 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n = 1000 | |
t = 1 | |
Time: 0.000726, Threads used: 1 | |
Time: 0.000699, Threads used: 1 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- | |
-- Abstract: animated sprite or "movieclip" library | |
-- This library assembles animation sequences from individual image files. For more advanced | |
-- texture memory handling, see the "sprite sheet" feature in Corona Game Edition. | |
-- | |
-- Version: 2.01 | |
-- | |
-- Modified by Michael Hartlef, June 12th, 2010 | |
-- Added setSpeed method, which sets the speed of animation. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isTall = ( "iPhone" == system.getInfo( "model" ) ) and ( display.pixelHeight > 960 ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
typedef struct { | |
int nrows, ncols; | |
float *data; | |
} matrix_t; | |
float constC(int i, int j, matrix_t A, matrix_t B) { | |
int k; | |
float res = 0.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(ehtml). | |
%-compile(export_all). | |
-export([ehtml_expand/1]). | |
%%%Nicked from YAWS | |
%% ------------------------------------------------------------ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(gol). | |
-export([gol/3,timer/1,cell/6]). | |
% Main program | |
gol(W,H,Alive) -> | |
frame:init(), | |
frame:set_head("Conway's Game of Life in Erlang"), | |
frame:set_foot("By Jonatan and Anders"), | |
frame:set_w(W), | |
frame:set_h(H), |
NewerOlder