Skip to content

Instantly share code, notes, and snippets.

@ritksm
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ritksm/8767690 to your computer and use it in GitHub Desktop.
Save ritksm/8767690 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Jack River'
class Radio:
def __init__(self, user=None):
self.user = user
def play_radio(self, fm):
if user:
play_fav()
else:
play_random()
# some other example
class Demo:
@classmethod
def from_string(self, string):
pass
@classmethod
def debug(cls, msg):
print msg + 'debug'
@classmethod
def warn(cls, msg):
print msg + 'warn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment