Discover gists
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 java.lang.reflect.Method; | |
import java.net.URL; | |
import java.net.URLClassLoader; | |
public class ClassInit { | |
static final int CLASSLOADERS = Integer.getInteger("classloaders", 3); | |
static final int THREADS = Integer.getInteger("threads", 3); | |
static class MyClassLoader extends URLClassLoader { | |
public MyClassLoader() { |
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
11 Feb 2025 - Mikko Juola | |
This is an interview question I once designed at a company, | |
when directed to design a coding question for a question bank. | |
I can't remember the exact details how I formulated it when I | |
designed it the first time, likely around 2017, but this is the best | |
as I can remember it. | |
I really don't like this question myself despite having designed it. |
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
using System.ComponentModel.DataAnnotations; | |
namespace M02_Project; | |
using System; | |
using System.IO; | |
using System.Reflection; | |
internal static class EmbeddedResource |
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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
# -c, --context string context in the kubeconfig file of the PVC | |
# -k, --kubeconfig string path of the kubeconfig file of the PVC | |
# -R, --mount-read-only mount the PVC in ReadOnly mode (default false) | |
# -n, --namespace string namespace of the PVC | |
# -d, --dir string dir to mount to (defaults to /mnt) | |
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
Log uploaded on Tuesday, February 11, 2025, 10:28:24 PM | |
Loaded mods: | |
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0) | |
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1) | |
Core(Ludeon.RimWorld): (no assemblies) | |
[WD] Expanded Floors(Wemd.ExpandedFloors): (no assemblies) | |
[WD] Realistic Darkness(Wemd.RealisticDarkness): RealisticDarkness(1.0.0) | |
Better Map Sizes(madarauchiha.custommapsizes): CustomMapSizes(1.0.0) | |
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4) | |
Character Editor(void.charactereditor): CharacterEditor(1.5.10) |
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
College of Nursing Sciences, Hadejia, Jigawa State. 2025/2026 {O8125777035} Admission Form Is STILL ON SALE.. Call DR.MRS ALICE OGUNSOLA on {O8125777035}.The Management of the school hereby inform the general public of the sales of the general Nursing Admission form into the School of Nursing, Also midwifery, post-basic midwifery form, post-basic nursing form and internship form are still on sale for more information on purchase of the form and admission assistance call Admin Officer{O8125777035} |
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 <iostream> | |
using namespace std; | |
int main() | |
{ | |
const int ROWS = 5; | |
const int COLS = 5; | |
int arr[ROWS][COLS]; | |
int num; | |
cout << "enter first number:"; | |
cin >> num; |
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 <winsock2.h> | |
#include <ws2tcpip.h> | |
#include <windows.h> | |
#include <stdio.h> | |
// Helper function to print Winsock error messages. | |
void print_wsa_error(const char *msg) { | |
int errCode = WSAGetLastError(); | |
LPVOID errorText = NULL; |
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 print_outputs(sum): | |
number = get_number(sum, '') | |
if number == None: | |
return | |
print(number) | |
print_outputs(sum) | |
def get_number(string, number=''): | |
try: |