Skip to content

Instantly share code, notes, and snippets.

View frfernandezdev's full-sized avatar
🏠
Working from home

FrFernandez frfernandezdev

🏠
Working from home
View GitHub Profile
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() {
@frfernandezdev
frfernandezdev / ButtonCounter.js
Created November 22, 2021 15:33
<ButtonCounter/>
import "../styles/Buttons.css";
import "../styles/Todo.css";
const Buttons = ({
todoList,
handleCompleteTodo,
id,
status
}) => {
const [counter, setCounter] = useState(0);
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
<?php
class Event {
private $observers = [];
function __construct(string $event) {
$this->observers[$event] = NULL;
}
function dispatch(string $event, ...$value) {
@frfernandezdev
frfernandezdev / app.py
Created February 8, 2020 20:43
Serialize Flask-SQLAlchemy Models into JSON
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)