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
#![feature(test)] | |
extern crate test; | |
fn gauss_sum(sequence_size: u16, first_element: u16, increment: u16) -> u16 { | |
if sequence_size == 0 { | |
return first_element; | |
} | |
let last_element = first_element + increment * (sequence_size - 1); | |
sequence_size * (first_element + last_element) / 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
import asyncio | |
import psycopg2 | |
# dbname should be the same for the notifying process | |
conn = psycopg2.connect(host="localhost", dbname="example", user="example", password="example") | |
conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) | |
cursor = conn.cursor() | |
cursor.execute(f"LISTEN match_updates;") |
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 Darwin; | |
@import Foundation; | |
@import IOKit; | |
// clang -fmodules -o i2cwrite i2cwrite.m && ./i2cwrite | |
typedef CFTypeRef IOAVServiceRef; | |
extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
extern IOReturn IOAVServiceCopyEDID(IOAVServiceRef service, CFDataRef* x2); | |
// outputBufferSize must be less than (1 << 12) (4096 bytes) |
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 Darwin; | |
@import Foundation; | |
@import IOKit; | |
// clang -fmodules -o i2cwrite i2cwrite.m && ./i2cwrite | |
typedef CFTypeRef IOAVServiceRef; | |
extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
extern IOAVServiceRef IOAVServiceCreateWithService(CFAllocatorRef allocator, io_service_t service); |
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 Cocoa | |
import Foundation | |
enum OSDImage: Int64 { | |
case brightness = 1 | |
case contrast = 11 | |
case volume = 3 | |
case muted = 4 | |
} |
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 Darwin; | |
@import Foundation; | |
@import IOKit; | |
// clang -fmodules -o i2cwrite-scan i2cwrite-scan.m && ./i2cwrite-scan | |
typedef CFTypeRef IOAVServiceRef; | |
extern IOAVServiceRef IOAVServiceCreate(CFAllocatorRef allocator); | |
extern IOAVServiceRef IOAVServiceCreateWithService(CFAllocatorRef allocator, io_service_t service); |
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
| | { | |
| | "QoSDebug" = 1 | |
| | "ean-mode-caching" = 0 | |
| | "CFBundleIdentifierKernel" = "com.apple.driver.AppleMobileDispH13G-DCP" | |
| | "IOMFBTemperatureCompensationEnable" = No | |
| | "PixelClock" = 533333328 | |
| | "maxAverageBpp" = 0 | |
| | "IOMFBBICSType" = 0 | |
| | "enableDither" = Yes | |
| | "BacklightMatching" = {"IOPropertyMatch"={"backlight-control"=Yes}} |
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 swift | |
// Inspired by: https://eclecticlight.co/2021/09/14/how-to-run-commands-and-scripts-on-efficiency-cores/ | |
// Run directly: | |
// chmod +x runbg.swift | |
// ./runbg.swift | |
// | |
// Compile to static binary: | |
// swiftc runbg.swift -o runbg |
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
*://*.amuddycup.com/* | |
*://*.athabasca-foto.com/* | |
*://*.cfadnc.org/* | |
*://*.codefaq.info/* | |
*://*.codeflow.site/* | |
*://*.coredump.biz/* | |
*://*.culinarydegree.info/* | |
*://*.developreference.com/* | |
*://*.domainelespailles.net/* | |
*://*.ec-europe.org/* |
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
aacsportmuntenia.ro | |
adventstore.ro | |
aeroventic.ro | |
albertshop.ro | |
aliatokazii.ro | |
amanetlizeanu.ro | |
anton-schaaf.de | |
anunturi-apibio.ro | |
artuniversum.ro | |
audicanalplustour.es |
OlderNewer