Table of Contents:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2014 Olivier Gillet. | |
// | |
// Author: Olivier Gillet ([email protected]) | |
// | |
// 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: |
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 (
---
).
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# $//; |