import React, { useMemo, useState, useCallback } from 'react';
import { SafeAreaProvider } from 'react-native-safe-area-context';
import {
Developing With Elixir and OTP One of the best courses about Elixir.
From Ruby to Elixir If you have experience with Ruby/Rails, this is a great book to learn the language.
In order to have a flexible schema that will be easy to maintain, the proposed approach is to save a Dashboard as a String
that stores a JSON
document that can be parsed by GraphQL and at the end by our frontend.
The index representation is the following one:
curl -k -XPUT --silent "http://localhost:9200/dashboards_v1?pretty" -H 'Content-Type: application/json' -d '
- Benefits of Functional Programming
- Pure Functions & Side-Effects
- Point-Free style
- Function Composition
- Useful patterns tested and proven along the years
- "Code that you don't understand is code that you cannot trust"
Insights Builder is a module that allows to query different source of data in order to extract information and transform it in a format which can be used to generate dynamic charts.
In order to extract the information, the following steps are followed by the module:
- Set configuration
- Build query
def random_hour(start, end, hour_format="%H:%M"): | |
start_date = datetime.strptime( | |
'2018-01-01 {}'.format(start), '%Y-%m-%d %I:%M %p' | |
) | |
end_date = datetime.strptime( | |
'2018-01-01 {}'.format(end), '%Y-%m-%d %I:%M %p' | |
) | |
delta = end_date - start_date | |
int_delta = (delta.days * 24 * 60 * 60) + delta.seconds |
import time | |
import urllib | |
import requests | |
from bs4 import BeautifulSoup | |
start_url = "https://en.wikipedia.org/wiki/Special:Random" | |
target_url = "https://en.wikipedia.org/wiki/Philosophy" | |
def continue_crawl(search_history, target_url, max_steps = 25): | |
current_url = search_history[-1] |
Changes to work with the lastest version of React (v15.6) and React Router (v4.1) when building the Duckr application from the Redux course
You can find the my current version of the app here
- I used BrowserRouter as router and used BrowserHistory instead of hashHistory, changes needs to be made in the routes.js file