Skip to content

Instantly share code, notes, and snippets.

View jmaziarz's full-sized avatar

Jeremy Maziarz jmaziarz

  • White Mountains of New Hampshire, USA
View GitHub Profile
@justinweiss
justinweiss / filterable.rb
Last active January 11, 2024 07:28
Filterable
# Call scopes directly from your URL params:
#
# @products = Product.filter(params.slice(:status, :location, :starts_with))
module Filterable
extend ActiveSupport::Concern
module ClassMethods
# Call the class methods with names based on the keys in <tt>filtering_params</tt>
# with their associated values. For example, "{ status: 'delayed' }" would call
@Ionshard
Ionshard / SiriusScrapper.py
Created February 10, 2012 05:17
A Web Scrapper for SIRIUS XM Radio Now Playing Information
#!/usr/bin/python
#Sirius Scrapper is used to log the now playing information of a SIRIUS stream
#Copyright (C) Corey Ling
#
#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 2
#of the License, or (at your option) any later version.
#
#This program is distributed in the hope that it will be useful,