Skip to content

Instantly share code, notes, and snippets.

View Stargateur's full-sized avatar

Stargateur

  • Nuant
  • France
View GitHub Profile
@Stargateur
Stargateur / Cargo.toml
Last active May 17, 2022 10:22
Find out how many dep requirement are comparative operator or wildcard operator. Require to clone https://github.com/rust-lang/crates.io-index.git in the working directory
[package]
name = 'foo'
version = '0.0.0'
edition = '2021'
[dependencies]
semver = "1"
[dependencies.reg-index]
git = "https://github.com/Stargateur/cargo-index.git"
@Stargateur
Stargateur / ntp.c
Created December 6, 2017 03:27
ntp implementation with llvm code style from https://www.ietf.org/rfc/rfc5905.txt
#include <math.h> /* avoids complaints about sqrt() */
#include <stdlib.h> /* for malloc() and friends */
#include <string.h> /* for memset() */
#include <sys/time.h> /* for gettimeofday() and friends */
/*
* Data types
*
* This program assumes the int data type is 32 bits and the long data
* type is 64 bits. The native data type used in most calculations is
@Stargateur
Stargateur / rwby.bash
Last active December 25, 2016 00:02
download rwby episode
#/bin/bash
episode="episode7"
mkdir "${episode}"
if [ $? -eq 1 ]
then
echo episode already exist
exit 1
fi
cd ${episode}
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8e9d289..4b88e9d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,17 +4,17 @@ add_definitions( -DBOOST_ALL_NO_LIB )
find_package(Threads)
find_package(GTest)
# Download and unpack googletest at configure time
-
+#set(Boost_DEBUG on)