git init
or
from gpiozero import LED, MotionSensor, LightSensor | |
from signal import pause | |
pir = MotionSensor(21) | |
ldr = LightSensor(26) | |
light = LED(25) | |
def daytime(): | |
pir.when_motion = None | |
pir.when_no_motion = None | |
light.off() | |
def nighttime(): |
# The command finds the most recent tag that is reachable from a commit. | |
# If the tag points to the commit, then only the tag is shown. | |
# Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object | |
# and the abbreviated object name of the most recent commit. | |
git describe | |
# With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: | |
git describe --abbrev=0 | |
# other examples |
public class App : Application | |
{ | |
public IEnumerable<ICarouselViewModel> _pages; | |
public App() | |
{ | |
_pages = new List<ICarouselViewModel>() | |
{ | |
new PageOneViewModel(), | |
new PageTwoViewModel() |
osascript -e 'tell application "iOS Simulator" to quit' | |
osascript -e 'tell application "Simulator" to quit' | |
xcrun simctl erase all |
# | |
# This script will increment the build number in an AssemblyInfo.cs file | |
# | |
$assemblyInfoPath = "C:\Data\Temp\AssemblyInfo.cs" | |
$contents = [System.IO.File]::ReadAllText($assemblyInfoPath) | |
$versionString = [RegEx]::Match($contents,"(AssemblyFileVersion\("")(?:\d+\.\d+\.\d+\.\d+)(""\))") | |
Write-Host ("AssemblyFileVersion: " +$versionString) |
Find all available devices arp -a
Locate Raspberry (b8:27:eb) in Network: Pi Finder
Press minus + shift + s
and return
to chop/fold long lines!