Skip to content

Instantly share code, notes, and snippets.

Installing Python 3.7.0 on Raspbian =================================

As of July 2018, Raspbian does not yet include the latest Python release, Python 3.7.0 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).

@donghee
donghee / RN2903.py
Created November 16, 2017 07:47 — forked from clive2000/RN2903.py
# -*- coding: utf-8 -*-
#
# Example using python and serial to control Microchip Tech. Mote
#
# requires pyserial: pip install pyserial
#
import serial
import sys
from time import sleep
@donghee
donghee / main.c
Last active October 12, 2017 00:21 — forked from anonymous/main.c
Odroid XU4 GPA0.2(#173) toggle/ does not working. todo: fix error
#include <stdio.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <stdint.h>
// Toggle GPA0.2
// Pinmap http://odroid.com/dokuwiki/doku.php?id=en:xu4_shift_shield
#define ODROIDXU_GPA_BASE 0x14010000
static volatile uint32_t *gpio;
import os
import re
import shutil
import glob
## List of the STM32 chips supported by OpenCM3
chips = ["f0", "f1", "f3", "f4", "f2", "l0", "l1"]
## Representative projects for each chip
## These really only vary in their linker files and peripherals
## Look at the examples (below) for specifics
@donghee
donghee / clouds.cc
Created September 11, 2016 15:38 — forked from TomWhitwell/clouds.cc
Clouds firmware - simple 1 second audio delay
// Copyright 2014 Olivier Gillet.
//
// Author: Olivier Gillet (ol.gillet@gmail.com)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
@donghee
donghee / README.md
Created February 29, 2016 12:57 — forked from exupero/README.md
instruct

instruct

A shell script to give step-by-step instructions. Pipe text into it. It'll be processed as follows:

  • Each line is echoed back to you one at a time.
  • Hit the Enter key to see the next instruction.
  • Lines surrounded by triple backticks are copied to the system clipboard, and the next line of text has the icon next to it.
  • Blank lines are ignored.
  • To insert a blank line, use a triple dash (---).
@donghee
donghee / gist:62dbeb76ca0ac21c3053
Created January 27, 2016 09:51
XFCE / Xubuntu themes in Debian

Follow these steps to install Greybird theme and elementary XFCE icons. This is the default theme in Xubuntu, but not in Debian and other derivatives. The following steps will give you that Xubuntu look in just 2 minutes!

# Install theme
mkdir -p ~/.themes
cd $_
wget https://github.com/shimmerproject/Greybird/archive/master.zip
unzip master.zip
rm master.zip
@donghee
donghee / migrate.pl
Last active August 29, 2015 14:13 — forked from anonymous/migrate.pl
#!/usr/bin/perl -ni.bak
# from: http://www.emilsit.net/blog/archives/migrating-from-moinmoin-to-dokuwiki/
BEGIN { $readblank = 0; }
$readblank = 1 if /^$/;
# Fix line-endings for Unix
# $//;