Skip to content

Instantly share code, notes, and snippets.

View yyq123's full-sized avatar
🎯
Focusing

yyq123 yyq123

🎯
Focusing
View GitHub Profile
.classname {
font-family: 'Courier New', Courier, monospace;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>
<p></p>
</body>
@yyq123
yyq123 / gist:729968
Created December 6, 2010 06:57
KeyMapping of ToggleHiglightSearch
function ToggleHLSearch()
if &hls
set nohls
else
set hls
endif
endfunction
nmap <silent> <C-n> <Esc>:call ToggleHLSearch()<CR>
@yyq123
yyq123 / gist:751037
Created December 22, 2010 03:10
vimrc-OmniFunc
if has("autocmd") && exists("+omnifunc")
autocmd Filetype *
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
endif
do shell script
"DATE=`date '+%Y%d%m-%H%M%S'`;
FILE=~/Pictures/screenshot-${DATE}.png;
screencapture -i -W -x $FILE;
if [ -e $FILE ];
then open /Applications/Preview.app $FILE;
fi"
@yyq123
yyq123 / gist:1522622
Created December 27, 2011 03:15
Hyperion Planning - Member UDA
select
O.Object_Name as Name,
OA.OBJECT_NAME as Alias,
U.UDA_VALUE as UDA
from hsp_member_to_uda M
inner join hsp_uda U
on M.UDA_ID=U.UDA_ID
inner join hsp_object O
on M.MEMBER_ID=O.OBJECT_ID
inner join hsp_alias A
@yyq123
yyq123 / gist:1611143
Created January 14, 2012 11:50
yyq's _vimrc
set ignorecase smartcase " 搜索时忽略大小写,但在有一个或以上大写字母时仍保持对大小写敏感
set nu " 显示行号
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%)
set guioptions+=b
set guioptions-=T
set paste
"set clipboard=unnamed " 让Vim和Win共用剪贴板
@yyq123
yyq123 / gist:2978518
Created June 23, 2012 14:32
Accordion_ToggleVisibility_Javascript
<script type="text/javascript">
/*
** Name: toggle_visibility
** Desc: toggles id of element to be visible or not
*/
function toggle_visibility(id) {
var e = document.getElementById(id);
if (e.style.display == 'none')
e.style.display = 'block';
else
@yyq123
yyq123 / gist:3766694
Created September 22, 2012 16:37
Back to Top - HTML
<div class="backToTopButton">
<a href="#" title="返回页首"><img src="back_to_top_24.png" alt="TOP" /></a>
</div>
@yyq123
yyq123 / gist:3769211
Created September 23, 2012 07:27
Back to Top - CSS
/* Go Top Link */
div.backToTopButton {
font-family: Georgia;
font-size: 12px;
color: #000000;
background-color: #ffffff;
padding: 3px 10px 20px 10px;
width:50px;
text-align: center;