Skip to content

Instantly share code, notes, and snippets.

View davehorner's full-sized avatar

David Horner davehorner

View GitHub Profile
@davehorner
davehorner / stepper2.ino
Created December 8, 2015 09:10 — forked from sbright33/stepper2.ino
Stepper library for 28BYJ-48
// This Arduino example demonstrates bidirectional operation of a
// 28BYJ-48, which is readily available on eBay for $4.25 inc shipping,
// using a ULN2003 interface board to drive the stepper. The 28BYJ-48
// motor is a 4-phase, 8-beat motor, geared down by a factor of 64. One
// bipolar winding is on motor pins 1,3 and the other on motor pins 2,4.
// Refer to the manufacturer's documentation of Changzhou Fulling
// Motor Co., Ltd., among others. The step angle is 5.625/64 and the
// operating Frequency is 100pps. Current draw is 92mA.
// Vin w USB power is 4.5v too slow for testing use 5v pin.
//#include <Narcoleptic.h>
@davehorner
davehorner / keybase.md
Created January 18, 2020 05:52
here here, I hearby claim.

Keybase proof

I hereby claim:

  • I am davehorner on github.
  • I am davehorner (https://keybase.io/davehorner) on keybase.
  • I have a public key ASC14T8zgI1xqCOSqsqGy4LYWAaRUl6wjMyBeZ-uomxPIgo

To claim this, I am signing this object:

##############################################################################
##
## Start-ProcessAsUser.ps1
##
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)
##
## Launch a process under alternate credentials, providing functionality
## similar to runas.exe.
##
##############################################################################
##
## Send-MailMessage.ps1
##
## From Windows PowerShell Cookbook (O'Reilly)
## by Lee Holmes (http://www.leeholmes.com/guide)
##
## Illustrate the techniques used to send an email in PowerShell.
##
## Example:
choco install -y clink
clink get history_io 1
type "%LOCALAPPDATA%\clink\.history"
# gitbash
"PROMT_COMMAND='history -a'" >> ~/.bash_profile
https://github.com/junegunn/vim-plug
git config --global alias.plog "log --graph --pretty=format:'%h -%d %s %n' --abbrev-commit --date=relative --branches"
set lines=50 columns=1000
npx degit "sveltejs/sapper-template#rollup" my-appnpx degit "sveltejs/sapper-template#rollup" my-app
#Generate Release Notes from GitHub.
FROM python:3
RUN pip install moto[server]
https://github.com/kkroening/ffmpeg-python/blob/master/examples/ffmpeg-numpy.ipynb
pip install ffmpeg-python
https://github.com/quanhua92/human-pose-estimation-opencv.git
ffmpeg -i "in.mp4" -s 240x135 -vf fps=1 %d.jpg
dir -recurse -path data -include *.jpg -Name | %{echo "python openpose.py --input $_ --output output\sized\$_ --thr .1" }
find ".\data\" --name "data\*.jpg" --exec "python openpose.py --input {} --output output\{} --thr .1" \;
@davehorner
davehorner / Install-ChocoAndScoop.ps1
Created March 23, 2020 01:02 — forked from turboBasic/Install-ChocoAndScoop.ps1
Install Chocolatey and Scoop package managers for Windows + basic set of utilities and software
Function Install-Scoop {
New-ItemProperty -path "HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" `
-propertyType ExpandString `
-name "SCOOP_GLOBAL" `
-value "${ENV:PROGRAMDATA}\scoop"
Invoke-WebRequest 'https://get.scoop.sh' | Invoke-Expression
'scoop install Git-with-OpenSSH Sudo Which --global' | Set-Content -path temp_script.ps1
If you can search for the word exactly, you can use a pair of keyboard shortcuts to do it quickly.
Tools -> Options -> Enviroment -> Keyboard
Edit.GoToFindResults1NextLocation
EditorContextMenus.CodeWindow.Breakpoint.InsertBreakpoint
Assign them to Control+Alt+F11 and F10 and you can go through all the results very quickly. I haven't found a shortcut for going to the next reference however.