Nested checkbox rendering would be nice (view the sourcer for this gist)
- Task 1
- Task 2
- Subtask a
- Subtask b
- Task 3
There's no need to complete parents when child nodes are all checked.
Nested checkbox rendering would be nice (view the sourcer for this gist)
There's no need to complete parents when child nodes are all checked.
Replace com.example with your package. | |
/** | |
* Extracts minimal essential exception data and reports it as a Google Analytics event | |
* (Not reported as an App exception :).<br/> | |
* <br/> | |
* Reported action: Exception type & message<br/> | |
* Reported label: File & line no | |
* <code><pre> | |
* } catch (Exception e) { |
#!/bin/sh | |
# Save this file as .git/hooks/commit-msg | |
test "" != "$(grep '\#risk' "$1")" || { | |
echo >&2 \#risk is required in the commit message | |
exit 1 | |
} | |
test "" != "$(grep '\#story' "$1")" || { | |
echo >&2 \#story is required in the commit message |
<# | |
.SYNOPSIS | |
10 words | |
.DESCRIPTION | |
Tweet | |
.NOTES | |
Full description | |
On multiple lines | |
.PARAMETER Mandatory | |
This ian a mandatory param |
function Get-ConnectionStringComponent($components, $key) { | |
$component = $components | where { $_.StartsWith("$key=") } | |
$value = $component.Split("=")[1] | |
return $value | |
} | |
function Invoke-SqlcmdUsingConnectionString($connectionString, $query){ | |
$components = $connectionString.Split(";") | |
$serverInstance = Get-ConnectionStringComponent $components "Data Source" | |
$database = Get-ConnectionStringComponent $components "Initial Catalog" |
$ErrorActionPreference = "Stop" | |
if($env:AdoOrganisation -eq $null) | |
{ | |
Write-Error 'Please set $env:AdoOrganisation' | |
} | |
if($env:AdoProject -eq $null) | |
{ | |
Write-Error 'Please set $env:AdoProject' | |
} |
spi.setup(1, spi.MASTER, spi.CPOL_HIGH, spi.CPHA_HIGH, 8, 255)
spi.transaction(1, 0, 0, 8, 0x80 + 0x0f,0,0,8)
read = spi.get_miso(1,0,8,1)
print("Who_AM_I register (expect 3f): " .. string.format("%x", read))
Output should be Who_AM_I register (expect 3f): 3f
This tests that the LIS3DSH is detected on the port when wired
wifi.sta.clearconfig()
--writeLis3dsh(LIS3DSH_CTRL_REG2, 0x01) --Interrupt 1, SM2 Enable | |
writeLis3dsh(LIS3DSH_CTRL_REG2, 0x08 + 0x01) --Interrupt 2, EM2 Enable | |
writeLis3dsh(LIS3DSH_CTRL_REG3, 0x28) --data ready signal not connected, interrupt signals active LOW, interrupt signal pulsed, INT1/DRDY signal enabled, vector filter disabled, no soft reset | |
writeLis3dsh(LIS3DSH_CTRL_REG4, 0x10 + 0x00 + 0x02) --Y, data rate: 3Hz, Block data update: continuous | |
writeLis3dsh(LIS3DSH_CTRL_REG5, 0x00) --2g scale, 800hz filter | |
writeLis3dsh(LIS3DSH_THRS1_2, 1) --threshold | |
writeLis3dsh(LIS3DSH_ST2_1, 0x05) --NOP | Any/triggered axis greater than THRS1 | |
writeLis3dsh(LIS3DSH_ST2_1+1, 0x11) --Continue | |
writeLis3dsh(LIS3DSH_MASK2_B, 0x30) --Y | |
writeLis3dsh(LIS3DSH_MASK2_A, 0x30) --Y |
#1. Run https://www.userbenchmark.com/ | |
#2. Visit in Edge: https://boxstarter.org/package/url?https://gist.githubusercontent.com/tekkies/31c40d8dd891b9337f6fe897acda6aeb/raw/windows-machine.boxstarter | |
Set-ExplorerOptions -showHiddenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
choco install -y manictime | |
choco install -y googlechrome | |
choco install -y ditto |