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
#include "SerializedSharedMemory.h" | |
class HandleTransferChannel | |
{ | |
std::optional<HANDLE> _handle; | |
const DWORD _destination_pid; | |
public: | |
HandleTransferChannel(const DWORD destination_pid) noexcept | |
:_destination_pid{destination_pid} | |
{ |
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
#include <Windows.h> | |
#include <optional> | |
#include <Shlwapi.h> | |
#include <string_view> | |
#include <functional> | |
#include <atomic> | |
namespace timeutil | |
{ | |
inline time_t from_filetime(const FILETIME& ft) | |
{ |
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
#pragma once | |
#include <mutex> | |
struct polymorphic_mutex | |
{ | |
virtual void lock() = 0; | |
virtual void unlock() = 0; | |
virtual bool try_lock() = 0; | |
}; |
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
//------------------------------------------------------------------------------ | |
// <copyright file="ReloadProject.cs" company="Company"> | |
// Copyright (c) Company. All rights reserved. | |
// </copyright> | |
//------------------------------------------------------------------------------ | |
using System; | |
using System.ComponentModel.Design; | |
using System.Globalization; | |
using Microsoft.VisualStudio.Shell; |
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
async function sleep_sort(a) | |
{ | |
let sorted = []; | |
await Promise.all(a.map(async e => { | |
await new Promise(resolve => setTimeout(resolve, e)); | |
sorted.push(e); | |
})); | |
return sorted; | |
} |
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
var BookHTML = ""; | |
var ImageCounter = 0; | |
const SleepAmount = 50; | |
function downloadUrlToFile(url, filename) | |
{ | |
return fetch(url).then((t) => | |
{ | |
return t.blob().then((b) => | |
{ |
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
#ifndef UNICODE | |
#define UNICODE | |
#endif | |
#include <windows.h> | |
#pragma comment(lib, "user32.lib") | |
#include <wrl.h> | |
#include <dxgi1_3.h> | |
#include <d3d11_2.h> | |
#include <d2d1_2.h> | |
#include <d2d1_2helper.h> |
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
console.log("TED talks TOP10"); | |
$(".h9").filter(function(i){ | |
return $(this).parent().hasClass("topics__list__topic") | |
&& $(this).parent().text().indexOf("TED") < 0; | |
}).map(function() { | |
var match = /(.*)\n(\d+)/gm.exec($(this).parent().text()); | |
var res = {}; | |
res.name = match[1]; | |
res.c = parseInt(match[2]); | |
return res; |
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
#include <SFML/Graphics.hpp> | |
#include <chrono> | |
#include <iostream> | |
#include <vector> | |
/////////////////////////////////////////////////////////////////////////////////////////// | |
// КОНСТАНТЫ, СТРУКТУРЫ И ПРОЧИЕ НЯШНОСТИ | |
float screen_width = 500; | |
float screen_height = 500; |
NewerOlder