Skip to content

Instantly share code, notes, and snippets.

import os
import requests
from datetime import datetime
from pathlib import Path
import mimetypes
import urllib.parse
from flask import send_file
class GetFiles:
def __init__(self):
@norbertkross
norbertkross / app-js-root.tsx
Last active March 8, 2022 14:17
Create a state store with React Context API and Typescript
// ... other imports
import { ContextStateComponent } from './react-typescript-context-api.tsx';
// ...
// Wrap the whole app with ContextStateComponent to give all of its data to the whole app
function App() {
return (
<ContextStateComponent>
<DashBoardBody >

  # The following adds the provider package to your application. below Cupertino icons



  cupertino_icons: ^0.1.3

  provider:
@norbertkross
norbertkross / helloDotDart.dart
Created November 11, 2019 16:01
Flutter Counter App
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',