This file contains hidden or 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 | |
| import sys | |
| import socket | |
| import select | |
| def command(name, args=None): | |
| return {'name': name, 'args': args} | |
| def readcmd(): |
This file contains hidden or 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
| #include <stdio.h> | |
| #include <ffi/ffi.h> | |
| /* The struct with inlined arrays */ | |
| struct test { | |
| int array[5]; | |
| char str[6]; | |
| }; | |
| /* The function to FFI invoke */ |
This file contains hidden or 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
| # Run: | |
| # $ virtualenv env | |
| # $ cd env | |
| # $ env/bin/pip install watchdog | |
| # $ env/bin/pip install selenium | |
| # $ env/bin/python sphinx-reload.py | |
| import logging | |
| import os | |
| import selenium.webdriver |
This file contains hidden or 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 | |
| import os | |
| import subprocess | |
| import sys | |
| from urllib import pathname2url | |
| import selenium.webdriver | |
| def run(): | |
| watch_command = 'inotifywait -rq -e close_write --exclude \'"*.html"\' .'.split() | |
| make_command = 'make html'.split() |
NewerOlder