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
import api from 'api'; | |
import { Pagination } from './Pagination'; | |
import { IProperty, Property } from './Property'; | |
export class EasyBrokerAPI extends Pagination { | |
private url = '@easybroker-staging/v1.0#887olbbcuq6n'; | |
private authToken = 'l7u502p8v46ba3ppgvj5y2aad50lb9'; | |
private instance: any; | |
constructor() { |
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
import React from 'react'; | |
import { useEffect, useState } from 'react'; | |
import { MethodHttp } from '../../http'; | |
import { makeStyles } from '@material-ui/core/styles'; | |
import Autocomplete from '@material-ui/lab/Autocomplete'; | |
import { | |
Grid, | |
TextField, | |
IconButton, | |
CircularProgress |
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
<?php | |
class Event { | |
private $observers = []; | |
function __construct(string $event) { | |
$this->observers[$event] = NULL; | |
} | |
function dispatch(string $event, ...$value) { |
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
from flask import Flask, jsonify | |
from json_serializable import JSONSerializable | |
from flask_sqlalchemy import SQLAlchemy | |
# Initialize database instance. | |
db = SQLAlchemy() | |
# Create app flask | |
app = Flask(__name__) | |
JSONSerializable(app) |