Skip to content

Instantly share code, notes, and snippets.

View bhickey's full-sized avatar
💭
using gitlab

Brendan Hickey bhickey

💭
using gitlab
View GitHub Profile
error: expected ident, found #
--> /Users/brendan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/lib.rs:423:29
|
423 | #[allow(deprecated)]
| ^
|
::: /Users/brendan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/example_generated.rs
|
4 | / bitflags! {
5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example).
error: expected ident, found #
--> /Users/brendan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/lib.rs:423:29
|
423 | #[allow(deprecated)]
| ^
|
::: /Users/brendan/.cargo/registry/src/github.com-1ecc6299db9ec823/bitflags-1.0.1/src/example_generated.rs
|
4 | / bitflags! {
5 | | /// This is the same `Flags` struct defined in the [crate level example](../index.html#example).
error[E0271]: type mismatch resolving `<G as render::graphics::Graphics>::Texture == piston_window::Texture<R>`
--> src/entity.rs:36:18
|
36 | sprite.draw(t, g);
| ^^^^ expected associated type, found struct `piston_window::Texture`
|
= note: expected type `<G as render::graphics::Graphics>::Texture`
found type `piston_window::Texture<R>`
error[E0271]: type mismatch resolving `<G as render::graphics::Graphics>::Texture == piston_window::Texture<R>`
--> src/entity.rs:36:18
|
36 | sprite.draw(t, g);
| ^^^^ expected associated type, found struct `piston_window::Texture`
|
= note: expected type `<G as render::graphics::Graphics>::Texture`
found type `piston_window::Texture<R>`
Initialize engine version: 5.4.0f2 (14e9279a8947)
GfxDevice: creating device client; threaded=1
Renderer: Intel(R) Iris(TM) Graphics 550
Vendor: Intel Inc.
Version: 4.1 INTEL-10.24.45
GLES: 0
GL_ARB_blend_func_extended GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_ES2_compatibility GL_ARB_explicit_attrib_location GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader5 GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_occlusion_query2 GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_separate_shader_objects GL_ARB_shader_bit_encoding GL_ARB_shader_subroutine GL_ARB_shading_language_include GL_ARB_tessellation_shader GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_cube_map_array GL_ARB_texture_gather GL_ARB_texture_query_lod GL_ARB_texture_rgb10_a2ui GL_ARB_texture_storage GL_ARB_texture_swizzle GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_vertex_attrib_64bit GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_EXT_debug_label GL_EXT_debug_marker GL_EXT_fr
#[derive(Debug, PartialEq)]
struct Ngram {
tokens: Vec<String>,
year: i32,
count: i64,
docs: i32
}
impl FromStr for Ngram {
type Err = ParseIntError;
@bhickey
bhickey / gist:0de228c02cc60b5965582d2d946d8c38
Created February 5, 2017 17:57
6502 xorshift, 8-bit full period
; r ^= (r << 1)
; r ^= (r >> 1)
; r ^= (r << 2)
xorshift:
lda <RAND_SEED
asl a
eor <RAND_SEED
tax
asr a
@bhickey
bhickey / fmt.rs
Created September 16, 2016 03:22
let font = glium_text::FontTexture::new(&display,
std::fs::File::open(&std::path::Path::new("Inconsol\
ataGo-Re\
gular.tt\
f"))
.unwrap(),
36)
.unwrap();
.
├── Cargo.toml
└── src
├──common.rs
└──bin
├── client.rs
└── server.rs
➜ cargo git:(master) ✗ cargo build
Updating git repository `https://github.com/alexcrichton/libz-sys`
Compiling winapi v0.2.8
Compiling ws2_32-sys v0.2.1
Compiling libz-sys v1.0.5 (https://github.com/alexcrichton/libz-sys#043a4cd1)
Compiling toml v0.2.0
Compiling bitflags v0.7.0
Compiling openssl-sys v0.7.14
Compiling openssl-sys-extras v0.7.14
Compiling openssl v0.7.14