- Need install
svn
application!!! - on
svn-zip
get gist raw-url - Download svn-zip into local folder. For example:
curl [raw-url] > svn-zip
- add run privilege with
chmod +x snv-zip
or executebash svn-zip SVN_URL ZIP_FILE_NAME
In your terminal, use:
FROM debian:latest | |
ENV LDC_PATH /usr/local/ldc | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends curl wget gcc ca-certificates xz-utils libxml2 && \ | |
rm -rf /var/lib/apt/lists/* /var/cache/apt/* | |
RUN set -ex && \ | |
LDC_VERSION=$(curl -sL https://ldc-developers.github.io/LATEST) |
# Image: stateoftheartio/qt6:6.5-mingw-aqt | |
FROM stateoftheartio/qt6:6.5-mingw-aqt | |
ARG ECM_DIR=${QT_PATH}\\share\\ECM | |
ENV DEBIAN_FRONTEND=noninteractive \ | |
DEBCONF_NONINTERACTIVE_SEEN=true \ | |
QT_PATH=${QT_PATH} \ | |
ECM_DIR=${ECM_DIR} \ | |
WINEDEBUG=-all |
#include <iostream> | |
#include <chrono> | |
#include <array> | |
#include <thread> | |
#include <asio/thread_pool.hpp> | |
#include <asio/post.hpp> | |
void sleepSort(const std::array<int,8>& numbers) { | |
asio::thread_pool pool(numbers.size()); | |
for (const auto& num : numbers) { |
//! Zig version: 0.11.0 (std.Thread.Pool) | |
const std = @import("std"); | |
pub fn main() !void { | |
std.debug.print("Sleep sorting\n", .{}); | |
const values = [_]usize{ 9, 40, 10, 1, 6, 45, 23, 50 }; | |
var arena = std.heap.ArenaAllocator.init(std.heap.page_allocator); | |
const allocator = arena.allocator(); | |
defer arena.deinit(); |
@nogc nothrow: | |
extern(C): __gshared: | |
////////////////////////////////////////////////////////// | |
// This file was auto-generated by tb_client_header.zig // | |
// Do not manually modify. // | |
////////////////////////////////////////////////////////// | |
import core.stdc.stdint; | |
import core.int128; |
Need: https://github.com/kassane/xml (forked: updated to zig 0.11)
<?xml version="1.0" encoding="UTF-8"?>
<NFe xmlns="http://www.portalfiscal.inf.br/nfe">
{ | |
"items": [ | |
{ | |
"sigla": "STF", | |
"nome": "Supremo Tribunal Federal", | |
"busca_processo": 1, | |
"busca_nome": 1, | |
"busca_oab": 0, | |
"disponivel_autos": 0, | |
"busca_documento": 0, |
//! ref: https://github.com/TwoClocks/repr-c/blob/arocc-test-gen/repc/arocc/RustToZigTargets.zig | |
//! updated to v0.11.0 | |
// at attemp to convert between rust and zig targets. | |
// rustc must be in the path. | |
// compile with `zig build-exe RustToZigTgarets.zig | |
const std = @import("std"); | |
const CrossTarget = std.zig.CrossTarget; | |
var general_purpose_allocator = std.heap.GeneralPurposeAllocator(.{}){}; |