Last Update: May 13, 2019
Offline Version
using System; | |
using System.IO.Ports; | |
namespace SerialReader | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var reader = new ArduinoSerialReader("COM3"); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
A personal diary of DataFrame munging over the years.
Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)
Kris Nuttycombe asks:
I genuinely wish I understood the appeal of unityped languages better. Can someone who really knows both well-typed and unityped explain?
I think the terms well-typed and unityped are a bit of question-begging here (you might as well say good-typed versus bad-typed), so instead I will say statically-typed and dynamically-typed.
I'm going to approach this article using Scala to stand-in for static typing and Python for dynamic typing. I feel like I am credibly proficient both languages: I don't currently write a lot of Python, but I still have affection for the language, and have probably written hundreds of thousands of lines of Python code over the years.
// Math.random() will give you a random decimal number between 0 and 1 | |
// Just check if the number is greater than 0.5 | |
// And apply -1 or 1 depending on the result | |
Math.random() < 0.5 ? -1 : 1; | |
// Math.random() will give you a random decimal number between 0 and 1 | |
// Math.rand() of a Math.random() will give you an integer 0 or 1 | |
// Use 0 or 1 as a result of a condition to use -1 or 1 | |
Math.round(Math.random()) ? -1 : 1; | |
// /!\ NOTE : Can be used for any other values like 9 or 37 ; -2 or 2... |
// Usage: | |
// Copy and paste all of this into a debug console window of the "Who is Hiring?" comment thread | |
// then use as follows: | |
// | |
// query(term | [term, term, ...], term | [term, term, ...], ...) | |
// | |
// When arguments are in an array then that means an "or" and when they are seperate that means "and" | |
// | |
// Term is of the format: | |
// ((-)text/RegExp) ( '-' means negation ) |
========================== | |
How Software Companies Die | |
========================== | |
- Orson Scott Card | |
The environment that nurtures creative programmers kills management and | |
marketing types - and vice versa. | |
Programming is the Great Game. It consumes you, body and soul. When | |
you're caught up in it, nothing else matters. When you emerge into |
cmake_minimum_required( VERSION 3.0 ) | |
set( CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" ) | |
# Create Project | |
project( solution ) | |
add_executable( project main.cpp ) | |
# Set OpenCVConfig.cmake Search Directory | |
set( OpenCV_DIR ) | |
if( NOT CMAKE_CL_64 ) |