Skip to content

Instantly share code, notes, and snippets.

View Makefile
TARGET = hid.elf
CC = arm-none-eabi-gcc
AR = arm-none-eabi-ar
OBJCOPY = arm-none-eabi-objcopy
OBJDUMP = arm-none-eabi-objdump
SIZE = arm-none-eabi-size
CFLAGS += -DNDEBUG -DCORE_M4 -D__USE_CMSIS -D__LPC43XX__ -mcpu=cortex-m4 -mthumb -Os -Wall
View keybase.md

Keybase proof

I hereby claim:

  • I am maknoll on github.
  • I am maknoll (https://keybase.io/maknoll) on keybase.
  • I have a public key whose fingerprint is DA83 22AA 8951 3C6C 5076 4E06 A143 6CA1 DBA9 918A

To claim this, I am signing this object:

View gist:7780fbcb8fb3c842ab12
//
// This file is part of the GNU ARM Eclipse distribution.
// Copyright (c) 2014 Liviu Ionescu.
//
// ----------------------------------------------------------------------------
#include <stdio.h>
#include "diag/Trace.h"
#include <stm32f30x.h>
View kalman.c
#include "kalman.h"
#include <assert.h>
#include "fixkalman.h"
// create the filter structure
#define KALMAN_NAME sonar
#define KALMAN_NUM_STATES 5
#define KALMAN_NUM_INPUTS 0
View gist:e05b418088221c2d73f9
ivy-c master modified % opam install ivy
The following actions will be performed:
- install ivy.1.3.1
=== + 1 ===
=-=- Synchronizing package archives -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
=-=- Installing packages =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= 🐫
Building ivy.1.3.1:
make
View luftboot.diff
diff --git a/src/luftboot.c b/src/luftboot.c
index d83cd52..730c420 100644
--- a/src/luftboot.c
+++ b/src/luftboot.c
@@ -483,7 +483,7 @@ int main(void)
gpio_init();
- systick_set_clocksource(STK_CTRL_CLKSOURCE_AHB_DIV8);
+ systick_set_clocksource(STK_CSR_CLKSOURCE_AHB_DIV8);
@maknoll
maknoll / gist:6441231
Created Sep 4, 2013
conf-gtksourceview
View gist:6441231
paparazzi master clean % opam install conf-gtksourceview
The following actions will be performed:
- install conf-gtksourceview.2
1 to install | 0 to reinstall | 0 to upgrade | 0 to downgrade | 0 to remove
=-=-= Installing conf-gtksourceview.2 =-=-=
Building conf-gtksourceview.2:
pkg-config gtksourceview-2.0
The compilation of conf-gtksourceview.2 failed.
Uninstalling conf-gtksourceview.2.
View makeauthority.sh
# Run this once
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
View comprehension.rb
class Array
def comprehend &block
return self unless block
head, *tail = self.map(&:to_a)
return head.map(&block).compact if tail.empty?
return head.product(*tail).map(&block).compact
end
end
def sieve list
View azure.rb
require "azure"
require "net/http"
require 'active_support/inflector'
require "random-word"
Azure.configure do |config|
config.account_name = "martinmd"
config.access_key = "P9m7mlh1+jDAcRKvj8PV0pTRuL+2qHJ/YNdRn1YRRpfMwSNSh/QRFoqk3gMM5gqrSZcE3au13mvdbyfrd0vkUg=="
end