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
var serialport = require("serialport"), | |
SerialPort = serialport.SerialPort, | |
myPort; | |
var Fiber = require('fibers'); | |
// Delay function using fibers | |
function sleep(ms) { | |
var fiber = Fiber.current; | |
setTimeout(function() { |
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
{"version":1,"resource":"file:///Users/ladislas/dev/leka/LekaOS/fs/README.md","entries":[{"id":"STdV.md","timestamp":1651009549944},{"id":"M5q0.md","timestamp":1651009748184},{"id":"3H5G.md","timestamp":1651009824969},{"id":"4sBt.md","timestamp":1651009860501},{"id":"RTRW.md","timestamp":1651010276572},{"id":"bQPi.md","timestamp":1651010506797},{"id":"Bx9G.md","timestamp":1651010600757},{"id":"r02C.md","timestamp":1651010638220},{"id":"e3jL.md","source":"undoRedo.source","timestamp":1651011444467},{"id":"ZlLM.md","source":"undoRedo.source","timestamp":1651072275708},{"id":"6ot5.md","source":"undoRedo.source","timestamp":1651072310350},{"id":"EG95.md","timestamp":1651925350508}]} |
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
// Leka - LekaOS | |
// Copyright 2020 APF France handicap | |
// SPDX-License-Identifier: Apache-2.0 | |
#include "events/mbed_events.h" | |
#include "ble/BLE.h" | |
#include "ble/Gap.h" | |
#include "ble/services/HeartRateService.h" |
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
#!/usr/bin/env ruby | |
# Leka - LekaOS | |
# Copyright 2020 APF France handicap | |
# SPDX-License-Identifier: Apache-2.0 | |
require 'csv' | |
# | |
# MARK:- Deal with argv |
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
// Buffer to store incoming commands from serial port | |
String inData; | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Serial conection started, waiting for instructions..."); | |
} | |
void loop() { | |
while (Serial.available() > 0) |
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
#!/usr/bin/env zsh | |
mkdir -p $HOME/dev/tmp | |
cd $HOME/dev/tmp | |
git clone https://github.com/ladislas/dotfiles | |
cd $HOME/dev/tmp/dotfiles | |
./bootstrap.sh --hello |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
var container = UIView(frame: CGRect(x: 0, y: 0, width: 400, height: 400)) | |
container.backgroundColor = UIColor.green | |
PlaygroundPage.current.liveView = container |
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
/usr/local/bin/openocd \ | |
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \ | |
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/interface/stlink-v2-1.cfg \ | |
-c init \ | |
-c "reset init" | |
/usr/local/bin/openocd \ | |
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \ | |
-c "init; reset halt" |
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
for f in *; do | |
cd $f | |
echo $f | |
if [ -n "$(git status --porcelain)" ]; then | |
echo "\n ⚠️ $f\n" | |
fi | |
cd .. | |
done |
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
all: direct elf size | |
1: clean direct elf nm size | |
2: clean stepped elf nm size | |
3: clean steppedimproved elf nm size | |
direct: | |
avr-gcc -mmcu=atmega328p -Wall -flto -g -Os -c main.c -o main.c.elf --verbose |
NewerOlder