Skip to content

Instantly share code, notes, and snippets.

View nvandoorn's full-sized avatar

Nicholas Van Doorn nvandoorn

View GitHub Profile
# $1 is one of r15 or r16
# define magic strings
# to map a toolchain to a revision
MAGIC="y22-ext-wp85"
R15_MAGIC="/opt/swi/r15"
R15_BUILD_MAGIC="/$MAGIC/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi"
R16_MAGIC="/opt/swi/r16"
# check/remove old symlink
#include <stdio.h>
#include <stdlib.h>
// this enumeration should dictate
// the main state of your robot,
// however, you may need to store
// additional state info, so
// use the struct below for that purpose
typedef enum { STATE1, STATE2 } RobotStateEnum;

Keybase proof

I hereby claim:

  • I am nvandoorn on github.
  • I am nvandoorn (https://keybase.io/nvandoorn) on keybase.
  • I have a public key ASAfUbm_OhVdEiCds9kGAAjiKunbVBJBsqzMGf37-qL69Qo

To claim this, I am signing this object:

#include <iostream>
#include <cstdlib>
#include <stdlib.h>
#include <time.h>
#include <stdio.h>
@nvandoorn
nvandoorn / kernel.arch.arm.mach-msm.smd_nmea.c
Last active July 17, 2019 21:21
SWI NMEA driver located @ kernel/arch/arm/mach-msm/smd_nmea.c in the tarball
/* Copyright (c) 2008-2009, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
//--------------------------------------------------------------------------------------------------
/**
* Handles ACK returned for every data pushed
*/
//--------------------------------------------------------------------------------------------------
static void PushCallBackHandler
(
lwm2mcore_AckResult_t result,
# songs_controller.rb
class SongsController < ApplicationController
def index
@songs = Song.all
end
def show
@song = Song.find(param[:id])
end