View vi like interface for rappid
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
================================================ | |
vi like interface for rappid | |
================================================ | |
:Author: jyf | |
:Date: 2013-10-10 | |
.. contents:: index | |
links |
View gist:0da28c4677f9508fb3185e57e085299d
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
"""Simple HTTP Server With Upload. | |
This module builds on BaseHTTPServer by implementing the standard GET | |
and HEAD requests in a fairly straightforward manner. | |
""" | |
View ssd1306-128x32-i2c.forth
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\ ssd1306 I2C display driver for 128x32 pixel OLED displays, this is work in progress | |
\ Tested with wemos oled shield | |
\ Usage: | |
\ display-init | |
\ font5x7 font ! | |
\ 10 text-top ! 8 text-left ! | |
\ "Hello" draw-str | |
\ display | |
\ display-clear |
View inschecker.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## require objdump and awk and sed | |
fn=$1 | |
objdump -j .text -S $fn | awk -F ' {2,}' '{print $3}' | sed -n '/^\s\+/!d;s/\s\+\([a-z]\+\).*$/\1/p' | sort | uniq -c | sort -k1 -n | |
## save here in case i would forget oneday |