Skip to content

Instantly share code, notes, and snippets.

View kaleocheng's full-sized avatar
🦀

Kaleo kaleocheng

🦀
View GitHub Profile
@kaleocheng
kaleocheng / change_tint2_color
Last active August 29, 2015 14:03
自动改变颜色的小程序
#!/bin/bash
nitrogen /home/kaleo/images/wallpapers/ && python change_tint2_color.py && tint2restart &
/*
push
*/
void push(STACK_TYPE value)
{
assert(!isFull());
topElement += 1;
arry[topElement] = value;
}
/*
#include<stdio.h>
#define QueueType int
#define MAX 10
/*******************/
/*
队列的结构
*/
typedef struct
//***********顺序表实现的电话簿程序*************************//
/*
*本程序为练习顺序表所写,仅实现了最基本的几个功能:添加,删除,查找联系人.
* 很多细节并未实现,如检验姓名,和手机号码是否合法,对重复姓名联系人的处理,按时间先后排序,按字母先后排序等.
* 程旭
* [email protected]
*/
#include<stdio.h>
#include<string.h>
@kaleocheng
kaleocheng / LinkList.c
Last active August 29, 2015 14:02
LinkList
@kaleocheng
kaleocheng / ultrasonic_wave.c
Created June 21, 2014 08:26
Ultrasonic Wave 52MCU 12MHz
#include<reg52.h>
#include<stdio.h>
#define uchar unsigned char
#define uint unsigned int
sbit Trig = P1^5;
sbit Echo = P3^2;