Skip to content

Instantly share code, notes, and snippets.

@bleucitron
bleucitron / Topics
Last active December 15, 2022 18:59
Dev-oriented podcast topics
# Javascript syntax
- `this`
- Arrow functions
- ES6+
- `null` vs `undefined`
- Loops
- `var`, `const`, et `let`
- `Promise`
- `fetch`
- variables vs values

I compiled some tips for Typescript usage, because my transition to this !#@*$ tool has been painful in many ways, especially because i'm a n00b.

However, it might be a good idea to use it in the end.

Install

npm install -g typescript

This will give you access to tsc Typescript compiler.

SSH Wiki for Ants

Basics

ssh user@192.168.20.35 // Basic ssh connection
ssh user@192.168.20.35 -p 33 // Using port 33
ssh user@192.168.20.35 -v // log more info on connection

Scratch.js API

var david = new Lutin("https://avatars1.githubusercontent.com/u/165829?v=3&s=460");
var romain = new Lutin("https://avatars2.githubusercontent.com/u/8417814?v=3&s=400");

david.positionner(200, 100);

david.avancer(100); 
Steps for setting up a remote scanner on Raspberry Pi device
### Step 1: Flash the OS image on your SD card ###
1) Download the OS: https://learn.adafruit.com/adafruit-raspberry-pi-educational-linux-distro/occidentalis-v0-dot-2
2) Flash the image: http://www.raspberrypi.org/documentation/installation/installing-images/README.md
### Step 2: Connect to your RPi via USB ###
1) Connect the ttl cable as such: http://www.google.fr/imgres?imgurl=http%3A%2F%2Fwww.alpha-crucis.com%2F4033-7353-thickbox%2Fusb-to-ttl-serial-cable-debug-console-cable-for-raspberry-pi.jpg&imgrefurl=http%3A%2F%2Fwww.alpha-crucis.com%2Ffr%2Fprototypage-composants%2F4033-usb-to-ttl-serial-cable-debug-console-cable-for-raspberry-pi-3700386509544.html&h=600&w=600&tbnid=w0M34JjabSsAUM%3A&zoom=1&docid=oCrHBIXe81wQrM&ei=-uc8VOPwGdP1aoiKgqgL&tbm=isch&client=safari&iact=rc&uact=3&dur=1311&page=1&start=0&ndsp=27&ved=0CCMQrQMwAQ