The SQL Server Resolution Protocol is a simple UDP-based application-layer protocol for discovering SQL Server database instances and retrieving their network connection endpoints. The protocol operates over UDP port 1434 and supports both unicast and broadcast/multicast communication patterns.
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 http from "http"; | |
| import { URL } from "url"; | |
| const port = process.env.PORT || 8000; | |
| let lastInitialRequestStart = process.hrtime.bigint(); | |
| function relMs() { | |
| return Number(process.hrtime.bigint() - lastInitialRequestStart) / 1e6; | |
| } |
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 python3 | |
| """ | |
| SQL Block Comment to Line Comment Converter | |
| This script processes SQL files or input text and replaces all block comments (/* */) | |
| with standard SQL line comments (--), correctly handling nested block comments. | |
| """ | |
| import re | |
| import sys |
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 url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&family=Fira+Code&display=swap'); | |
| :root { | |
| --primary-color: #2d3748; | |
| --secondary-color: #718096; | |
| --accent-color: #3182ce; | |
| --background-color: #f3f9fc; | |
| --heading-color: #1a202c; | |
| --text-color: #3a4558; | |
| --border-color: #e2e8f0; |
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
| function vousrecevrez(pension) { | |
| const csg1 = getCSGRate1(pension) * 0.985 * pension; | |
| const csg2 = getCSGRate2(pension) * 0.985 * pension; | |
| const pensionNet1 = pension; //calculatePensionAfterCSG(pension, getCSGRate1(pension)); | |
| const pensionNet2 = | |
| ((1 - getCSGRate2(pension)) * pension) / (1 - getCSGRate1(pension)); //calculatePensionAfterCSG(pension, getCSGRate2(pension)); | |
| const difference = (pensionNet2 - pensionNet1) * 12; | |
| const pensionBrutte = pension / (1 - getCSGRate1(pension)); |
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] | |
| name = "hash_miner" | |
| version = "0.1.0" | |
| edition = "2021" | |
| [dependencies] | |
| rayon = "1.5" | |
| sha2 = "0.10" | |
| num_cpus = "1.13" |
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 board | |
| import busio | |
| from adafruit_mcp230xx.mcp23017 import MCP23017 | |
| import time | |
| from typing import List, Tuple | |
| i2c = busio.I2C(board.SCL, board.SDA) | |
| mcp = MCP23017(i2c, address=0x27) | |
| NOMBRE_POMPES = 16 |
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
| man_1_preference_1 | man_1_preference_2 | man_2_preference_1 | man_2_preference_2 | woman_1_preference_1 | woman_1_preference_2 | woman_2_preference_1 | woman_2_preference_2 | woman_1_mariage | woman_2_mariage | ||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | ||
| 1 | 2 | 1 | 2 | 1 | 2 | 2 | 1 | 1 | 2 | ||
| 1 | 2 | 1 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | ||
| 1 | 2 | 1 | 2 | 2 | 1 | 2 | 1 | 2 | 1 | ||
| 1 | 2 | 2 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | ||
| 1 | 2 | 2 | 1 | 1 | 2 | 2 | 1 | 1 | 2 | ||
| 1 | 2 | 2 | 1 | 2 | 1 | 1 | 2 | 1 | 2 | ||
| 1 | 2 | 2 | 1 | 2 | 1 | 2 | 1 | 1 | 2 |
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
| #[derive(Clone, Debug, PartialEq)] | |
| struct B { | |
| x: bool, | |
| y: f64, | |
| } | |
| pub trait AutoVec { | |
| type Vec; | |
| } |
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
| // See https://www.reddit.com/r/rust/comments/yaqsqe/how_to_delay_lots_of_synchronous_actions/?sort=new | |
| use pnet::datalink::{self}; | |
| use pnet::datalink::Channel::Ethernet; | |
| use pnet::datalink::DataLinkSender; | |
| use pnet::packet::ethernet::MutableEthernetPacket; | |
| use std::sync::mpsc; | |
| use std::time::Instant; | |
| fn main() { |
NewerOlder