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 * as firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
var firebaseConfig = { | |
// your firebase credentials | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); |
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 requests | |
from bs4 import BeautifulSoup | |
import json | |
res = requests.get("https://stackoverflow.com/questions") | |
soup = BeautifulSoup(res.text, "html.parser") | |
questions_data = { | |
"questions": [] |
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 'package:flutter/material.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; | |
import 'package:stackoverflow/home/index.dart'; | |
import 'package:pk_skeleton/pk_skeleton.dart'; | |
class HomeScreen extends StatefulWidget { | |
const HomeScreen({ | |
Key key, | |
@required HomeBloc homeBloc, | |
}) : _homeBloc = homeBloc, |
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
// Authors: Jeff Asante | |
// Github: https://gist.github.com/jeffasante/ | |
use std::cell::RefCell; | |
use std::collections::HashSet; | |
use std::fmt::{Display, Formatter}; | |
// utils | |
fn exp(x: f64) -> f64 { |