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 re | |
| import json | |
| import subprocess | |
| def runcmd(cmd: list[str]): | |
| return subprocess.run(["utmctl", *cmd], capture_output=True, encoding="utf-8") |
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
| diff --git a/include/dos_system.h b/include/dos_system.h | |
| index 96cbdd8..23b7134 100644 | |
| --- a/include/dos_system.h | |
| +++ b/include/dos_system.h | |
| @@ -22,6 +22,7 @@ | |
| #ifndef DOSBOX_DOS_SYSTEM_H | |
| #define DOSBOX_DOS_SYSTEM_H | |
| +#include <cstdint> | |
| #include <vector> |
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
| diff -up ./toys/posix/uname.c.orig ./toys/posix/uname.c | |
| --- ./toys/posix/uname.c.orig 2021-09-27 13:33:30.000000000 +0900 | |
| +++ ./toys/posix/uname.c 2021-09-27 13:29:09.000000000 +0900 | |
| @@ -69,9 +69,11 @@ void arch_main(void) | |
| uname_main(); | |
| } | |
| +#ifdef PER_LINUX32 | |
| #include <sys/personality.h> | |
| void linux32_main(void) |
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
| import click | |
| import requests | |
| import functools | |
| from logging import getLogger | |
| _log = getLogger(__name__) | |
| @click.group(invoke_without_command=True) | |
| @click.pass_context |
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
| import click | |
| import requests | |
| import functools | |
| import subprocess | |
| import re | |
| import os | |
| import tempfile | |
| import tarfile | |
| import zipfile |
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
| --- Makefile.orig 2015-10-03 00:58:40.000000000 +0900 | |
| +++ Makefile 2015-10-03 00:59:13.000000000 +0900 | |
| @@ -1,4 +1,4 @@ | |
| -CFLAGS = -O | |
| +CFLAGS = -O -Wno-implicit-function-declaration -Wno-return-type -Wno-implicit-int | |
| DEST = ${HOME}/bin | |
| @@ -47,5 +47,3 @@ | |
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
| import io | |
| import keyword | |
| from ply import lex | |
| from ply import yacc | |
| from logging import getLogger, basicConfig, DEBUG, INFO | |
| log = getLogger(__name__) |
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
| package cgotest | |
| import ( | |
| //#cgo LDFLAGS: -lm | |
| //#include <math.h> | |
| "C" | |
| "math" | |
| ) | |
| func CSin(x float64) float64 { |
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
| import os | |
| import sys | |
| import tempfile | |
| import subprocess | |
| import csv | |
| class singer: | |
| VOICE = "Kyoko" |
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
| from mvnc import mvncapi as mvnc | |
| import cv2 | |
| import numpy | |
| import os | |
| import time | |
| import subprocess | |
| import caffe | |
| import click | |
| import struct |
NewerOlder