Skip to content

Instantly share code, notes, and snippets.

// actions.js
import { FETCH_DATA } from "./actionTypes";
export const fetchData = () => ({
type: FETCH_DATA,
payload: {}
});
// List of actions
// - Fetch Data
//
export const FETCH_DATA = "FETCH_DATA";
@amol-c
amol-c / store.js
Last active December 25, 2019 00:16
import { createStore } from "redux";
import { devToolsEnhancer } from 'redux-devtools-extension';
const reducer = (state = {}, action) => {
return state
}
export default createStore(reducer, devToolsEnhancer());
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { Provider } from 'react-redux'
import store from './redux/store'
const rootElement = document.getElementById('root')
import { createStore } from "redux";
const reducer = (state = {}, action) => {
return state
}
export default createStore(reducer);
lt -l mobile-api.app -s mobileapi -p 80
import Argo
import Runes
struct Author {
let id: Int
let name: String
let state: String
let city: String
let image: String
}
@amol-c
amol-c / 0_reuse_code.js
Last active August 29, 2015 14:15
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[FacebookAuthorization createPlayerOnServerForEmailId:fbName:userId:andFacebookAccessToken:]_block_invoke_0 [Line 136] Error while logging player Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0xc8d8210 {NSLocalizedRecoverySuggestion=<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;
@amol-c
amol-c / gist:4535784
Created January 15, 2013 03:23
error
Couldnot create player due to internet error Error Domain=AFNetworkingErrorDomain Code=-1011 "Expected status code in (200-299), got 500" UserInfo=0xabd9830 {NSLocalizedRecoverySuggestion=<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Action Controller: Exception caught</title>
<style>
body { background-color: #fff; color: #333; }
body, p, ol, ul, td {
font-family: helvetica, verdana, arial, sans-serif;