Skip to content

Instantly share code, notes, and snippets.

@bg1bgst333
bg1bgst333 / Canvas.cpp
Last active February 8, 2025 00:55
CCanvas::OnLButtonUp
// ヘッダのインクルード
// 既定のヘッダ
#include <stdio.h> // C標準入出力
// 独自のヘッダ
#include "Canvas.h" // CCanvas
// コンストラクタCCanvas
CCanvas::CCanvas() : CUserControl() {
// メンバの初期化.

"And it's quite out of character for Linus not to have a blazingly clear opinion. (We all know his stance on C++, for instance.)""

explain, cite ChatGPT said:

The quote refers to Linus Torvalds, the creator of the Linux kernel, and his well-known tendency to express strong opinions on various technical topics, often in blunt and unfiltered ways. The specific reference to C++ alludes to his documented criticism of the language, particularly in the context of systems programming. Linus Torvalds on C++

Torvalds has been openly critical of C++, preferring the C programming language for kernel development. His most famous critique of C++ came in a 2004 mailing list post where he called it a "horrible language" and criticized its complexity, overuse of features, and lack of good programmers who use it properly. Key Points of His Criticism:

this is the phonetic system for Korerina, a pictographic language I made. i want you to speak using only the Latinized version.
key:
a ai b beh c kuh d dah e eh f feh g ga h heh i ie j ja k ka l leh m muh n nuh o oh p pu q quah r ra s suh t ta u uh v vah w wah x xe y yuh z zuh
@DolphinOfficial
DolphinOfficial / PostShutdownFullLog.txt
Created February 8, 2025 00:52
Text file created by Roblox
-- AH POST-SERVER LOGS --
-- ServerID: 4c917c69-32c3-49c1-9701-0af86a89e6fd
-- Server started: February 08, 2025 12:34 AM UTC | Server uptime: 1062 seconds
------------------ LOADB LOGS ------------------
{
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
int firstSensor = 0; // first analog sensor
int secondSensor = 0; // second analog sensor
int thirdSensor = 0; // digital sensor
int inByte = 0; // incoming serial byte
void setup() {
// start serial port at 9600 bps and wait for port to open:
Serial.begin(9600);
while(!Serial){
;;
@forkyau
forkyau / hourly_rainfall_data-2025-02-08|08-30.csv
Created February 8, 2025 00:51
GIST created by python code
id station stationid value unit obstime date
0 流浮山 RF001 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
1 湿地公园 RF002 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
2 水边围 N12 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
3 石岗 RF003 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
4 大美督 RF004 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
5 大埔墟 RF005 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
6 北潭涌 RF006 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
7 滘西洲 RF007 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
8 西贡 N15 0 mm 2025-02-08T08:30:00+08:00 2025-02-08
@RickStanley
RickStanley / JsonUtils.cs
Created February 8, 2025 00:51
C# - Json Pointer generation from LINQ expression
using System.Linq.Expressions;
using System.Reflection;
using System.Text.Json;
using System.Text.Json.Serialization;
namespace JsonPointer;
public static class JsonPointerHelper
{
private static string GetSerializedPropertyName(MemberInfo member, JsonSerializerOptions? options)
// for https://store.steampowered.com/app/602960/Barotrauma/
var output = "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<mods name=\"__COPY_AND_RENAME_ME__\">\n <Vanilla />\n";
var htmlCollection = document.getElementsByClassName("collectionItemDetails");
for (var i = 0; i < htmlCollection.length; i++) {
var item = htmlCollection[i].children[0]; //.getElementsByClassName("workshopItemTitle")
var title = item.innerText;
var id = parseInt(item.href.split('?id=')[1]);
output += " <Workshop name=\"" + title + "\" id=\"" + id + "\" />\n";
}
output += "</mods>\n";