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
#!/bin/bash | |
if ! command -v gh >/dev/null 2>&1; then | |
echo "Install gh first" | |
exit 1 | |
fi | |
echo "gh cli installed" | |
# This script | |
if ! gh auth status >/dev/null 2>&1; then |
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
#!/bin/bash | |
if ! command -v gh >/dev/null 2>&1; then | |
echo "Install gh first" | |
exit 1 | |
fi | |
echo "gh cli installed" | |
# This script | |
if ! gh auth status >/dev/null 2>&1; then |
Install Windows Terminal https://github.com/hubisan/emacs-wsl#use-windows-terminal
Install VcXsrv https://sourceforge.net/projects/vcxsrv/
Close everything and go to Windows Firewall with Advanced Security -> Inbound rules and delete every rule you see for Vcxsvr.exe. After that the first time you launch Vcxsvr make sure you Allow access for Private AND Public networks.
Search for VcXsrv entries (there should be two) and disable all found.
# see https://github.com/microsoft/WSL/issues/6181
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
[CmdletBinding()] param () # https://stackoverflow.com/a/69203862 | |
function Measure-StringDistance { | |
<# | |
.SYNOPSIS | |
Compute the distance between two strings using the Levenshtein distance formula. | |
.DESCRIPTION | |
Compute the distance between two strings using the Levenshtein distance formula. |
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
```dataviewjs | |
const createButton = (name) => { | |
const btn = dv.el('button', name) | |
btn.addEventListener('click', (event) => { | |
event.preventDefault() | |
removeTable() | |
renderTable(name) | |
}) | |
btn.style.flexGrow = '1' |
These steps have been tested on Windows 10 with WSL2 running Ubuntu.
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).
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 <fstream> | |
#include <scripting/ModException.hpp> | |
#include <sanity.hpp> | |
#include "LuaSecurity.hpp" | |
using namespace scripting; | |
namespace { | |
void copyAll(sol::environment &env, const sol::global_table &globals, |
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 COROUTINE_H_ | |
#define COROUTINE_H_ | |
#include <memory> | |
#include "base/bind.h" | |
using Coroutine = std::function<void(void*, void*)>; | |
#define co_resume_with_data(coroutine, result_ref) \ | |
(*coroutine)(coroutine, result_ref) |
NewerOlder