Skip to content

Instantly share code, notes, and snippets.

View condy0919's full-sized avatar
😿
哭哭

Youmu condy0919

😿
哭哭
View GitHub Profile
@condy0919
condy0919 / -
Created October 30, 2016 19:54
a52dec
aalib
abduco
abs
acl
acpi
acpi_call
adjbacklight-git
adobe-air-sdk
adobe-source-han-sans-cn-fonts
#include <iostream>
#include <functional>
#include <type_traits>
#include <cassert>
/*
* auto f = curry(foo); void foo(int, int, int) {}
* f(1)(2)(3);
* f(1,2)(3);
* f(1,2,3);
#include <utility>
using namespace std;
auto l = [](char, int) { return 1.0; };
struct foo {
int operator()(int, char) { return 0; }
};
Stack trace of thread 17209:
#0 0x00007ff3277eed0d __memcpy_sse2_unaligned (libc.so.6)
#1 0x00007ff32835abdb _ZNSt11char_traitsIcE4copyEPcPKcm (libstdc++.so.6)
#2 0x00007ff32834b0f6 _ZNSt15basic_streambufIcSt11char_traitsIcEE5sputnEPKcl (libstdc++.so.6)
#3 0x000000000044e374 _ZN4HttplsERSoRKNS_7RequestE (acproxy)
#4 0x000000000044e08b _ZNK4Http7Request8toBufferB5cxx11Ev (acproxy)
#5 0x0000000000407111 _ZN7ACProxy14LocalForwarder16getHeadersHandleERKN5boost6system10error_codeE (acproxy)
#6 0x000000000042312f _ZNK5boost4_mfi3mf1IvN7ACProxy14LocalForwarderERKNS_6system10error_codeEE4callISt10shared_ptrIS3_ES6_EEvRT_PKvRT0_ (acproxy)
#7 0x0000000000421e2a _ZNK5boost4_mfi3mf1IvN7ACProxy14LocalForwarderERKNS_6system10error_codeEEclISt10shared_ptrIS3_EEEvRT_S7_ (acproxy)
#8 0x00000000004208ad _ZN5boost3_bi5list2INS0_5valueISt10shared_ptrIN7ACProxy14L
@condy0919
condy0919 / json.c
Created January 23, 2014 16:28
stolen from cJSON...
#include "json.h"
static void print_ch(char ch, int n)
{
while (n-- > 0)
putchar(ch);
}
static const char* whitespace(const char* src)
{
@condy0919
condy0919 / city_code.txt
Created January 15, 2014 06:14
use weather.com.cn interface to get weather info... a simple toy...
北京 101010100
海淀 101010200
朝阳 101010300
顺义 101010400
怀柔 101010500
通州 101010600
昌平 101010700
延庆 101010800
丰台 101010900
石景山 101011000