Skip to content

Instantly share code, notes, and snippets.

@demurgos
demurgos / feverzoom.user.js
Last active Aug 29, 2015
Zoom pour fever.muxxu.com
View feverzoom.user.js
// ==UserScript==
// @name Fever Zoom
// @namespace Fever
// @description Active le zoom sur Fever
// @version 1
// @include http://fever.muxxu.com
// @include http://fever.muxxu.com/game
// @grant none
// ==/UserScript==
View hfestBanner.user.js
// ==UserScript==
// @name HammerfestHeader
// @namespace hammerfest.fr
// @description Choix de la banniere Hammerfest
// @version 1
// @include http://www.hammerfest.fr/*
// @match http://www.hammerfest.fr/*
// ==/UserScript==
//Cacher les sites amis pendant une partie
View zlib.ml
() =
let ch = IO.output_channel (open_out_bin "haxe-zlib.bug") in
let def_ch = Extc.output_zip ~level:9 ch in
let def_data = "\x78\x00\x04\x1a\x00\x00\x14\x50\x00\x00\x28\x01\x00\x44\x11\x08\x00\x00\x00\x43\x02\x00\x00\x00\xbf\x15\x0a\x00\x00\x00\x01\x00Scene1\x00\x00\x3f\x12\xe9\x16\x05\x00"
^ "\x10\x00\x2e\x00\x85\x05\x88\x04\xa4\x03\x80\x80\x80\x80\x0f\x80\x80\x80\x80\x01\xff\xff\xff\x07\xa0\x06\xb9\x80\x80\x80\x04\xba\x80\x80\x80\x04\xbb\x80\x80\x80\x04\xbc\x80\x80\x80\x04\xbd\x80\x80\x80\x04\xbe\x80\x80\x80\x04\xbf\x80\x80\x80\x04\xc0\x80\x80\x80\x04\xc1\x80\x80\x80\x04\xc2\x80\x80\x80\x04\xc3\x80\x80\x80\x04\xc4\x80\x80\x80\x04\xc5\x80\x80\x80\x04\xc6\x80\x80\x80\x04\xc7\x80\x80\x80\x04\xc8\x80\x80\x80\x04\xc9\x80\x80\x80\x04\xca\x80\x80\x80\x04\xcb\x80\x80\x80\x04\xcd\x80\x80\x80\x04\xce\x80\x80\x80\x04\xcf\x80\x80\x80\x04\xd0\x80\x80\x80\x04\xd1\x80\x80\x80\x04\xd2\x80\x80\x80\x04\xd3\x80\x80\x80\x04\xd4\x80\x80\x80\x04\xd5\x80\x80\x80\x04\xd6\x80\x80\x80\x04\xd7\x80\x80\x80\x04\xd
@demurgos
demurgos / main.rs
Created Mar 31, 2017
Parametrized parsers for nom
View main.rs
use nom::IResult;
// Hard-coded
named!(pub balanced1<()>, do_parse!(take!(1) >> tag!("~") >> take!(1) >> ()));
named!(pub balanced2<()>, do_parse!(take!(2) >> tag!("~") >> take!(2) >> ()));
named!(pub balanced3<()>, do_parse!(take!(3) >> tag!("~") >> take!(3) >> ()));
// Parametrized (function)
fn balanced_fn(input: &[u8], n: usize) -> IResult<&[u8], ()> {
do_parse!(input, take!(n) >> tag!("~") >> take!(n) >> ())
}
View 01-error.txt
C:/Users/demurgos/.cargo/bin/cargo.exe run --package hello-win --bin hello-win
Updating git repository `https://github.com/retep998/winapi-rs`
Compiling hello-win v0.1.0 (file:///E:/projects/various/hello-win)
error[E0432]: unresolved import `winapi::um::winuser`
--> src\main.rs:10:19
|
10 | use winapi::um::winuser::{MB_OK, MessageBoxW};
| ^^^^^^^ Could not find `winuser` in `um`
error: aborting due to previous error
View keybase.md

Keybase proof

I hereby claim:

  • I am demurgos on github.
  • I am demurgos (https://keybase.io/demurgos) on keybase.
  • I have a public key ASBTmsCrdqm8roliUmM_wM7UQWLHYgbkM4KXIU_fNTup_Ao

To claim this, I am signing this object:

View gulp-util.dependents.json
[
{
"name": "run-sequence",
"gulp-util-version": "^3.0.8",
"downloads": {
"total": 17151288,
"last30": 1078927
}
},
{
View list.rs
use ::std::cell::Cell;
use ::std::fmt::Debug;
use ::std::ptr::NonNull;
// A node in my forward linked-list
pub struct GcBox<T: Debug + ?Sized> {
counter: Cell<usize>,
next: Option<NonNull<GcBox<Debug>>>,
value: T,
}
View 3f7b588b-2c3a-467e-9a74-311fb71b2818.json
{
"/data/projects/various/turbo-gulp/build/test/test.esm.js": {
"path": "/data/projects/various/turbo-gulp/build/test/test.esm.js",
"statementMap": {
"0": {
"start": {
"line": 1,
"column": 0
},
"end": {
You can’t perform that action at this time.