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 __future__ import annotations | |
from enum import Enum, unique | |
from typing import Iterable, List, NewType, Text | |
from numpy.random import Generator, default_rng | |
@unique | |
class ItemType(Enum): |
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
/** | |
* @file primes.c | |
* @author Jose Fernando Lopez Fernandez <[email protected]> | |
* @brief Prime factorization using trial division algorithm. | |
* @version 0.1 | |
* @date 2022-05-18 | |
* | |
* @copyright Copyright (c) 2022 | |
* | |
* Compile and link using the following command. |
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 numpy as np | |
import matplotlib.pyplot as plt | |
from matplotlib.animation import FuncAnimation | |
from numpy.random import default_rng | |
from scipy.stats import beta | |
class UpdateProbabilityDistribution: |
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
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/bin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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
#include <stdint.h> | |
#include <stddef.h> | |
#include <stdlib.h> | |
#include <stdarg.h> | |
#include <string.h> | |
#include <stdio.h> | |
#include <assert.h> | |
#include <errno.h> |
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
name: Check CMake Buildsystem CI Workflow | |
on: | |
push: | |
branches: [ $default-branch ] | |
pull_request: | |
branches: [ $default-branch ] | |
jobs: | |
build: |
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
#line 1 "main.c" | |
#line 5 "main.c" | |
#line 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt\\stdio.h" | |
#pragma once | |
#line 1 "C:\\Program Files (x86)\\Windows Kits\\10\\Include\\10.0.19041.0\\ucrt\\corecrt.h" |
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
C:\Users\jflop\check-build>cmake --build . --config Release | |
CMake is re-running because C:/Users/jflop/check-build/CMakeFiles/generate.stamp is out-of-date. | |
the file 'C:/Users/jflop/source/repos/check/CMakeLists.txt' | |
is newer than 'C:/Users/jflop/check-build/CMakeFiles/generate.stamp.depend' | |
result='-1' | |
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042. | |
-- Configuring done | |
-- Generating done | |
-- Build files have been written to: C:/Users/jflop/check-build | |
Microsoft (R) Build Engine version 16.7.0+b89cb5fde for .NET Framework |
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
GLOBAL _start | |
SECTION .data | |
str: db "Hello, world!",0x0A,0x00 | |
len: equ $-str | |
errstr: db "Null-terminator not found.",0x0A,0x00 | |
errlen: equ $-errstr |
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/bash | |
cat /usr/include/asm/unistd_64.h | sed -E 's/__NR_//' | awk '{ $1 = ""; print; }' | perl -nE 'print if tr/a-z/A-Z/;' | sed -E 's/^(.*)$/%define\1/' | awk '{ $2 = "SYSCALL_" $2; print; }' > syscalls.inc |