Skip to content

Instantly share code, notes, and snippets.

@codediodeio
codediodeio / config.js
Last active April 7, 2025 00:44
Snippets from the Firestore Data Modeling Course
import * as firebase from 'firebase/app';
import 'firebase/firestore';
var firebaseConfig = {
// your firebase credentials
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
@iampawan
iampawan / stackoverflow.py
Created April 21, 2019 06:00
Stack Overflow Questions Scrapping
import requests
from bs4 import BeautifulSoup
import json
res = requests.get("https://stackoverflow.com/questions")
soup = BeautifulSoup(res.text, "html.parser")
questions_data = {
"questions": []
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,
@jeffasante
jeffasante / neural_network_from_scratch_in_rust.rs
Last active August 5, 2024 21:54
Unraveling the mysteries of neural networks: A hands-on guide to building a micrograd from the ground up, exploring backpropagation in detail using RUST. Inspired by Karpathy's micrograd.
// 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 {