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
.PHONY: all | |
all: build run | |
CXX := $(or $(CXX),zig c++) | |
.PHONY: build | |
build: | |
${CXX} greeter.cpp -o greeter | |
${CXX} virtual.cpp -o virtual |
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
{{ $doc := ` | |
# How to move a Valheim world save | |
If you need to move a world save from one server to another, | |
or from your local machine to a server, | |
this shouldn’t be too painful ;) | |
## The default location that Valheim saves world files is: | |
- Windows: %USERPROFILE%/AppData/LocalLow/IronGate/Valheim/worlds/ |
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
const std = @import("std"); | |
const mem = std.mem; | |
const sin = std.math.sin; | |
const cos = std.math.cos; | |
const signedRemainder = std.zig.c_translation.signedRemainder; | |
pub const object_size = std.zig.c_builtins.__builtin_object_size; | |
pub const memset_chk = std.zig.c_builtins.__builtin___memset_chk; | |
pub const useconds_t = c_uint; |
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
const std = @import("std"); | |
const Reset = "\x1b[0;0m"; | |
const Red = "\x1b[0;31m"; | |
const Green = "\x1b[0;32m"; | |
const Black = "\x1b[0;30m"; | |
const Who = enum { | |
N, | |
O, |
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
const docs_step = b.step("docs", "Emit docs"); | |
const docs_install = b.addInstallDirectory(.{ | |
.install_dir = .prefix, | |
.install_subdir = "docs", | |
.source_dir = exe.getEmittedDocs(), | |
}); | |
docs_step.dependOn(&docs_install.step); |
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
function dl(n) { | |
setTimeout(function(){ | |
document.querySelector('span[class^="Notification-module_close__"]').click(); | |
}, 500); | |
var more = document.querySelectorAll('div[class^="Dropdown-module_container__"]'); | |
more[n].click(); | |
more[n].querySelector('div[id^="DOWNLOAD_AND_TRANSFER_ACTION_"]').click(); | |
more[n].querySelector('label[class^="RadioButton-module_radio_container__"] input').click(); |
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
package main | |
import ( | |
"context" | |
"flag" | |
"fmt" | |
"image" | |
"image/color" | |
"image/draw" | |
"io" |
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
package main | |
import ( | |
"archive/zip" | |
"flag" | |
"fmt" | |
"io" | |
"os" | |
"path/filepath" | |
"strings" |
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
package main | |
import ( | |
"errors" | |
"flag" | |
"fmt" | |
"io" | |
"net/http" | |
"os" | |
"path/filepath" |
NewerOlder