- 更新
2023-10-04
- 作者
@voluntas
- バージョン
2023.2
- URL
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
import ctypes, sys | |
from ctypes import windll, wintypes | |
from uuid import UUID | |
class GUID(ctypes.Structure): # [1] | |
_fields_ = [ | |
("Data1", wintypes.DWORD), | |
("Data2", wintypes.WORD), | |
("Data3", wintypes.WORD), | |
("Data4", wintypes.BYTE * 8) |
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
#include <sys/socket.h> | |
#include <sys/un.h> | |
#include <sys/event.h> | |
#include <netdb.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <fcntl.h> | |
#include <stdio.h> | |
#include <errno.h> |
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
""" | |
A simple example pyside app that demonstrates dragging and dropping | |
of files onto a GUI. | |
- This app allows dragging and dropping of an image file | |
that this then displayed in the GUI | |
- Alternatively an image can be loaded using the button | |
- This app includes a workaround for using pyside for dragging and dropping |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<zabbix_export> | |
<version>3.2</version> | |
<date>2017-06-11T10:23:22Z</date> | |
<groups> | |
<group> | |
<name>Templates</name> | |
</group> | |
</groups> | |
<templates> |
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
from ctypes import CDLL, Structure, c_uint32, c_int64, c_uint64, c_char, create_string_buffer, byref, c_ubyte, c_int16, c_int64, c_int32 | |
# when _DARWIN_FEATURE_64_BIT_INODE is not defined | |
class statfs32(Structure): | |
_fields_ = [ | |
("f_otype", c_int16), | |
("f_oflags", c_int16), | |
("f_bsize", c_int64), | |
("f_iosize", c_int64), | |
("f_blocks", c_int64), |
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
#include <QTableWidget> | |
#include <QDateTime> | |
#include <QApplication> | |
static void init(QTableWidget &w) { | |
w.setSortingEnabled(true); | |
w.setRowCount(10); | |
w.setColumnCount(10); | |
w.resize(640, 480); |
- 作
@voluntas
- バージョン
0.1.0
- url
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
#!/bin/bash | |
export LANG=C | |
for ((i=0;1;i++)) ; do | |
if make -j16 >/dev/null 2>>log.txt ; then | |
echo "$i: $(date): OK" >>log.txt | |
else | |
echo "$i: $(date): NG" >>log.txt | |
fi |
NewerOlder