Skip to content

Instantly share code, notes, and snippets.

@jobel-code
jobel-code / database.dart
Created May 6, 2018 08:16 — forked from branflake2267/database.dart
Flutter - Firebase Realtime Database Persistence
import 'dart:async';
import 'package:firebase_database/firebase_database.dart';
import 'package:intl/intl.dart';
class Database {
static Future<String> createMountain() async {
String accountKey = await _getAccountKey();
@jobel-code
jobel-code / README.md
Created February 21, 2019 11:09 — forked from fperez/README.md
Polyglot Data Science with IPython

Polyglot Data Science with IPython & friends

Author: Fernando Pérez.

A demonstration of how to use Python, Julia, Fortran and R cooperatively to analyze data, in the same process.

This is supported by the IPython kernel and a few extensions that take advantage of IPython's magic system to provide low-level integration between Python and other languages.

See the companion notebook for data preparation and setup.

@jobel-code
jobel-code / ProgrammaticNotebook.ipynb
Created February 21, 2019 11:09 — forked from fperez/ProgrammaticNotebook.ipynb
Creating an IPython Notebook programatically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jobel-code
jobel-code / Light data with Google Science Journal.ipynb
Created February 25, 2019 13:18 — forked from fperez/Light data with Google Science Journal.ipynb
Real-world data in a few minutes with Google Science Journal
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jobel-code
jobel-code / LogisticRegressionPart2.ipynb
Created February 25, 2019 13:24 — forked from fperez/LogisticRegressionPart2.ipynb
LogisticRegression notebook from Data100 - test for load/kernel creation time on JupyterLab. On my system (2017 13" MBP) this nb takes 14s to open and 15s *extra* to get a kernel with JLab 0.35.4, and 4s total in Classic (no extra time for kernel)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jobel-code
jobel-code / NewCodeCellWidget.ipynb
Created March 4, 2019 10:44 — forked from fperez/NewCodeCellWidget.ipynb
Automatic creation of new code cells via widgets.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jobel-code
jobel-code / nbmerge.py
Created March 4, 2019 10:46 — forked from fperez/nbmerge.py
Merge/concatenate multiple IPython notebooks into one.
#!/usr/bin/env python
# Note, updated version of
# https://github.com/ipython/ipython-in-depth/blob/master/tools/nbmerge.py
"""
usage:
python nbmerge.py A.ipynb B.ipynb C.ipynb > merged.ipynb
"""
import io
@jobel-code
jobel-code / TestingDashboard.ipynb
Created March 4, 2019 10:47 — forked from fperez/TestingDashboard.ipynb
Testing Dashboard to pull data from a Google form into Pandas and do simple analytics of human-driven tests
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jobel-code
jobel-code / show_project.py
Created April 3, 2019 14:53 — forked from timlinux/show_project.py
Load and show a QGIS project in python
# coding=utf-8
# A simple demonstration of how to load a QGIS project and then
# show it in a widget.
# This code is public domain, use if for any purpose you see fit.
# Tim Sutton 2015
import os
from qgis.core import QgsProject
from qgis.gui import QgsMapCanvas, QgsLayerTreeMapCanvasBridge
@jobel-code
jobel-code / interactive_google_oauth2.py
Created June 18, 2020 08:40 — forked from frankie567/interactive_google_oauth2.py
Interactive Google OAuth2 flow with Streamlit
import asyncio
import streamlit as st
from httpx_oauth.clients.google import GoogleOAuth2
st.title("Google OAuth2 flow")
"## Configuration"
client_id = st.text_input("Client ID")