Skip to content

Instantly share code, notes, and snippets.

View ajmendez's full-sized avatar

Alexander Mendez ajmendez

View GitHub Profile
%%sql
WITH debug_user_window AS (
WITH debug_user AS (
SELECT
id,
amount,
date,
user_id,
subscription_id
FROM
%% PlotRTL1090
% 3D visualization of air traffic through RTL-SDR (dump1090) and MATLAB
% Copyright (C) 2014 Jorge Garcia Tiscar
%
% This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 3 of the License, or
% (at your option) any later version (see LICENSE).
%% Initialize
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.

Keybase proof

I hereby claim:

  • I am ajmendez on github.
  • I am ajmendez (https://keybase.io/ajmendez) on keybase.
  • I have a public key whose fingerprint is A4C1 0412 ABF4 F742 5B6F 8857 FDB4 EEFC D7A4 C053

To claim this, I am signing this object:

@ajmendez
ajmendez / check_fft.py
Created August 29, 2013 17:42
A simple model for measuring the period of a set of flame bursts: http://i.imgur.com/tbOM4dG.png
# check_fft -- a simple little test of fft
import pylab
import scipy.special
import numpy as np
from pysurvey import plot as pplot
def _gauss(x, a, x0, sigma):
'''Commented out the gaussian and now a skewed gaussian.'''
@ajmendez
ajmendez / age.py
Last active October 16, 2022 18:45
Here is a nice little wikipedia parser for grabbing an date of birth and date of death for a individual with an infobox template. This template is found generally on famous people. Works with people who are still alive by returning None for death_date.
import urllib2, json, pprint, re, datetime
import mwparserfromhell
def _parseDate(wikiDate):
''' Parse a mediawiki date template -- assumes years, month, day
Input:
a mwparser object containing just the date to be parsed
Returns:
datetime.date object of the date
'''