Skip to content

Instantly share code, notes, and snippets.

View tathanhdinh's full-sized avatar
😀

Ta Thanh Dinh tathanhdinh

😀
  • Paris
  • 23:28 (UTC +02:00)
View GitHub Profile
VRPContext context;
@Override
public List<NewVRPSolution> solve(NewVRPSolution seed, VRPContext context) {
this.context = context;
NewVRPSolution solution = seed.clone();
HashSet<String> itemTypes = (HashSet<String>) solution.getAllVehicles().stream().map(v -> v.getVehicle().getGroupCode()).collect(Collectors.toSet());
use {
futures::{
future::{BoxFuture, FutureExt},
task::{waker_ref, ArcWake},
},
std::{
future::Future,
pin::Pin,
sync::mpsc::{sync_channel, Receiver, SyncSender},
sync::{Arc, Mutex},
```
uCc on  master [?] is 📦 v0.1.0 via 🦀 v1.41.0 ❯ rustc --version
rustc 1.41.0 (5e1a79984 2020-01-27)
uCc on  master [?] is 📦 v0.1.0 via 🦀 v1.41.0 ❯ cargo build
Updating crates.io index
Compiling proc-macro2 v1.0.8
Compiling unicode-xid v0.2.0
Compiling syn v1.0.14
Compiling cfg-if v0.1.10
Compiling autocfg v1.0.0
Dans l'archive target/x86_64-linux/debug/librustyvisor.a :
rustyvisor-1618ec4c92776370.1507o0d9qy9rzhgx.rcgu.o: format de fichier elf64-x86-64
Sections :
Idx Name Taille VMA LMA Off fich Algn
0 .text 00000000 0000000000000000 0000000000000000 00000040 2**2
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .text._ZN10rustyvisor13serial_logger4outw17h44046d83400101c7E 00000023 0000000000000000 0000000000000000 00000040 2**4
CONTENTS, ALLOC, LOAD, READONLY, CODE
source_filename = "llvm-link"
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu-elf"
%struct.Zimm = type { %struct.InZimm, [32 x %union.CCback], %struct.ACalls, %union.anon, %struct.BCalls, %struct.FoldedBlock, %struct.BasicTGroup, %struct.PCalls, %struct.PCallExtended, %struct.SCallExtended, %union.anon, %union.Ccon }
%struct.InZimm = type { i32, i32, %union.anon }
%union.CCback = type { %union.vec512_t }
%union.vec512_t = type { %struct.uint64v8_t }
%struct.uint64v8_t = type { [8 x i64] }
%struct.ACalls = type { i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, i8 }
#[repr(C, packed)]
struct Foo {
a: u32,
b: u32
}
fn main() {
let p: *const Foo = std::ptr::null();
let b_offset = unsafe {
&(*p).b as *const _ as usize
#include <elf.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
// killgdb.c - prevent an elf from being loaded by gdb.
// Jeffrey Crowell <crowell [at] bu [dot] edu>
//
// $ objcopy --only-keep-debug program program.debug
;; Google protocol buffers
(use-package protobuf-mode
:mode "\\.proto\\'"
:commands (protobuf-mode)
:config
(progn
(defconst my-protobuf-style
'((c-basic-offset . 2)
(indent-tabs-mode . nil)))
This file has been truncated, but you can view the full file.
0x403ff0 sub rsp, 0x8 /usr/bin/wget _init
0x403ff4 mov rax, qword ptr [rip+0x25affd] /usr/bin/wget _init
0x403ffb test rax, rax /usr/bin/wget _init
0x403ffe jz 0x404005 /usr/bin/wget _init
0x404000 call 0x404e10 /usr/bin/wget _init
0x404005 add rsp, 0x8 /usr/bin/wget _init
0x404009 ret /usr/bin/wget _init
0x404010 push qword ptr [rip+0x25aff2] /usr/bin/wget .plt
0x404016 jmp qword ptr [rip+0x25aff4] /usr/bin/wget .plt
0x404040 jmp qword ptr [rip+0x25afe2] /usr/bin/wget .plt