RIAEvangelist/node-ipc is malware / protestware
The RIAEvangelist/node-ipc
module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
The RIAEvangelist/node-ipc
module contains protestware peacenotwar.
Excerpt from RIAEvangelist/node-ipc:
as of v11.0.0 & v9.2.2 this module uses the peacenotwar module.
/* | |
* MIT License | |
* | |
* Copyright (c) 2022 Albert Chang | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { | |
// dark mode | |
} | |
// to watch for changes: | |
window.matchMedia('(prefers-color-scheme: dark)').addListener(function (e) { | |
console.log(`changed to ${e.matches ? "dark" : "light"} mode`) | |
}); |
import Foundation | |
import Combine | |
var subscriptions = Set<AnyCancellable>() | |
let start = Date() | |
Timer.publish(every: 1.0, on: .main, in: .common) | |
.autoconnect() | |
.map({ (output) in | |
return output.timeIntervalSince(start) |
Most operating systems have a setting to set the apps background to dark colors. This is done to reduce the eye strain. Web apps can detect the OS setting and adjust the application colors accordingly. This is an UX enhancement
which we can showcase.
It's great for beginners. Then it turns into a mess.
import requests | |
import praw | |
import logging | |
import time | |
import random | |
import schedule | |
import pickle | |
import sys | |
from datetime import datetime, timedelta |
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
#include <iostream> | |
#include <queue> | |
#include <boost/variant.hpp> | |
struct message_tag { | |
bool handled = false; | |
message_tag() = default; | |
message_tag(std::nullptr_t) { } | |
}; |