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 | |
# -*- coding: utf-8 -*- | |
import sys | |
from optparse import OptionParser | |
#============================================================================== | |
def dump_bin(out_fp, top_addr, data, size): | |
for addr in range(0, size, 16): | |
out_fp.write('{:04X}:'.format(top_addr + addr)) |
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 python3 | |
# -*- coding: utf-8 -*- | |
from optparse import OptionParser | |
import sys | |
import os | |
#============================================================================== | |
def put_chunk(f, chunk): | |
checksum = ((~sum(chunk)) + 1) & 0xff |
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 | |
# -*- coding: utf-8 -*- | |
from PIL import Image | |
from reportlab.pdfgen import canvas | |
from reportlab.lib.pagesizes import A4 | |
from reportlab.lib import pdfencrypt | |
from reportlab.lib.units import mm | |
from reportlab.lib.units import cm |
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 python3 | |
# -*- coding: utf-8 -*- | |
import sys | |
from optparse import OptionParser | |
#============================================================================== | |
def dump_block(addr, data): | |
print('Add +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +A +B +C +D +E +F :Sum') | |
idx = 0 |
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
{"format":"raw","freq":38,"data":[3394,5190,1778,1600,1806,3632,1756,1598,1806,1554,1754,3684,1744,1608,1752,3684,1754,3674,1754,107540,5272,5224,1756,1546,1762,3674,1752,1602,1762,1598,1762,3674,1756,1596,1764,3684,1744,3674,1806,107496,5228,5268,1704,1604,1756,3674,1806,1546,1764,1600,1806,3630,1756,1598,1806,3630,1756,3674,1754,107550,5220,5198,1782,1598,1762,3674,1754,1598,1810,1554,1756,3680,1756,1598,1762,3674,1754,3674,1808,107496,5222,5276,1702,1598,1764,3674,1754,1598,1764,1598,1764,3674,1752,1602,1806,3630,1754,3674,1752,107550,5222,5276,1692,1608,1756,3674,1806,1554,1756,1598,1762,3674,1756,1598,1762,3674,1754,3674,1756]} |
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
var request = require('request'); | |
var fs = require('fs'); | |
function postMessages(body, callback) | |
{ | |
var options = { | |
uri: 'http://esp_irkit.local/messages', | |
method: 'POST', | |
headers: { 'Content-Type': 'application/json', | |
'Content-Length': body.length }, |
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 | |
# coding: UTF-8 | |
# Arduboy HEX File Manager | |
import Tkinter | |
from ScrolledText import * | |
from PIL import Image, ImageEnhance, ImageTk |
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 | |
# coding: UTF-8 | |
from PIL import Image, ImageEnhance | |
import Tkinter | |
from ScrolledText import * | |
############################################################################### | |
def draw_bitmap(canvas, rgb, max_xy, bmp_xy, start_xy, mask): |
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 | |
# coding: UTF-8 | |
import sys | |
import StringIO | |
############################################################################### | |
class NMEAParser: | |
# ------------------------------------------------------------------------- | |
def __init__(self): |
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
var request = require('request'); | |
var fs = require('fs'); | |
if (process.argv.length < 3) { | |
console.log('node get_image.js [Filename]'); | |
console.log("\tFilename: Image Filename such as R0010010.JPG"); | |
return; | |
} | |
var file_uri = process.argv[2]; |
NewerOlder