Skip to content

Instantly share code, notes, and snippets.

View kinggoesgaming's full-sized avatar
👀
404 Not Found

Hunar Roop Kahlon kinggoesgaming

👀
404 Not Found
View GitHub Profile
@kinggoesgaming
kinggoesgaming / syntax.s
Created February 17, 2018 05:24 — forked from mishurov/syntax.s
AT&T assembly syntax and IA-32 instructions
# --------
# Hardware
# --------
# Opcode - operational code
# Assebly mnemonic - abbreviation for an operation
# Instruction Code Format (IA-32)
# - Optional instruction prefix
# - Operational code
@kinggoesgaming
kinggoesgaming / Cargo.toml
Created February 10, 2018 20:26
Try this, with v5 and std, and sha1 will not have std::error::Error will not be implemented for sha1::DigestParseError
[package]
name = "uuid"
version = "0.6.0-beta"
authors = ["The Rust Project Developers"]
license = "MIT/Apache-2.0"
readme = "README.md"
repository = "https://github.com/rust-lang/uuid"
homepage = "https://github.com/rust-lang/uuid"
documentation = "https://docs.rs/uuid"
mod prelude;
mod serde_support;
mod std_support;
mod v1;
mod v3;
mod v4;
mod v5;
enum UuidVariant {..}
enum UuidVersion {..}
.data
.text
.global _start
_start:
movl $0xA4, %eax
plugins {
id 'org.spongepowered.plugin' version '0.8.1'
id 'org.jetbrains.kotlin.jvm' version '1.1.3'
id 'org.jetbrains.kotlin.kapt' version '1.1.3'
id 'com.github.johnrengelman.shadow' version '1.2.4'
}
group = pluginGroup
version = pluginVersion
Compiling ore v0.1.0 (file:///home/kgg_dev/src/ore)
error[E0501]: cannot borrow `self.data` as immutable because previous closure requires unique access
--> src/project/mod.rs:70:12
|
62 | .and_then(|res| {
| ----- closure construction occurs here
63 | res.body().concat2().map(|mut body| {
64 | self.data = body.to_vec();
| ---- previous borrow occurs due to use of `self` in closure
...
Compiling ore v0.1.0 (file:///home/kgg_dev/src/ore)
error[E0277]: the trait bound `(): futures::Future` is not satisfied
--> src/project/mod.rs:62:38
|
62 | res.body().concat2().and_then(move |body| {
| ^^^^^^^^ the trait `futures::Future` is not implemented for `()`
|
= note: required because of the requirements on the impl of `futures::IntoFuture` for `()`
error[E0277]: the trait bound `(): futures::Future` is not satisfied
/usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-ultimate/lib/idea_rt.jar=43691:/opt/intellij-idea-ultimate/bin -Dfile.encoding=UTF-8 -classpath /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/charsets.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/cldrdata.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/dnsns.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/icedtea-sound.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/jaccess.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/java-atk-wrapper.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/localedata.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/nashorn.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/sunec.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/sunjce_provider.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/sunpkcs11.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/ext/zipfs.jar:/usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/jce.jar:/usr/lib/jvm/java-1.8.0-openjdk-a
/*
Crate: ore
File: /project/channel.rs
Module: ::project::channel
Visibility: public
*/
// TODO: documentation
use serde::{Deserialize, Deserializer, Serialize, Serializer};