In Git you can add a submodule to a repository. This is basically a repository embedded in your main repository. This can be very useful. A couple of usecases of submodules:
- Separate big codebases into multiple repositories.
/* | |
A Minimal Capture Program | |
This program opens an audio interface for capture, configures it for | |
stereo, 16 bit, 44.1kHz, interleaved conventional read/write | |
access. Then its reads a chunk of random data from it, and exits. It | |
isn't meant to be a real program. | |
From on Paul David's tutorial : http://equalarea.com/paul/alsa-audio.html |
MIT License | |
Copyright (c) 2012 endolith | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: |
.DS_Store |
Automated analysis is the main advantage to working with a modern statically typed compiled language like C++. Code analysis tools can inform us when we have implemented an operator overload with a non-canonical form, when we should have made a method const, or when the scope of a variable can be reduced.
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
import os | |
import v4l2capture | |
import select | |
if __name__ == '__main__': | |
#cap = cv2.VideoCapture(0) |
Interrupt INT 48h - LCD STAT | |
---------------------------- | |
The STAT register (FF41) selects the conditions that will generate this | |
interrupt (expecting that interrupts are enabled via EI or RETI and that | |
IE.1 (FFFF.1) is set). | |
STAT.3 HBLANK (start of mode 0) | |
STAT.4 VBLANK (start of mode 1) (additional to INT 40) | |
STAT.5 OAM (start of mode 2 and mode 1) |
#!/usr/bin/env python | |
import pyaudio | |
import socket | |
import sys | |
FORMAT = pyaudio.paInt16 | |
CHANNELS = 1 | |
RATE = 44100 | |
CHUNK = 4096 |
from PyQt5 import QtWidgets, QtCore, QtPrintSupport, QtGui | |
class Window(QtWidgets.QWidget): | |
def __init__(self): | |
QtWidgets.QWidget.__init__(self) | |
self.setWindowTitle(self.tr('Document Printer')) | |
self.table = QtWidgets.QTableWidget(200, 5, self) | |
for row in range(self.table.rowCount()): | |
for col in range(self.table.columnCount()): |
import os | |
os.environ['PYTHONASYNCIODEBUG'] = '1' | |
import asyncio | |
import logging | |
import cv2 | |
import base64 | |
import cv2 | |
import numpy as np | |
import numpy as np | |
import scipy |