Skip to content

Instantly share code, notes, and snippets.

View blockspacer's full-sized avatar
:octocat:

Devspace blockspacer

:octocat:
  • Google
  • USA
View GitHub Profile
@blockspacer
blockspacer / opengl-in-wsl.md
Created February 26, 2024 17:23 — forked from Mluckydwyer/opengl-in-wsl.md
Install OpenGL on Ubuntu in WSL

How to Install OpenGL in Ubuntu in WSL2

These steps have been tested on Windows 10 with WSL2 running Ubuntu.

1. Dependencies

First install the dependencies:

apt install mesa-utils libglu1-mesa-dev freeglut3-dev mesa-common-dev

There are more than we need, but also include GLut and Glu libraries to link aginst during compilation for application development (these can be removed if that functionality is not required).

@blockspacer
blockspacer / retry.sh
Created January 17, 2024 18:32 — forked from felipou/retry.sh
Retry command
#!/bin/bash
#
# Created by Felipe Machado - 2016/02/14
#
# A retry command for bash
# Retries the given command up to MAX_RETRIES, with an interval of SLEEP_TIME
# between each retry. Just put it on your bash_profile and be happy :)
# Usage:
# retry [-s SLEEP_TIME] [-m MAX_RETRIES] COMMAND_WITH_ARGUMENTS
#

Core Coding Standard

Coding practices are a source of a lot of arguments among programmers. Coding standards, to some degree, help us to put certain questions to bed and resolve stylistic debates. No coding standard makes everyone happy. (And even their existence is sure to make some unhappy.) What follows are the standards we put together on the Core team, which have become the general coding standard for all programming teams on new code development. We’ve tried to balance the need for creating a common, recognizable and readable code base with not unduly burdening the programmer with minor code formatting concerns.

Table Of Contents

Реквизиты:
Qiwi: +79608624930
Яндекс.Деньги: 410011923274761
Skype: sk2000sk1
Telegram: gamerforEA
Discord: gamerforEA#8924
Зеркало на GitHub Gist: https://gist.github.com/gamerforEA/6c4a77255b95ba4354cc26758d3633da
@blockspacer
blockspacer / Fixes (Ивенты).txt
Created September 30, 2023 06:27 — forked from daniorio/Fixes (Ивенты).txt
Minecraft 1.7.10, 1.12.2, 1.16.5 bukkit and forge mod fixes by LuxinfineTeam, GameForEA and Pa4ok
Контакты:
Discord - daniorio (если поиск не работает, меня можно найти по ссылке ниже)
Discord игрового проекта - https://discord.gg/zuvV5Dx
Сайт игрового проекта - https://luxinfine.su
Список услуг и работ - https://team.luxinfine.su [ВАЖНО]
VK - https://vk.com/luxinfine_team [НЕ АКТИВНО]
На этой странице представлены фиксы для модов майнкрафт 1.7.10, 1.12.2, 1.16.5 от LuxinfineTeam, GameForEA и Pa4ok.
Цены на моды указаны в []. Если авторов несколько, то несколько скобок, для каждого автора фикса своя цена. Последняя скобка - цена за максимальный фикс. Возможно купить либо фикс от GameForEA, либо от GameForEA + Pa4ok, либо от GameForEA + Pa4ok + LuxinfineTeam в одном фиксе. Иных вариантов покупки нет. Если у вас есть фикс от какого-то автора, то платить за него не нужно.
@blockspacer
blockspacer / obsidian-web-clipper.js
Last active June 9, 2023 16:38 — forked from kepano/obsidian-web-clipper.js
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
javascript: Promise.all([import('https://unpkg.com/turndown@6.0.0?module'), import('https://unpkg.com/@tehshrike/readability@0.2.0'), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
struct XYZ {
XYZ(std::unique_ptr<std::string> str) : m_str (std::move(str)){}
std::unique_ptr<std::string> m_str;
};
XYZ xyz(std::make_unique<std::string>("123"));
BOOST_CHECK_EQUAL(*(xyz.m_str), "fggfgf");
#include <boost/multi_index_container.hpp>
#include <boost/multi_index/composite_key.hpp>
#include <boost/multi_index/member.hpp>
#include <boost/multi_index/ordered_index.hpp>
#include <string>
#include <boost/range/adaptors.hpp>
#include <vector>
#include <iostream>
@blockspacer
blockspacer / CMakeLists.txt
Created December 15, 2022 20:08
spirit bignum
project(test_main)
cmake_minimum_required(VERSION 3.5)
add_executable(test_main
release_assert.cpp
#cbignum.cpp
main.cpp)
find_package(Threads)
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
#include <iomanip>
#include <llvm/ADT/APInt.h>
#include <llvm/ADT/SmallString.h>
namespace qi = boost::spirit::qi;
template <typename It>
struct IntLiteral : qi::grammar<It, llvm::APInt()> {