Skip to content

Instantly share code, notes, and snippets.

View bcho's full-sized avatar
💍
一起来发财吧!Let's make some money!

hbc bcho

💍
一起来发财吧!Let's make some money!
View GitHub Profile
@bcho
bcho / README.md
Created September 28, 2012 12:39
aw

aw

aw!

aw is a Random Dataset Generator (for my data mining learning).

Give descriptions and random generators, generate dataset.

descriptions & generate dataset

DEBUG - Content-Length: 59203
User-Agent: curl/7.27.0
Host: localhost:5000
Expect: 100-continue
Accept: */*
Content-Type: multipart/form-data; boundary=----------------------------ee1a279e3e9c
@bcho
bcho / trace
Created October 30, 2012 12:40
under main:
MsgCmd4echo 0x8054c20
InitInstance 0x804e150
daemonInitv 0x804e9c0
createThread 0x804c080
LogMsg 0x805c560
ExitInstance 0x804e310
parseCommandLine 0x804c110
GNU gdb (GDB) 7.5
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hbc/Downloads/iNodeClient/AuthenMngService...done.
0805ce00 <_Z9MD5UpdateP7MD5_CTXPhm>:
805ce00: 55 push %ebp
805ce01: 89 e5 mov %esp,%ebp
805ce03: 57 push %edi
805ce04: 56 push %esi
805ce05: 53 push %ebx
805ce06: 83 ec 0c sub $0xc,%esp
805ce09: 8b 7d 08 mov 0x8(%ebp),%edi
805ce0c: 8b 45 0c mov 0xc(%ebp),%eax
805ce0f: 8b 55 10 mov 0x10(%ebp),%edx
@bcho
bcho / 8.012.c
Created November 6, 2012 09:08
#include <stdio.h>
void func(char *s, char *t);
int main()
{
char s[] = "time", t[100];
func(s, t);
#include <stdio.h>
void func(char *s, char *t);
int main()
{
char s[] = "time", t[100];
func(s, t);
@bcho
bcho / test.c
Created November 6, 2012 11:21
#include <stdio.h>
#include <math.h>
int main()
{
printf("%lf", sqrt(5));
return 0;
}
(a > b)
/ \
/ \
/ \
/ \
(a > c) (c > b)
/\ /\
/ \ / \
/ \ / \
/ \ (c, b, a) \
(a > b)
/ \
/ \
/ \
/ \
(a > c) (c > b) /* max */
/\ /\
/ \ / \
/ \ / \
/ \ (c, b, a) \