windows
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
#!/usr/bin/env bash | |
# ============================================================================= | |
# FileName: Install_OpenSSL_GIT.sh | |
# Desc: Build GIT with OpenSSL and Install it | |
# Environment: Ubuntu 13.04 amd64 | |
# Usage: ./Install_OpenSSL_GIT.sh | |
# Author: KuoE0 <[email protected]> | |
# HomePage: http://kuoe0.tw/ | |
# Copyright: BSD License (C) 2013 KuoE0 | |
# ============================================================================= |
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
<DefaultShortcuts/> | |
<ShortcutsScheme>Visual C++ 6</ShortcutsScheme> | |
<UserShortcuts><Shortcut Command="Edit.ScrollLineUp" Scope="文本编辑器">Ctrl+K</Shortcut><Shortcut Command="Edit.ScrollLineDown" Scope="文本编辑器">Ctrl+J</Shortcut><Shortcut Command="Edit.ScrollPageUp" Scope="文本编辑器">Ctrl+Shift+K</Shortcut><Shortcut Command="Edit.ScrollPageDown" Scope="文本编辑器">Ctrl+Shift+J</Shortcut><Shortcut Command="Edit.PreviousBookmarkInFolder" Scope="全局">Ctrl+Shift+E, Ctrl+Shift+P</Shortcut><Shortcut Command="Edit.NextBookmarkInFolder" Scope="全局">Ctrl+Shift+E, Ctrl+Shift+N</Shortcut><Shortcut Command="Edit.SwapAnchor" Scope="文本编辑器">Ctrl+E, Ctrl+A</Shortcut><Shortcut Command="Edit.DeleteHorizontalWhiteSpace" Scope="文本编辑器">Ctrl+E, Ctrl+\</Shortcut><Shortcut Command="Edit.ClearBookmarks" Scope="文本编辑器">Ctrl+E, Ctrl+L</Shortcut><Shortcut Command="Edit.ToggleBookmark" Scope="文本编辑器">Ctrl+E, Ctrl+K</Shortcut><Shortcut Command="Edit.EnableBookmark" Scope="文本编辑器">Ctrl+E, Ctrl+B</Shortcut><Shortcut Command="Edit.FormatSelection" Scope="文本编辑器" |
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
// EnumString - A utility to provide stringizing support for C++ enums | |
// Author: Francis Xavier Joseph Pulikotil | |
// Improved by: linnet8989 | |
// | |
// This code is free software: you can do whatever you want with it, | |
// although I would appreciate if you gave credit where it's due. | |
// | |
// This code is distributed in the hope that it will be useful, | |
// but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
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
# open a new powershell | |
# full version: | |
$arg = '-NoExit -Command "& {cd '+ "'" + $pwd + "'"+ '}"' | |
Start-Process Powershell -ArgumentList $arg -Verb runAs | |
# simplified version: | |
$arg = '-noexit -c "& {cd '+ "'" + $pwd + "'"+ '}"' | |
start powershell -a $arg -v runas | |
# open a new cmd | |
# full version: |
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
// Example for pfnRead | |
int ReadThunk(int* pData, FILE* pFile) | |
{ | |
fread(pData, sizeof(*pData), 1, pFile); | |
// EOF ? | |
if (*pData == 0) | |
{ | |
return 0; | |
} | |
} |
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
# -*- coding: UTF-8 -*-\ | |
s = " \ | |
string Name; \ | |
int Number; \ | |
" | |
s2 = "\ | |
private %s m_%s;\n\ | |
public %s %s\n\ | |
{\n\ | |
get => m_%s;\n\ |
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 <tchar.h> | |
int _tmain(int argc, TCHAR *argv[], char *envp[]) | |
{ | |
} |
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
void swap(int arr[], int i, int j) | |
{ | |
int temp = arr[i]; | |
arr[i] = arr[j]; | |
arr[j] = temp; | |
} | |
//bubble | |
void f1(int arr[], int length) | |
{ |
NewerOlder