This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
printf("Hello world!"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 无回调 | |
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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QtGui> | |
class TitleBar : public QWidget | |
{ | |
Q_OBJECT | |
public: | |
TitleBar(QWidget *parent) | |
{ | |
// 不继承父组件的背景色 | |
setAutoFillBackground(true); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 替换内容源代码中的 Gist 标签为 Gist 脚本 | |
* Gist 标签格式为: [gist gist地址] | |
* | |
* @package GistEcho | |
* @author woody | |
* @version 1.0.0 | |
* @link http://www.fanrenxiu.com | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<div | |
style="margin:0px; | |
padding:0px; | |
height:32px; | |
width:20px; | |
position:relative; | |
background:#008349; | |
z-index:2; | |
left:80px; |