Run with cargo run --example <example-name>
.
In Cargo.toml
, configure it with the following if each example needs special crate's features.
[[example]]
name = "json"
required-features = ["json", "serde/derive"]
#!/bin/bash | |
## A simple shell script to build Zombie Hero Project from command line | |
## It involves using the following programs | |
## | |
## 1. xcodebuild | |
## 2. ios-deploy | |
## | |
## Commands support (*specific for this script and project) | |
## |
#!/bin/bash | |
### BEGIN INIT INFO | |
# Provides: <your service name> | |
# Required-Start: $network $syslog | |
# Required-Stop: $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 6 | |
# Short-Description: execute commands when system is up or down | |
# Description: execute commands when system is up or down |
[Unit] | |
Description=My systemd service | |
After=network.target | |
# allow cap of 4 attempts to start the process | |
# within 1 second, if not success, then give up | |
StartLimitIntervalSec=1 | |
StartLimitBurst=4 | |
[Service] |
/** Downloader app following https://www.youtube.com/watch?v=_z-RS0rXg9s but | |
* use libcurl (C API) with some adjusted API usage. | |
* | |
* Compile with | |
* g++ -std=c++11 -DNO_PROXY SimpleDownloader.cpp -lpthread -lcurl | |
* */ | |
#include <iostream> | |
#include <fstream> | |
#include <string> |
Run with cargo run --example <example-name>
.
In Cargo.toml
, configure it with the following if each example needs special crate's features.
[[example]]
name = "json"
required-features = ["json", "serde/derive"]
{ | |
"topic": "liquidation.BTCUSD", | |
"data": { | |
"symbol": "BTCUSD", | |
"side": "Buy", | |
"price": "38931.50", | |
"qty": "50000", | |
"time": 1646584807379 | |
} | |
} |
#[derive(Debug)] | |
struct Token(usize, usize); | |
fn main() { | |
let token = Token(1, 2); | |
println!("{} {}", token.0, token.1); | |
} |
amdgpu amdgpu-core amdgpu-dkms amdgpu-lib amdgpu-lib32 amdgpu-pro amdgpu-pro-core amdgpu-pro-lib32 clinfo-amdgpu-pro glamor-amdgpu gst-omx-amdgpu libdrm-amdgpu-amdgpu1 libdrm-amdgpu-amdgpu1:i386 libdrm-amdgpu-common libdrm2-amdgpu libdrm2-amdgpu:i386 libegl1-amdgpu-mesa libegl1-amdgpu-mesa:i386 libegl1-amdgpu-mesa-drivers libegl1-amdgpu-mesa-drivers:i386 libegl1-amdgpu-pro libegl1-amdgpu-pro:i386 libgbm1-amdgpu libgbm1-amdgpu:i386 libgl1-amdgpu-mesa-dri libgl1-amdgpu-mesa-dri:i386 libgl1-amdgpu-mesa-glx libgl1-amdgpu-mesa-glx:i386 libgl1-amdgpu-pro-appprofiles libgl1-amdgpu-pro-dri libgl1-amdgpu-pro-dri:i386 libgl1-amdgpu-pro-ext libgl1-amdgpu-pro-glx libgl1-amdgpu-pro-glx:i386 libglapi-amdgpu-mesa libglapi-amdgpu-mesa:i386 libglapi1-amdgpu-pro libglapi1-amdgpu-pro:i386 libgles1-amdgpu-mesa libgles1-amdgpu-mesa:i386 libgles2-amdgpu-mesa libgles2-amdgpu-mesa:i386 libgles2-amdgpu-pro libgles2-amdgpu-pro:i386 libllvm9.0-amdgpu libllvm9.0-amdgpu:i386 libomxil-bellagio-bin libomxil-bellagio0 libopencl1-amdgpu-pro |
$ make clean | |
rm -f test/tests | |
test -z "libhashmap_c.la" || rm -f libhashmap_c.la | |
rm -f ./so_locations | |
rm -rf .libs _libs | |
rm -rf externals/MurmurHash3/src/.libs externals/MurmurHash3/src/_libs | |
rm -rf src/.libs src/_libs | |
rm -rf test/.libs test/_libs | |
rm -f *.o | |
rm -f externals/MurmurHash3/src/*.o |
Source: curl | |
Section: web | |
Priority: optional | |
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com> | |
XSBC-Original-Maintainer: Alessandro Ghedini <ghedo@debian.org> | |
Build-Depends: debhelper (>= 12), | |
autoconf, | |
automake, | |
ca-certificates, | |
dh-exec, |