Skip to content

Instantly share code, notes, and snippets.

View danie007's full-sized avatar
🔝

Daniel Selvan D danie007

🔝
View GitHub Profile

Installing Python 3.7.4 on Raspbian

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.4. This means we will have to build it ourselves, and here is how to do it.

  1. Install the required build-tools (some might already be installed on your system).
@danie007
danie007 / gist:3e492c5d145836001db1ae9fa75c5eb3
Last active July 15, 2019 08:32 — forked from pazdera/gist:1098129
Singleton example in Python
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Example of Singleton design pattern
# Copyright (C) 2011 Radek Pazdera
# 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.