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
# coding=utf-8 | |
import Image, ImageDraw, ImageFont | |
import struct | |
font_width = 16 | |
font = ImageFont.truetype("/usr/share/fonts/truetype/wqy/wqy-zenhei.ttc", font_width) | |
def get_font_data(char): |
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
/* | |
* Checksummed file writer | |
* | |
* This module collects data buffers until they should be written out to a | |
* file, prefixed by a checksum. | |
* | |
* Typical usage is: | |
* | |
* ChecksumWriter writer; | |
* cwriter_init(&writer); |
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
# coding=utf-8 | |
import urwid | |
import requests | |
import re | |
from hashlib import md5 | |
import time | |
from bs4 import BeautifulSoup, NavigableString | |
import lxml.html |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/*************************************************************************** | |
Copyright (c) Microsoft Corporation 2013. | |
This code is licensed using the Microsoft Public License (Ms-PL). You can find the text of the license here: | |
http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx | |
Published at http://OpenXmlDeveloper.org | |
Resource Center and Documentation: http://openxmldeveloper.org/wiki/w/wiki/open-xml-sdk-for-javascript.aspx |
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
:0200000460009A | |
:100000004643464200000156000000000103030081 | |
:1000100000000000000000000000000000000000E0 | |
:1000200000000000000000000000000000000000D0 | |
:1000300000000000000000000000000000000000C0 | |
:1000400000000000010408000000000000000000A3 | |
:100050000000800000000000000000000000000020 | |
:100060000000000000000000000000000000000090 | |
:100070000000000000000000000000000000000080 | |
:10008000EB04180A063204260000000000000000FD |
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
main.elf |