Skip to content

Instantly share code, notes, and snippets.

View nicolsc's full-sized avatar

Nicolas Lesconnec nicolsc

  • Paris# - France
View GitHub Profile
@nicolsc
nicolsc / README.md
Created February 23, 2023 15:28
Video + Screen recording combined

Recording simultaneously Screen + Camera

Set-up

  • macOS (tested with macOS Monterey 12.3)
  • QuickTime Player (tested with 10.5)
  • ffmpeg (tested with 5.1.1)

Recording

{
"celsius": 25,
"farenheit": 75,
"kelvin": 300
}
.mapbox_token
@nicolsc
nicolsc / test.py
Last active November 16, 2019 23:33
Pycom+Sigfox test : send two values together
from network import Sigfox
import socket
import struct
import binascii
#Sigfox config
sigfox = Sigfox(mode=Sigfox.SIGFOX, rcz=Sigfox.RCZ1)
s = socket.socket(socket.AF_SIGFOX, socket.SOCK_RAW)
print('I am device ', binascii.hexlify(sigfox.id()) )
# make the socket blocking
@nicolsc
nicolsc / gist:77b8a6f8726bc9b48f43dc3737b1220b
Created December 17, 2018 16:34
Countries list for typeform (Dec 2018)
Afghanistan
Aland Islands
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
@nicolsc
nicolsc / unicode.json
Last active August 29, 2015 14:19
useful (?) Unicode symbols
{
"happy" : "",
"sad" : "",
"love" : "",
"star" : "",
"check" : "",
"cross" : "",
"music" : ""
}
@nicolsc
nicolsc / hex2ascii2hex.js
Created April 10, 2015 16:14
JS hex/ascii
//Thanks stackoverflow
//http://stackoverflow.com/questions/3745666/how-to-convert-from-hex-to-ascii-in-javascript
function a2hex(str) {
var arr = [];
for (var i = 0, l = str.length; i < l; i ++) {
var hex = Number(str.charCodeAt(i)).toString(16);
arr.push(hex);
}
return arr.join('');
@nicolsc
nicolsc / TD1208
Last active August 29, 2015 14:18
TD1208 Eval Kit
#Ref
https://github.com/Telecom-Design/Documentation_TD_RF_Module/blob/master/TD1208%20EVB%20User%27s%20Guide%20rev1.4.pdf
#FTDI driver for mac : http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_18.dmg
#open connection
screen /dev/tty.* 9600
#Get chip info
AT&V <Enter>
@nicolsc
nicolsc / console-colours.js
Created April 8, 2015 16:05
Colour console (when i don't want to npm install colors)
/*
The MIT License (MIT)
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is