Skip to content

Instantly share code, notes, and snippets.

View helo9's full-sized avatar
🐒

Jonathan Hahn helo9

🐒
View GitHub Profile
#!/usr/bin/env python
from gi.repository import Gtk
import sys
class GUI:
def __init__(self):
@helo9
helo9 / customtreemodel.py
Created January 27, 2016 00:07 — forked from andialbrecht/customtreemodel.py
Simple script demonstrating a custom Gtk.TreeModel for Gtk 3 (known as GenericTreeModel in PyGtk 2).
#!/usr/bin/env python3
# This script demonstrates a custom TreeModel (known as
# GenericTreeModel in PyGtk 2).
#
# Note: This script requires python-gi (pygobject) >= 3.4.
from gi.repository import GObject, Gtk
@helo9
helo9 / xfoil.py
Last active November 26, 2023 02:53
use python to run xfoil analysis
# -*- coding: utf-8 -*-
import os
import numpy as np
import subprocess as sp
import re
def polar(afile, re, *args,**kwargs):
"""calculate airfoil polar and load results
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import numpy as np
import pandas as pd
import glob, re
@helo9
helo9 / ctypes_bitfield_problem.ipynb
Created February 19, 2022 22:51
Problem with ctypes bitfield
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.