Skip to content

Instantly share code, notes, and snippets.

View fstanley's full-sized avatar

Forrest Stanley fstanley

  • NetBurner
  • San Diego, CA
View GitHub Profile
@fstanley
fstanley / main.cpp
Created August 21, 2015 16:38
Unit test application to verify the RTC on a NetBurner MOD5441X module
#include <predef.h>
#include <constants.h>
#include <stdio.h>
#include <ucos.h>
#include <init.h>
#include <time.h>
#include <mcf5441x_rtc.h>
#include <HiResTimer.h>
extern "C" {
@fstanley
fstanley / nb_makefileBuilder.ps1
Last active December 17, 2015 13:59
Create a NetBurner command line makefile in powershell. Call from the folder you wish to build a makefile in.
# Author: Forrest Stanley <fstanley@netburner.com>
#
# This script generates a makefile in the current folder. It automatically adds
# required cpp files and html files/folder.
#
# Usage nb_makefileBuilder
# -Platform [PLATFORM] - optional. Adds Platform = PLATFORM to makefile
#
#
@fstanley
fstanley / PyQt4AndCodeIntel.markdown
Created February 21, 2013 06:44
Enabling code completion with PyQt4 and SublimeCodeIntel on OSX

After struggling with this for 30 minutes, this is what finally got it working.

get this file: http://www.dannywynne.com/blog/wp-content/uploads/2012/10/pyqt4.zip

Open Sublime Text editor and go to the preferences->Browse Package and select the SublimeCodeIntel folder.

Paste the unzipped pyqt4.cix file in to the libs/CodeIntel2/catalogs folder

Open ~/.codeintel/config in sublime and paste in the following:

@fstanley
fstanley / nn.ps1
Created June 26, 2012 04:00
Powershell script to create a new Evernote note in a single command
# This script will create a new note in evernote. Set options to configure
param(
$note
)
# ---- OPTIONS ----
# Path to the Evernote executable. Not required if evernote is already on $PATH
$evernotePath="C:\Program Files (x86)\Evernote"