The following are instructions for building a GCC cross-compiler for the MSP430. They are based in part on Peter Bigot's post to mspgcc-users.
export PREFIX=/usr/local/msp430
| #!/usr/bin/env python | |
| """ | |
| Synchronise block devices over the network | |
| Copyright 2006-2008 Justin Azoff <justin@bouncybouncy.net> | |
| Copyright 2011 Robert Coup <robert@coup.net.nz> | |
| License: GPL | |
| Getting started: | |
| package main | |
| import ( | |
| "crypto/tls" | |
| "crypto/x509" | |
| "fmt" | |
| "io" | |
| "log" | |
| ) |
| dl.job-info{ | |
| width:100%; | |
| overflow:hidden; | |
| } | |
| dl.job-info dt { | |
| font-weight:600; | |
| float:left; | |
| width:49%; |
| class @BaseCtrl | |
| @register: (app, name) -> | |
| name ?= @name || @toString().match(/function\s*(.*?)\(/)?[1] | |
| app.controller name, this | |
| @inject: (annotations...) -> | |
| ANNOTATION_REG = /^(\S+)(\s+as\s+(\w+))?$/ | |
| @annotations = _.map annotations, (annotation) -> |
| /** | |
| * AppleScript to launch iterm2 terminals/tabs with configurable: | |
| * ~ Name <name> | |
| * ~ List of commands <cmds> | |
| * ~ Split behavior horizontal(h) or vertical(v) <split> :: (h, v) | |
| * | |
| * Run from terminal with `osascript iterm-launcher.js`. | |
| * Don't unfocus with the mouse/keyboard while executing the script. | |
| * | |
| * JS port of https://github.com/luismartingil/scripts/blob/master/iterm_launcher02.applescript |
The following are instructions for building a GCC cross-compiler for the MSP430. They are based in part on Peter Bigot's post to mspgcc-users.
export PREFIX=/usr/local/msp430
| cmake_minimum_required(VERSION 3.7) | |
| project(esp_vt100_firmware) | |
| set(CMAKE_CXX_STANDARD GNU99) | |
| set(SOURCE_FILES | |
| include/uart_hw.h | |
| include/user_config.h | |
| user/io.c | |
| user/io.h |
abs(float) - Returns the absolute value of a given float.
Example: abs(1) returns 1, and abs(-1) would also return 1,
whereas abs(-3.14) would return 3.14. See also the signum function.
basename(path) - Returns the last element of a path.
base64decode(string) - Given a base64-encoded string, decodes it and
returns the original string.
| #!/bin/sh | |
| # defaultenv.sh - Load environment variable defaults and run programs | |
| set -e | |
| [ x"$DEBUG" = "x1" ] && set -x | |
| _load_envrc () { | |
| local file="$1"; shift | |
| if [ -r "$file" ] ; then | |
| # Bourne shell limits how we can test and set env vars, so here I'm |