This file contains hidden or 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
| INCLUDEPATH += $$PWD | |
| contains(absl, dynamic_annotations) { | |
| SOURCES += \ | |
| $$PWD/absl/base/dynamic_annotations.cc \ | |
| } | |
| contains(absl, spinlock_wait) { | |
| SOURCES += \ | |
| $$PWD/absl/base/internal/spinlock_posix.inc \ |
This file contains hidden or 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
| nnoremap <silent> [unite]g :<C-u>exe 'UniteWithCursorWord grep:. -buffer-name=grep_'.expand('<cword>')<CR> | |
| nnoremap [unite]r :<C-u>UniteResume grep<Tab> |
This file contains hidden or 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! s:RunFunc(flag) | |
| let cmdline = { 'c': 'gcc', 'cpp': 'g++' } | |
| if exists('cmdline[&ft]') | |
| exec 'VimProcBang '.cmdline[&ft].' %:t -Wall -g -o %:t:r.exe' | |
| let output = expand('%:t:r').'.exe' | |
| " 确保编译成功且生成exe | |
| if a:flag == 1 && vimproc#get_last_status() == 0 | |
| \ && filereadable(output) | |
| echo vimproc#cmd#system(output) |
This file contains hidden or 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 s:FasdFunc(cmd, words) | |
| let ret = '' | |
| if a:cmd == 'e' | |
| let ret = system('fasd -f ' . a:words) | |
| elseif a:cmd == 'cd' | |
| let ret = system('fasd -d ' . a:words) | |
| endif | |
| if len(ret) > 0 | |
| exec printf(':%s %s', a:cmd, ret) |
This file contains hidden or 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
| void CGIFAnimate::PreCreate(CREATESTRUCT &cs) | |
| { | |
| // 添加自绘样式 CButton 是BS_OWNERDRAW | |
| cs.style |= SS_OWNERDRAW; | |
| } |
This file contains hidden or 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
| m_Gif.Create(*this); | |
| m_Gif.SetDlgCtrlID(IDC_GIF1); | |
| m_Gif.Load(L"../1.gif"); | |
| m_Gif.SetWindowPos(NULL, CRect(0,0,50,50), SWP_SHOWWINDOW); | |
| m_Gif.Play(); | |
| m_Gif2.Create(*this); | |
| m_Gif2.SetDlgCtrlID(IDC_GIF2); | |
| m_Gif2.Load(L"../1000.gif"); | |
| m_Gif2.SetWindowPos(NULL, CRect(50,0,100,50), SWP_SHOWWINDOW); |
This file contains hidden or 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 "GIFAnimate.h" | |
| CGIFAnimate::CGIFAnimate() | |
| : m_pImage(NULL), | |
| m_pDimensionID(NULL), | |
| m_pItem(NULL), | |
| m_CurrentFrame(1) | |
| { | |
| // Initialize GDI+. | |
| GdiplusStartupInput gdiplusStartupInput; |
This file contains hidden or 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
| define CGIFANIMATE_H | |
| #include <gdiplus.h> | |
| #include "precompile.h" | |
| using namespace Gdiplus; | |
| class CGIFAnimate : public CStatic | |
| { | |
| public: |
This file contains hidden or 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
| hash := "" | |
| exe := "D:\Portable\CentBrowser\chrome.exe" | |
| Loop HKEY_LOCAL_MACHINE,SOFTWARE\RegisteredApplications, 1, 1 | |
| { | |
| If (A_LoopRegType <> "KEY") | |
| RegRead Value | |
| StringGetPos, pos, A_LoopRegName, Cent Browser | |
| if(pos >= 0) |
This file contains hidden or 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 | |
| phpinfo(); |