Skip to content

Instantly share code, notes, and snippets.

@kei10in
kei10in / Comparison.md
Last active April 11, 2018 15:24
Comparison with httparse and picohttpparser
@kei10in
kei10in / Python-3.2.3_cygwin_build.patch
Created April 28, 2012 07:35
The patch for building Python 3.2.3 on cygwin environment
diff -r 3d0686d90f55 -r b6893ce617f7 Include/py_curses.h
--- a/Include/py_curses.h Tue Apr 10 19:30:22 2012 +0200
+++ b/Include/py_curses.h Sat Apr 28 16:18:32 2012 +0900
@@ -17,6 +17,13 @@
#define NCURSES_OPAQUE 0
#endif /* __APPLE__ */
+#ifdef __CYGWIN__
+/* the following define is necessary for Cygwin; without it, the
+ Cygwin-supplied ncurses.h sets NCURSES_OPAQUE to 1, and then Python
@kei10in
kei10in / ReactiveUIProperty.xml
Last active April 1, 2016 13:20 — forked from andersonimes/gist:2490459
Property Code Snippet for ReactiveUI
<?xml version="1.0" encoding="UTF-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>ReactiveUI Property</Title>
<Author>Anderson Imes</Author>
<Description>Creates a property that calls RaiseAndSetIfChanged</Description>
@kei10in
kei10in / OperatorEquals.snippet
Created November 18, 2015 13:02
Code snippet to implement operator == in C# for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>OperatorEquals</Title>
<Author>kei10in@gmail.com</Author>
<Description>Code Snippet to implement operator == under guildline</Description>
@kei10in
kei10in / Python-3.2.2_cygwin_build.patch
Created September 13, 2011 12:48
The patch for building Python-3.2.2 on cygwin environment.
# HG changeset patch
# Date 1315917931 -32400
# Branch 3.2
# Node ID 8b950b66853c1f32c420e5fbc6e21ee88162ef96
# Parent 137e45f15c0bd262c9ad4c032d97425bc0589456
Fix cygwin build bug
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
#include <iostream>
#include <string>
#include <vector>
#include <memory>
#include <boost/optional.hpp>
class node;
typedef std::shared_ptr<node> node_ptr;