Skip to content

Instantly share code, notes, and snippets.

View epifanio's full-sized avatar

Massimo Di Stefano epifanio

View GitHub Profile
anonymous
anonymous / FVCOM bedload transport.ipynb
Created May 5, 2017 04:51
GEOHAB/FVCOM_bedload.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<title>PyQtLeaflet</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" type="image/x-icon" href="docs/images/favicon.ico" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.0.2/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.0.2/dist/leaflet.js"></script>
<style>
@lanius
lanius / reconstruct.py
Last active December 13, 2023 00:59
3D reconstruction from stereo images in Python
# -*- coding: utf-8 -*-
import argparse
import cv2
import numpy as np
def calc_disparity(left_image, right_image):
window_size = 3
@yoavram
yoavram / nbreveal_preview.py
Last active December 14, 2015 18:19
Python web server to preview IPython reveal.js presentations. Automatically converts ipynb to html everytime the ipynb file changes. Requirements: Flask, Watchdog, nbconvert with reveal, copy reveal and js folders from nbconvert to the same folder as the server is at.
from flask import Flask, send_file, send_from_directory
from watchdog.observers import Observer
from watchdog.events import FileSystemEventHandler
import os
NBCONVERT_PATH = '../nbconvert/nbconvert.py'
TARGET_IPYNB = 'presentation.ipynb'
TARGET_HTML = 'presentation_slides.html'
def nbconvert():