Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python3
# Copyright (c) 2025 snd
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH T
@snd
snd / foreign_bridge.rs
Created December 18, 2017 15:51
result of using ethabi derive on ForeignBridge contract of parity-bridge
#![feature(prelude_import)]
#![no_std]
#[prelude_import]
use std::prelude::v1::*;
#[macro_use]
extern crate std as std;
extern crate ethabi;
#[macro_use]
extern crate ethabi_derive;
#[macro_use]
@snd
snd / parser-options-test.coffee
Created August 18, 2015 19:59
unfinished implementation which might be useful when and if it comes to implementing https://github.com/snd/url-pattern/issues/19 (generalize named segments and wildcards)
UrlPattern = require '../src/url-pattern'
module.exports =
'default': (test) ->
test.deepEqual UrlPattern.normalizeOptions(),
escape: '\\'
optional:
open: '('
close: ')'