Skip to content

Instantly share code, notes, and snippets.

View Ygg01's full-sized avatar

Ygg01

View GitHub Profile
Got an exception when updating ai_war_2
```
14:48:09 | request failed: HTTPSConnectionPool(host='gog-cdn-lumen.secure2.footprint.net', port=443): Read timed out. (3 retries left) -- will retry in 5s...
14:48:59 | request failed: HTTPSConnectionPool(host='gog-cdn-lumen.secure2.footprint.net', port=443): Read timed out. (2 retries left) -- will retry in 5s...
14:49:49 | request failed: HTTPSConnectionPool(host='gog-cdn-lumen.secure2.footprint.net', port=443): Read timed out. (1 retries left) -- will retry in 5s...
14:50:39 | unexpected connection error fetching md5 data for setup_ai_war_2_4.009_(64bit)_(54769).exe This error may be temporary. Please retry in 24 hours.
14:50:39 | The handled exception was:
14:50:39 |
Traceback (most recent call last):
File "C:\Users\Daniel\AppData\Local\Programs\Python\Python39\lib\site-packages\urllib3\response.py", line 438, in _error_catcher
@Ygg01
Ygg01 / text2d.rs
Created January 5, 2022 14:25
Bevy Text 2D example
use bevy::prelude::*;
fn main() {
App::build()
.add_plugins(DefaultPlugins)
.add_startup_system(setup.system())
.add_system(animate_translation.system())
.add_system(animate_rotation.system())
.add_system(animate_scale.system())
.run();
@Ygg01
Ygg01 / issue-log-83.md
Created January 18, 2020 04:32 — forked from goranmoomin/issue-log-83.md
actix-service Cell::get_mut() is unsound
@Ygg01
Ygg01 / flamegraph.svg
Created December 18, 2017 14:20
html5ever flamegraph
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Ygg01
Ygg01 / should_not_pass.rs
Created May 9, 2017 10:12
build.rs script fails, even when it shouldn't even execute and I can't get member build.rs to fail at all
let p = project("foo")
.file("Cargo.toml", r#"
[project]
name = "foo"
version = "0.5.0"
authors = []
[workspace]
members = ["a"]
var gulp = require('gulp'),
mocha = require('gulp-mocha'),
istanbul = require('gulp-istanbul');
var src_path = 'src/*.js';
var test_path = 'test/*.js';
gulp.task('pre-test', function () {
return gulp.src([src_path])
// Covering files
@Ygg01
Ygg01 / XML5ICE
Created March 28, 2015 23:21
ICE I got when wiring up XML5
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'assertion failed: bpos.to_usize() >= mbc.pos.to_usize() + mbc.bytes', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/codemap.rs:738
stack backtrace:
1: 0x2b43da104b84 - sys::backtrace::write::h5e3efc31357524bax4C
2: 0x2b43da12d528 - panicking::on_panic::ha90a3694573d0234cjJ
3: 0x2b43da060b0c - rt::unwind::begin_unwind_inner::hed207b77c3567743tZI
4: 0x2b43dca0edec - rt::unwind::begin_unwind::h13891512158995194072
5: 0x2b43dca8bbc8 - codemap::CodeMap::bytepos_to_file_charpos::he35a71cdbcb3d0ce69z
6: 0x2b43dca8a109 - codemap::CodeMap::lookup_char_pos::h68bd093129a66ec5o1z
@Ygg01
Ygg01 / time.rs
Created January 14, 2015 06:39
Example of a Calendar using associative types
struct Instant {
nanos: i64,
}
trait ChronoUnit {
fn convert_to_nanos(&self) -> i64;
fn is_estimate(&self) -> bool;
// get_estimate()
}
@Ygg01
Ygg01 / multiply_map.rs
Created April 4, 2014 20:07
An attempt at Decart multiplicate
use std::vec::Vec;
struct MultiplyMap<'a, T> {
vec: Vec<T>,
oper: 'a |T,T|-> T
}
impl<'a> MultiplyMap<'a, ~str>{
pub fn new(data: Vec<~str>) -> MultiplyMap<'a, ~str> {
MultiplyMap{