Skip to content

Instantly share code, notes, and snippets.

View xenups's full-sized avatar
🖖
print('Hello world')

Amir Lesani xenups

🖖
print('Hello world')
View GitHub Profile
@thedejifab
thedejifab / main_complete.dart
Last active December 27, 2019 02:03
Complete main.dart file for consuming simple REST API with Flutter
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@Mazyod
Mazyod / flask-to-bottle.diff
Created April 3, 2018 15:30
Migrating from Flask to Bottle
-import flask
-from werkzeug.http import Headers
+import bottle
[ ... ]
+# Remove "hop-by-hop" headers (as defined by RFC2613, Section 13)
+# since they are not allowed by the WSGI standard.
+FILTER_HEADERS = [
+ 'Connection',
@sloria
sloria / bobp-python.md
Last active June 26, 2024 15:54
A "Best of the Best Practices" (BOBP) guide to developing in Python.

The Best of the Best Practices (BOBP) Guide for Python

A "Best of the Best Practices" (BOBP) guide to developing in Python.

In General

Values

  • "Build tools for others that you want to be built for you." - Kenneth Reitz
  • "Simplicity is alway better than functionality." - Pieter Hintjens