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
.container { | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
flex-direction: column; | |
height: 100%; | |
} | |
.message1 { | |
margin-left: auto; margin-right: auto; |
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
xxxx.com { | |
proxy / https://yyyy.com { | |
header_upstream Referer https://yyyy.com | |
} | |
} |
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
def _update_avg_fps(self,dt,L=[20 for _ in range(30)]): | |
L.pop(0) | |
L.append(1.0/dt) | |
self.avg_fps = sum(L) / 30.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
# coding=utf-8 | |
import sys | |
from PyQt4 import QtGui | |
import cv | |
from PyQt4 import QtCore | |
class CameraDevice(QtCore.QObject): | |
_DEFAULT_FPS = 30 |
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 | |
from kivy.app import App | |
from kivy.uix.image import Image | |
from kivy.clock import Clock | |
from kivy.graphics.texture import Texture | |
import cv2 | |
class KivyCamera(Image): | |
def __init__(self, capture, fps, **kwargs): |
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
socat -v tcp-l:9000,fork exec:'/bin/cat' |
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
#define ITM_Port8(n) (*((volatile unsigned char *)(0xE0000000+4*n))) | |
#define ITM_Port16(n) (*((volatile unsigned short*)(0xE0000000+4*n))) | |
#define ITM_Port32(n) (*((volatile unsigned long *)(0xE0000000+4*n))) | |
#define DEMCR (*((volatile unsigned long *)(0xE000EDFC))) | |
#define TRCENA 0x01000000 | |
struct __FILE { int handle; /* Add whatever is needed */ }; | |
FILE __stdout; | |
FILE __stdin; |