Skip to content

Instantly share code, notes, and snippets.

Chris Turchin turchinc

Block or report user

Report or block turchinc

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
turchinc / NexStar Named Star List.xml
Created Nov 18, 2018
list of named stars in the NexStar handset in the APT import format
View NexStar Named Star List.xml
<?xml version="1.0"?>
<NameNotes>NexStar Named Star List</NameNotes>
turchinc /
Created Oct 22, 2018
test various debayer patterns on images from DSV-IV camera (COLOR_BayerGB2BGR and COLOR_BayerGR2RGB worked for me)
import cv2
from import fits
image_file = 'c:/temp/'
image_data = fits.getdata(image_file, ext=0)
cv2.imwrite('c:/temp/COLOR_BayerGB2BGR.png', cv2.cvtColor(image_data, cv2.COLOR_BayerGB2BGR ))
cv2.imwrite('c:/temp/COLOR_BayerBG2BGR.png', cv2.cvtColor(image_data, cv2.COLOR_BayerBG2BGR ))
turchinc / LangInFrames.vbs
Created Mar 24, 2014
VBA macro to change the language of all text frames on slides in a PowerPoint presentation.
View LangInFrames.vbs
Sub LangInFrames()
scount = ActivePresentation.Slides.Count
For j = 1 To scount
fcount = ActivePresentation.Slides(j).Shapes.Count
For k = 1 To fcount
If ActivePresentation.Slides(j).Shapes(k).HasTextFrame Then
ActivePresentation.Slides(j).Shapes(k).TextFrame.TextRange _
.LanguageID = msoLanguageIDEnglishUK
End If
Next k
You can’t perform that action at this time.