Skip to content

Instantly share code, notes, and snippets.

View chris-pws's full-sized avatar

Chris Slothouber chris-pws

View GitHub Profile
@devilholk
devilholk / .editorconfig
Created March 17, 2021 04:17
My current default .editorconfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = tab
indent_size = 4
@cfangmeier
cfangmeier / urllib2_ssl.py
Last active May 29, 2020 09:57 — forked from zed/urllib2_ssl.py
SSL client/server certificates verification for `urllib2`. :python:ssl:
"""SSL client/server certificates verification for `urllib2`.
see: https://gist.github.com/zed/1347055
It works on Python 2.6, 2.7, 3.1, 3.2
Example::
>>> import urllib2, urllib2_ssl
>>> opener = urllib2.build_opener(urllib2_ssl.HTTPSHandler(
@adnbr
adnbr / attiny13-adc-pwm.c
Last active June 12, 2024 10:32
ADC input directly to PWM output, on an ATtiny13.
/* ---------------------------------------------------------------------
* PWM LED Brightness control for ATtiny13.
* Datasheet for ATtiny13: http://www.atmel.com/images/doc2535.pdf
*
* Pin configuration -
* PB1/OC0B: LED output (Pin 6)
* PB2/ADC1: Potentiometer input (Pin 7)
*
* ~100 bytes.
*
@bradley219
bradley219 / .gitignore
Last active July 22, 2024 14:04
PID C++ implementation
.DS_Store