Skip to content

Instantly share code, notes, and snippets.

View justinrlle's full-sized avatar

JustinRlle justinrlle

  • @golem.ai
  • Paris
View GitHub Profile
[package]
name = "isahc-empty-headers"
version = "0.1.0"
authors = ["JustinRlle <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "isahc-empty-headers"
@justinrlle
justinrlle / Cargo.lock
Last active September 4, 2019 15:09
Panic when using async blocking io and AsyncReadExt::copy_into
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
[[package]]
name = "async-std"
version = "0.99.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
dependencies = [
"async-task 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cfg-if 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)",
"crossbeam-channel 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)",
public class MyShittyClass {
public Config modifyRandomlyCurrentConfig() { ... }
public MyShittyClass(Config config) {
this.config = config;
}
// ce constructeur ne passe pas, parce que this() n'est pas le premier appel
public MyShittyClass(File configFile) {

Hey guys, I've been thinking about this issue as of lately, so I thought that I would expose my thoughts to you, kind of under the form of a draft for an RFC. I'm not used to writing long and complex stuff in English, so wording might be off, and if something is not clear, please say it, I'll gladly try to improve whatever is needed.


  • Feature Name: cargo_artifacts_definition

Summary

@justinrlle
justinrlle / evil.rs
Created September 27, 2018 14:11
In 666 characters, show 666 times the number of the beast.
static THE_NUMBER_OF_THE_BEAST: &str = "666";
/// And I stood upon the sand of the sea, and saw a beast rise up out of the sea, having seven
/// heads and ten horns, and upon his horns ten crowns, and upon his heads the name of blasphemy.
/// [...] Here is wisdom. Let him that hath understanding count the number of the beast: for it is
/// the number of a man; and his number is Six hundred threescore and six.
///
/// Apocalypse, 13, 1, 18
fn main() {
let the_mark = ::std::iter::repeat(THE_NUMBER_OF_THE_BEAST)
@justinrlle
justinrlle / README.md
Last active May 4, 2017 11:01
Java ADT

Java ADT

This pattern allows one to use "ADT" in Java. You publish a TileEvent, and you use instanceof to know which kind of event it is.

TileEvent tileEvent = (TileEvent) object;
if (tileEvent instanceof TileEvent.Set) {
    TileEvent.Set event = (TileEvent.Set) tileEvent;
 System.out.printf("Set Event at %s on level %s with sprite %s",
@justinrlle
justinrlle / ArrayExtended.js
Last active March 6, 2019 15:53
Some utils I came and will come to code in js
'use strict';
const range = (start, end, step = 1) =>
Array.from(
new Array(Math.ceil((end - start) / step)),
(x, i) => i * step + start
);
export { range };
@justinrlle
justinrlle / cVimrc.vim
Last active December 5, 2016 12:41
vimrc for cVim, aka Chromium Vim
" Auto update from this gist
set autoupdategist
" Somme settings
set numerichints
set typelinkhints
set noautofocus
let homedirectory = "/C:/Users/i323916/"
set sortlinkhints
set smoothscroll