Skip to content

Instantly share code, notes, and snippets.

View GZShi's full-sized avatar
🎯
Focusing

Guozhong Shi GZShi

🎯
Focusing
View GitHub Profile
{% if site.weibo_uid %}
<section>
<h1>Sina Weibo</h1>
<ul id="weibo"
<li>
<iframe
width="100%"
height="550"
class="share_self"
frameborder="0"
<iframe width="100%" height="550" class="share_self" frameborder="0" scrolling="no"
src="http://widget.weibo.com/weiboshow/index.php?language=&width=0&height=550&fansRow=2&ptype=1&speed=0&skin=1&isTitle=1&noborder=1&isWeibo=1&isFans=1&uid=OOOOOOOOOO&verifier=XXXXXXX&dpc=1"></iframe>
# list each of the sidebar modules you want to include, in the order you want them to appear.
# To add custom asides, create files in /source/_includes/custom/asides/ and add them to the list like 'custom/asides/custom_aside_name.html'
default_asides: [asides/recent_posts.html, asides/weibo.html, asides/github.html, asides/twitter.html, asides/googleplus.html]
# Each layout uses the default asides, but they can have their own asides instead. Simply uncomment the lines below
# and add an array with the asides you want to use.
# blog_index_asides:
# post_asides:
# page_asides:
# ----------------------- #
# Main Configs #
# ----------------------- #
url: http://lovep.me
title: "#{GZShi}的个人博客"
subtitle: 书犹药也,善读之可以医愚
author: GuozhongShi
simple_search: http://google.com/search
description:
@GZShi
GZShi / ht.c
Created September 29, 2012 06:01
#include <stdio.h>
#include <stdlib.h>
#define c1(c) ((((c) << 1) & 0x2a) | (((c) >> 1) & 0x15)) // 交换
#define c2(c) ((c) >> 6) // 循环左移位数
#define c3(c) ((c1((c)) >> 6 - c2((c))) | ((c1((c)) << c2((c))) & 0x3f) | ((c) & 0xc0)) //循环
void encode(char *s);
int main(void)
@GZShi
GZShi / h2.c
Created September 29, 2012 11:43
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
void cut(char *poker, int n); // 切牌
void shuffle(char *poker); // 洗牌
int main(void)
{
char poker[9] = "23456789";
@GZShi
GZShi / h3.c
Created September 29, 2012 12:37
// 这个版本不支持赋值运算
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void preproccess(char *buf, int a, int b, int c, int d, int e);
void replace(char *buf, int start, int end, int number);
void mult_analytic(char *buf);
void remove_bracket(char *buf);
@GZShi
GZShi / mtcss
Created September 29, 2012 13:23
d8:announce30:http://tracker.prq.to/announce13:announce-listll30:http://tracker.prq.to/announceel36:http://btfans.3322.org:6969/announce36:http://btfans.3322.org:8000/announce36:http://btfans.3322.org:8080/announceel40:http://tracker.thepiratebay.org/announceel42:udp://tracker.thepiratebay.org:80/announceel42:http://tracker.openbittorrent.com/announceel44:udp://tracker.openbittorrent.com:80/announceel38:udp://tracker.publicbt.com:80/announceel36:http://tracker.publicbt.com/announceel33:http://nemesis.1337x.org/announceel38:http://genesis.1337x.org:1337/announceel24:http://pow7.com/announceel34:http://tracker.prq.to/announce.phpel39:http://tracker.torrent.to:2710/announceel32:http://t2.popgo.org:7456/annonceel39:http://tracker.1000fr.net:2710/announceel40:http://tracker2.1000fr.com:8080/announceel34:http://bt.1000fr.net:2710/announceel36:http://trackedbyet.info:420/announceel37:http://tracker.bittorrent.am/announceel28:http://11.rarbg.com/announceel33:http://tracker.istole.it/announceel35:udp://tracker.istole.
#include <stdio.h>
#define TRUE 1
#define FALSE 0
int judge(int year)
{
if(year % 4 != 0)
return FALSE;
else if(year % 100 == 0)
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MAX_LEN 255
#define TRUE 1
#define FALSE 0
int judge(char *str)
{