Skip to content

Instantly share code, notes, and snippets.

View glynos's full-sized avatar
💭
At the movies

Glyn Matthews glynos

💭
At the movies
View GitHub Profile
@glynos
glynos / Cargo.toml
Last active April 13, 2021 15:31
URL with '%' in path
[package]
name = "rust-url"
version = "0.1.0"
authors = ["Glyn Matthews <glyn.matthews@gmail.com>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
url = "2.2"

Keybase proof

I hereby claim:

  • I am glynos on github.
  • I am glynos (https://keybase.io/glynos) on keybase.
  • I have a public key ASCSeyA5KuhzOx93QbvfiOA-kK4WBmo68f6sgveJZ_tX-wo

To claim this, I am signing this object:

import sys
import argparse
import random
import pyperclip
__chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
__digits = "1234567890"
__symbols = "!@#$%^&*()_-+={[}]|\\:;\"\'<,>.?/"
def generate_password(length, use_digits=True, use_symbols=True):
@glynos
glynos / gist:2229823
Created March 28, 2012 19:40
Link failure building cpp-netlib (deanberris/master)
make -f libs/network/test/http/CMakeFiles/cpp-netlib-http-client_constructor_test.dir/build.make libs/network/test/http/CMakeFiles/cpp-netlib-http-client_constructor_test.dir/build
make[2]: Entering directory `/home/glyn/Sandbox/deanberris/cpp-netlib/_build'
Linking CXX executable ../../../../tests/cpp-netlib-http-client_constructor_test
cd /home/glyn/Sandbox/deanberris/cpp-netlib/_build/libs/network/test/http && /usr/bin/cmake -E cmake_link_script CMakeFiles/cpp-netlib-http-client_constructor_test.dir/link.txt --verbose=1
/usr/bin/c++ CMakeFiles/cpp-netlib-http-client_constructor_test.dir/client_constructor_test.cpp.o -o ../../../../tests/cpp-netlib-http-client_constructor_test -rdynamic /home/glyn/Sandbox/boost_1_48_0/stage/lib/libboost_unit_test_framework.a /home/glyn/Sandbox/boost_1_48_0/stage/lib/libboost_system.a /home/glyn/Sandbox/boost_1_48_0/stage/lib/libboost_regex.a /home/glyn/Sandbox/boost_1_48_0/stage/lib/libboost_date_time.a /home/glyn/Sandbox/boost_1_48_0/stage/lib/libboost_thread.a -lpt
template <
class Tag
>
struct basic_request_handler_interface {
typedef basic_request<Tag> request_type;
typedef basic_response<Tag> response_type;
virtual void operator () (const request_type &request,
response_type &response) = 0;
};