Skip to content

Instantly share code, notes, and snippets.

@rmartinho
rmartinho / hate.markdown
Last active July 15, 2020 01:33
I will hate you

Dear C++ library writer,

  1. If your library forces me to use new all over, I will hate you.

  2. If your library has types with bogus values, I will hate you.

  3. If the documentation for your library gets the terminology of its own domain wrong, I will hate you.

  4. If I say "My God, it's full of stars!" when I see the function signatures in your library, I will hate you.

@bradmontgomery
bradmontgomery / dummy-web-server.py
Last active April 15, 2024 14:27
a minimal http server in python. Responds to GET, HEAD, POST requests, but will fail on anything else.
#!/usr/bin/env python
"""
Very simple HTTP server in python (Updated for Python 3.7)
Usage:
./dummy-web-server.py -h
./dummy-web-server.py -l localhost -p 8000
Send a GET request:
@ngbrown
ngbrown / JetBrains.ExternalAnnotations.xsd
Created August 13, 2011 01:47
Started to define a basic XSD schema for JetBrains external annotations.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="JetBrains.ExternalAnnotations" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:annotation>
<xs:documentation>
<![CDATA[
Usage: You only need to add the following to the assembly element:
<assembly name="Assembly.Name"
xsi:noNamespaceSchemaLocation="http://jetbrains.com/schema/JetBrains.ExternalAnnotations.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
]]>