Skip to content

Instantly share code, notes, and snippets.

View nvandoorn's full-sized avatar

Nicholas Van Doorn nvandoorn

View GitHub Profile
root@swi-mdm9x15:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- UU -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- UU -- -- -- --
70: -- -- -- -- -- -- UU --
appsboot.mbn
appsboot.raw
boot_wp85.cwe
boot-yocto-legato_wp85.cwe
boot-yocto-mdm9x15-20180410212439.2k.img
boot-yocto-mdm9x15-20180410212439.2k.initramfs.img
boot-yocto-mdm9x15-20180410212439.4k.img
boot-yocto-mdm9x15-20180410212439.4k.initramfs.img
boot-yocto-mdm9x15.2k.img
boot-yocto-mdm9x15.2k.initramfs.img
const chartConfig = (
parser,
dateFormatter
) => ({
responsive: true,
maintainAspectRatio: false,
scales: {
xAxes: [
{
type: 'time',
Feb 28 20:39:47 swi-mdm9x15 user.info Legato: INFO | updateDaemon[1635]/framework T=main | LE_FILENAME user_Create() 979 | Created user 'appsensorToCloud' with uid 1034 and gid 1034.
Feb 28 20:39:47 swi-mdm9x15 user.info Legato: INFO | updateDaemon[1635]/updateDaemon T=main | updateDaemon.c UpdateUsersAndGroups() 1563 | User 'appsensorToCloud' created for app 'sensorToCloud'.
Feb 28 20:39:57 swi-mdm9x15 user.warn Legato: -WRN- | supervisor[1623]/supervisor T=main | proc.c GetWatchdogAction() 359 | sensorToCloud watchdogAction '' in proc section
Feb 28 20:39:57 swi-mdm9x15 user.warn Legato: -WRN- | supervisor[1623]/supervisor T=main | proc.c GetWatchdogAction() 359 | sensorToCloud watchdogAction '' in proc section
Feb 28 20:39:57 swi-mdm9x15 user.info Legato: INFO | supervisor[1623]/supervisor T=main | app.c CreateFileLink() 1583 | Created file link '/dev/log' to '/legato/systems/current/appsWriteable/sensorToCloud/dev/log'.
Feb 28 20:39:57 swi-mdm9x15 user.info Legato: INFO | supervisor[1623]/supervisor T
.base-element {
opacity: 0;
transition: 2s ease-in-out;
}
.base-element:hover {
opacity: 1;
}
root@swi-mdm9x15:~# logread | grep spi
Feb 21 02:46:37 swi-mdm9x15 user.info kernel: [ 2.325072] spi_qsd spi_qsd.0: master is unqueued, this is deprecated
Feb 21 02:46:40 swi-mdm9x15 user.info Legato: INFO | updateDaemon[521]/framework T=main | LE_FILENAME user_Create() 979 | Created user 'appspiService' with uid 1018 and gid 1018.
Feb 21 02:46:42 swi-mdm9x15 user.debug kernel: [ 16.729436] gpiochip_add: registered GPIOs 501 to 511 on device: spi32766
Feb 21 02:46:48 swi-mdm9x15 user.info Legato: INFO | supervisor[488]/supervisor T=main | kernelModules.c ModuleGetParams() 119 | Module spisvc.ko uses no parameters.
Feb 21 02:46:48 swi-mdm9x15 user.info Legato: INFO | supervisor[488]/supervisor T=main | kernelModules.c ModuleInsert() 285 | New kernel module 'spisvc'
Feb 21 02:46:53 swi-mdm9x15 user.warn Legato: -WRN- | supervisor[488]/supervisor T=main | proc.c GetWatchdogAction() 359 | spiService watchdogAction '' in proc section
Feb 21 02:46:53 swi-mdm9x15 user.warn Legato: -WRN- | supervisor[488]/sup
version: 0.1.0
// sandboxed: true
sandboxed: false
start: auto
executables:
{
spiService = ( $LEGATO_ROOT/components/spiService )
}
@nvandoorn
nvandoorn / csv.js
Last active September 27, 2017 07:16
var inputBox = document.getElementById('input-box')
var btn = document.getElementById('submit-input-box')
var showValues = document.getElementById('show-values')
btn.addEventListener('click', function () {
var text = inputBox.value
var tokens = text.split(',').map(k => k.trim()) // this removes whitespace from each token
// you could also do this with a for loop and remove the map() as follows
// for(var token of tokens) {
// token = token.trim()