// Copyright Lee Grey, 2014 | |
// License: MIT | |
module lg.tileSystem { | |
import Vector2D = lg.math.geometry.Vector2D; | |
export class FieldInfo { | |
distanceFromTarget: number = -1; |
function Get-MachineSID | |
{ | |
param( | |
[switch] | |
$DomainSID | |
) | |
# Retrieve the Win32_ComputerSystem class and determine if machine is a Domain Controller | |
$WmiComputerSystem = Get-WmiObject -Class Win32_ComputerSystem | |
$IsDomainController = $WmiComputerSystem.DomainRole -ge 4 |
Simple guide for setting up OTG modes on the Raspberry Pi Zero - By Andrew Mulholland (gbaman).
The Raspberry Pi Zero (and model A and A+) support USB On The Go, given the processor is connected directly to the USB port, unlike on the B, B+ or Pi 2 B, which goes via a USB hub.
Because of this, if setup to, the Pi can act as a USB slave instead, providing virtual serial (a terminal), virtual ethernet, virtual mass storage device (pendrive) or even other virtual devices like HID, MIDI, or act as a virtual webcam!
It is important to note that, although the model A and A+ can support being a USB slave, they are missing the ID pin (is tied to ground internally) so are unable to dynamically switch between USB master/slave mode. As such, they default to USB master mode. There is no easy way to change this right now.
It is also important to note, that a USB to UART serial adapter is not needed for any of these guides, as may be documented elsewhere across the int
#!/usr/bin/env python3 | |
import serial | |
import binascii | |
#open serial | |
ser = serial.Serial( | |
port='/dev/tty.usbserial-A6005kdh', | |
baudrate=115200, | |
timeout=0.005 |
// A simple Lexer meant to demonstrate a few theoretical concepts. It can | |
// support several parser concepts and is very fast (though speed is not its | |
// design goal). | |
// | |
// J. Arrieta, Nabla Zero Labs | |
// | |
// This code is released under the MIT License. | |
// | |
// Copyright 2018 Nabla Zero Labs | |
// |
I was following this blog to install python 3.7.3 on my MX-linux 18.1 machine. Step by step procedure is as follows
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev \
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev
python CI/updateVersion.py %NEW_VERSION%
pyinstaller testApp.py --version-file "CI/version.py"