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 main implements a client for Greeter service. | |
package main | |
import ( | |
"context" | |
"flag" | |
"log" | |
"time" | |
"google.golang.org/grpc" |
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 main | |
import ( | |
"crypto/rand" | |
"encoding/base64" | |
"fmt" | |
) | |
type UUID []byte |
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 itertools import groupby | |
from typing import Union | |
Registration = dict[str, Union[int, str]] | |
ALL_REGISTRATIONS = [ | |
{'id': 0, | |
'hostname': 'lappytoppy', | |
'last_seen': '2021-09-27T18:00'}, | |
{'id': 1, |
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
cmake_minimum_required(VERSION 3.16) | |
project(process_list) | |
set(CMAKE_CXX_STANDARD 14) | |
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/bin") | |
file(GLOB_RECURSE fileCollection "src/*.cpp") | |
add_executable(${PROJECT_NAME} ${fileCollection}) | |
find_package(nlohmann_json CONFIG REQUIRED) | |
target_link_libraries(${PROJECT_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
from itertools import groupby | |
from typing import Union | |
Registration = dict[str, Union[int, str]] | |
ALL_REGISTRATIONS = [ | |
{'id': 0, | |
'hostname': 'lappytoppy', | |
'last_seen': '2021-09-27T18:00'}, | |
{'id': 1, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 main | |
import ( | |
"fmt" | |
) | |
type RSA struct { | |
p int | |
q int | |
e int |
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 { cryptMD5 } from 'cryptmd5'; | |
import { appendFile } from 'fs'; | |
const pwPerFile = 5; | |
function writeFile(pwSize) { | |
const filename = `pwLen${pwSize}.txt`; | |
console.log(`starting ${filename}`); | |
for (let i = 0; i < pwPerFile; i++) { | |
const password = passwordOf(pwSize); |
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 <stdio.h> | |
#include <string.h> | |
#include <unistd.h> | |
#include <mpi.h> | |
#define MASTER 0 | |
#define TAG 0 | |
#define MSGSIZE 100000 | |
#define MAX 25 |
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 main | |
import ( | |
"fmt" | |
"math" | |
) | |
type AttributeValue struct { | |
Entropy float64 | |
PofValue float64 |
NewerOlder