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
(defun wrap-item (start end) | |
"Insert a markup \begin{itemize}\end{itemize} around a region." | |
(interactive "r") | |
(save-excursion | |
(goto-char end) (insert "\\end{itemize}\n") | |
(goto-char start) (insert "\\begin{itemize}\n") | |
)) | |
(global-set-key (kbd "C-q") 'wrap-markup-region) |
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 "stdafx.h" | |
#include<windows.h> | |
#include<stdio.h> | |
#include <conio.h> | |
#include <iostream> | |
using namespace std; | |
BOOL SetPrivilege( | |
HANDLE hToken, // access token handle | |
LPCTSTR lpszPrivilege, // name of privilege to enable/disable |