Skip to content

Instantly share code, notes, and snippets.

View mattn's full-sized avatar
🍛
I love curry 🍛

mattn mattn

🍛
I love curry 🍛
View GitHub Profile
In file included from wassr-tl.cxx:2:
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h: In instantiation of '__gnu_cxx::_SGIAssignableConcept<picojson::value>':
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/stl_vector.h:179: instantiated from 'std::vector<picojson::value, std::allocator<picojson::value> >'
picojson.h:78: instantiated from here
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h:216: error: '__gnu_cxx::_SGIAssignableConcept<_Tp>::__a' has incomplete type
picojson.h:56: error: forward declaration of 'class picojson::value'
picojson.h: In member function 'std::string picojson::value::to_str() const':
picojson.h:196: error: '_snprintf_s' was not declared in this scope
picojson.h:207: error: '__assume' was not declared in this scope
c:\mingw\bin\../lib/gcc/mingw32/4.3.0/include/c++/bits/boost_concept_check.h: In member function 'void __gnu_cxx::_SGIAssignableConcept<_Tp>::__constraints() [with _Tp = picojson::value]':
Visual C++ 5.0 => 1100
Visual C++ 6.0 => 1200
Visual C++ .NET 2003 => 1310
Visual C++ 2005 => 1400
############################### WARNING #################################
# #
# You are using perl 5.10.0 with the "Unknown error" bug. This can make #
# developing Catalyst applications much more painful, as it will come #
# up with no details every time you have a syntax error in a Controller.#
# #
# For more information see: #
# #
# * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472 #
# #
test
foo
// ==UserScript==
// @name a chin chin a chin
// @namespace http://mattn.kaoriya.net/
// @include http://wassr.jp/my/
// ==/UserScript==
(function() {
var forms = document.getElementsByTagName('form');
for (var n = 0; n < forms.length; n++) {
if (forms[n].action == 'http://wassr.jp/my/status/add') {
#include <curl/curl.h>
#include "../picojson.h"
typedef struct {
char* data; // response data from server
size_t size; // response size of data
} MEMFILE;
MEMFILE*
memfopen() {
use strict;
use warnings;
use YAML;
use IO::Socket::INET;
my $sock = IO::Socket::INET->new(PeerAddr => 'www.google.com',
PeerPort => 'http(80)',
Proto => 'tcp');
$! = unpack "i", $sock->getsockopt (SOL_SOCKET, SO_ERROR);
warn Dump $!;
diff -u Coro.orig/Handle.pm Coro/Handle.pm
--- Coro.orig/Handle.pm 2009-07-08 15:22:00.000000000 +0900
+++ Coro/Handle.pm 2009-07-08 15:29:15.531250000 +0900
@@ -143,7 +143,7 @@
=cut
-sub connect { connect tied(${$_[0]})->[0], $_[1] or $! == EINPROGRESS or $! == WSAEINPROGRESS }
+sub connect { connect tied(${$_[0]})->[0], $_[1] or $! == EINPROGRESS or $! == WSAEINPROGRESS or $! == WSAEWOULDBLOCK }
sub bind { bind tied(${$_[0]})->[0], $_[1] }
let g:Interactive_EscapeColors = [
\'#3c3c3c', '#ff6666', '#66ff66', '#ffd30a', '#1e95fd', '#ff13ff', '#1bc8c8', '#C0C0C0',
\'#686868', '#ff6666', '#66ff66', '#ffd30a', '#6699ff', '#f820ff', '#4ae2e2', '#ffffff'
\]
let g:Interactive_EscapeColors = [
\'#3c3c3c', '#ff6666', '#66ff66', '#ffd30a', '#1e95fd', '#ff13ff', '#1bc8c8', '#C0C0C0',
\'#686868', '#ff6666', '#66ff66', '#ffd30a', '#6699ff', '#f820ff', '#4ae2e2', '#ffffff'
\]