Skip to content

Instantly share code, notes, and snippets.

View nicedayzhu's full-sized avatar
🎯
Focusing

nicedayzhu

🎯
Focusing
  • Nan Tong,JiangSu
View GitHub Profile
@nicedayzhu
nicedayzhu / gist:810510f66a9087e3187b19ef8a9b0df1
Created August 7, 2022 09:22 — forked from mojaie/gist:6257249
Example of PySide QTableWidget
# coding: UTF-8
import sys
from PySide import QtGui, QtCore
u""" サンプルデータ """
title = ["hoge", "fuga", "piyo"]
data = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
@nicedayzhu
nicedayzhu / capture.c
Created January 20, 2022 12:50 — forked from bellbind/capture.c
[linux][v4l2][libjpeg][c99]example for capturing from UVC webcam (on beaglebone black)
/*
* capturing from UVC cam
* requires: libjpeg-dev
* build: gcc -std=c99 capture.c -ljpeg -o capture
*/
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
@nicedayzhu
nicedayzhu / capture_raw_frames.c
Created January 20, 2022 12:50 — forked from maxlapshin/capture_raw_frames.c
v4l2 capture example
/*
* V4L2 video capture example
*
* This program can be used and distributed without restrictions.
*
* This program is provided with the V4L2 API
* see http://linuxtv.org/docs.php for more information
*/
#include <stdio.h>