Skip to content

Instantly share code, notes, and snippets.

View kaanoguzhan's full-sized avatar
🚀
Focusing⠀🚀

Kaan Oguzhan kaanoguzhan

🚀
Focusing⠀🚀
View GitHub Profile
@cpascual
cpascual / gaussianfit.py
Created December 21, 2017 12:31
A simple example on fitting a gaussian
from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import curve_fit
def gauss(x, H, A, x0, sigma):
return H + A * np.exp(-(x - x0) ** 2 / (2 * sigma ** 2))
def gauss_fit(x, y):
@thomasdarimont
thomasdarimont / app.py
Last active May 11, 2024 09:57
Simple python example using flask, flask_oidc and keycloak
import json
import logging
from flask import Flask, g
from flask_oidc import OpenIDConnect
import requests
logging.basicConfig(level=logging.DEBUG)
app = Flask(__name__)
@wngreene
wngreene / bag_to_images.py
Last active May 2, 2024 05:14
Extract images from a rosbag.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Copyright 2016 Massachusetts Institute of Technology
"""Extract images from a rosbag.
"""
import os
import argparse