Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
curl -v --location --request POST "https://route.example.com/route/v2/send" --header 'Content-Type: multipart/mixed; boundary=mimeboundary' --header 'Authorization: Basic AUTH_TOKEN' --data-binary "@body_data.txt" | |
body_data.txt is: | |
--mimeboundary | |
Content-Type: application/json | |
Content-Id: main | |
{ |
defmodule Foo.Context do | |
@moduledoc false | |
defmacro __using__(modules) do | |
quote bind_quoted: [modules: modules] do | |
alias Foo.Repo | |
alias Ecto.Query | |
for module <- modules do | |
schema = |
Following instructions from the excellent https://www.rinkeby.io/
A full node lets you access all state. There is a light node (state-on-demand) and wallet-only (no state) instructions as well,
defmodule Ponty96.ToolTips.ErrorParser do | |
import Ponty96.ToolTips.Camelize, only: [camelize: 1] | |
def parse_errors(changeset) do | |
errors = | |
changeset | |
|> handle_changeset_errors() | |
|> Map.to_list | |
|> Enum.map(fn error -> | |
key = error |> elem(0) |> Atom.to_string |> camelize() |
defmodule Ponty96.ToolTips.Camelize do | |
@moduledoc false | |
def camelize(word), do: camelize(word, []) | |
def camelize(word, opts \\ []) | |
def camelize("_" <> word, opts) do | |
"_" <> camelize(word, opts) | |
end | |
def camelize(word, opts) do | |
case opts |> Enum.into(%{}) do |
For some months now, whilst working on React-native, I stumbled upon Pusher which is a good tool for building applications which have a need for real-time message broadcasting. I'll be showing you a bit of what you could use Pusher to do along with React-Native.
In this tutorial you will be building a simple chat application with Pusher, React-native and Redux as a state container. Before we continue, I’d love to point out that this article assumes a fairly good experience with the use of node.js, react, react-native and es6.
Pusher is a real-time communication platform used to send broadcast messages to listeners subscribed to a channel.
import ActionTypes from '../action_types' | |
import { push } from 'react-router-redux' | |
import { httpPost, httpGet, httpDelete} from '../utils' | |
const BusinessActions = { | |
currentBusiness: () => { | |
// api create business | |
return dispatch => { | |
// dispatch loading sign | |
dispatch({type: ActionTypes.BUSINESS_PROGRESS}) |
In this tutorial we will be implementing a technological stack have been playing with. We are gonna build a simple chat application with the very popular react native + redux and a realtime communication platform Pusher.
React native makes it easy to build mobile apps with native UI and high performance by just wrapping Javascript codes over native modules, you can read more here and Pusher allows you to send messages realtime via their infrastructure to as many listeners as possible;
I would like to assume you have react native set up already on your computer and that you have created an app on Pusher already.Thou its simple, just create an account here and from there create an app
So enough talk, lets get started
$ cd into_working_directory
#System Design Cheatsheet
Picking the right architecture = Picking the right battles + Managing trade-offs
##Basic Steps