Skip to content

Instantly share code, notes, and snippets.

View wadadaaa's full-sized avatar
🎧
Focusing

Anna Lopatinski wadadaaa

🎧
Focusing
  • Israel
View GitHub Profile
class HealthFlowHelper(object):
def __init__(self, f_name, ignored_exceptions=None):
self.ignored_exc_types = ignored_exceptions or list()
self.conn = get_connection()
self._endpoints = ('enter', 'exit', 'errors')
self._names_obj = namedtuple('Names', ' '.join(self._endpoints))
self.names = self._names_obj(*['fire_counter:{0}:{1}'.format(f_name, x) for x in self._endpoints])
self.conn.incr(self.names.enter)
def exit(self):
@wadadaaa
wadadaaa / AngularJS Weather App.markdown
Created October 16, 2015 07:40
AngularJS Weather App

AngularJS Weather App

Uses Angular, Weather Icons and Open Weather Map API to create a simple weather card, initially based on user location, but can be over-ridden by the input below.

If you take a look at the markup, the icons are based on a range of weather IDs from OWM, so this could oviously get more specific.

A Pen by Nick Moreton on CodePen.

License.