Skip to content

Instantly share code, notes, and snippets.

@legendlee
legendlee / test.c
Created September 1, 2012 21:19
Just for testing Gist.
#include <stdio.h>
int main() {
printf("Hello world!");
}
// 无回调
function isArray(o) {
return toString.apply(o) === '[object Array]';
}
function foo(arr) {
console.log(arr);
if (isArray(arr)) {
for (i in arr) {
(function(j) {
setTimeout(function() {
#include <QtGui>
class TitleBar : public QWidget
{
Q_OBJECT
public:
TitleBar(QWidget *parent)
{
// 不继承父组件的背景色
setAutoFillBackground(true);
@legendlee
legendlee / GistEcho.php
Created December 2, 2012 07:32
让Typecho支持Gist的插件
<?php
/**
* 替换内容源代码中的 Gist 标签为 Gist 脚本
* Gist 标签格式为: [gist gist地址]
*
* @package GistEcho
* @author woody
* @version 1.0.0
* @link http://www.fanrenxiu.com
*/
@legendlee
legendlee / css_celtics.html
Created December 5, 2012 01:26
CSS画的凯尔特人logo
<div>
<div
style="margin:0px;
padding:0px;
height:32px;
width:20px;
position:relative;
background:#008349;
z-index:2;
left:80px;