This file contains 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
# songs_controller.rb | |
class SongsController < ApplicationController | |
def index | |
@songs = Song.all | |
end | |
def show | |
@song = Song.find(param[:id]) | |
end |
This file contains 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
//-------------------------------------------------------------------------------------------------- | |
/** | |
* Handles ACK returned for every data pushed | |
*/ | |
//-------------------------------------------------------------------------------------------------- | |
static void PushCallBackHandler | |
( | |
lwm2mcore_AckResult_t result, |
This file contains 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 (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. |
This file contains 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 <iostream> | |
#include <cstdlib> | |
#include <stdlib.h> | |
#include <time.h> | |
#include <stdio.h> | |
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:
This file contains 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 <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; |
This file contains 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
# $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 |
This file contains 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
root@swi-mdm9x15:~/mt76x7-uploader# python upload.py -c /dev/ttyHS0 -p mt7697 -t ldr -f ../mtfiles/mt7697 | |
_bootloader.bin -n ../mtfiles/da97.bin | |
Start uploading the download agent | |
0% 100% | |
[##############################] | ETA: 00:00:00 | |
Total time elapsed: 00:00:04 | |
DA uploaded, start uploading the user bin | |
0% 100% | |
[# ] | ETA: 00:00:56ERROR:xmodem.XMODEM:send error: expected ACK; got '\x15' for block 1 | |
[## ] | ETA: 00:00:40ERROR:xmodem.XMODEM:send error: expected ACK; got '' for block 1 |
This file contains 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
[79/783] Build kernel driver module | |
FAILED: make -C /home/nick/Documents/BRNKL-base/legato/build/wp76xx/system/modules/spisvc | |
make[1]: Entering directory '/home/nick/Documents/BRNKL-base/legato/build/wp76xx/system/modules/spisvc' | |
make -C /opt/swi/SWI9X07Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel M=/home/nick/Documents/BRNKL-base/legato/build/wp76xx/system/modules/spisvc modules | |
make[2]: Entering directory '/opt/swi/SWI9X07Y_02.16.02.00/sysroots/armv7a-neon-poky-linux-gnueabi/usr/src/kernel' | |
CC [M] /home/nick/Documents/BRNKL-base/legato/build/wp76xx/system/modules/spisvc/spisvc.o | |
Building modules, stage 2. | |
MODPOST 1 modules | |
/bin/sh: scripts/mod/modpost: No such file or directory | |
scripts/Makefile.modpost:91: recipe for target '__modpost' failed |
NewerOlder