Skip to content

Instantly share code, notes, and snippets.

View andy-shev's full-sized avatar

Andy Shevchenko andy-shev

View GitHub Profile
@andy-shev
andy-shev / sfi-dump
Last active November 25, 2020 14:26
Dumb SFI table dumper
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# vim: ts=4 sw=4 et ai si
from __future__ import print_function
import operator
import os
import struct
import sys
@andy-shev
andy-shev / fdcalcpwm.py
Last active June 24, 2016 09:51
Fractional divider for LPSS PWM
#!/usr/bin/python -tt
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions
@andy-shev
andy-shev / fdcalcspi.py
Last active July 1, 2021 14:16
Quark SoC SPI baudrate calculator
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions
@andy-shev
andy-shev / fdcalc.py
Last active August 29, 2015 14:16
Fractional divider calculator
#!/usr/bin/python -tt
# -*- coding: UTF-8 -*-
# vim: ts=4 sw=4 et ai si
import sys
import os
import operator
import math
import fractions

Keybase proof

I hereby claim:

  • I am andy-shev on github.
  • I am 0andriy (https://keybase.io/0andriy) on keybase.
  • I have a public key whose fingerprint is 8626 4E52 59C2 F682 8DDE 7DC0 993D FFF3 7739 4B2D

To claim this, I am signing this object: