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
| /// <summary> | |
| /// 窗体动画函数 注意:要引用System.Runtime.InteropServices; | |
| /// </summary> | |
| /// <param name="hwnd">指定产生动画的窗口的句柄</param> | |
| /// <param name="dwTime">指定动画持续的时间</param> | |
| /// <param name="dwFlags">指定动画类型,可以是一个或多个标志的组合。</param> | |
| /// <returns></returns> | |
| [DllImport("user32")] | |
| private static extern bool AnimateWindow(IntPtr hwnd, int dwTime, int dwFlags); | |
| //下面是可用的常量,根据不同的动画效果声明自己需要的 |
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
| #/usr/bin/env python3 | |
| #coding=utf8 | |
| import urllib | |
| from urllib import request | |
| from xml.dom.minidom import parse, parseString, Node | |
| # http://dict-co.iciba.com/api/dictionary.php?w=go&key=0D90F9AF76633667613F22F9137AE868 | |
| urltemplate = "http://dict-co.iciba.com/api/dictionary.php?%s" |
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
| import java.io.File; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.HashMap; | |
| import java.util.HashSet; | |
| import java.util.Map; | |
| import java.util.Set; | |
| import java.util.stream.Collectors; |
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 ShutDown :boolean; | |
| const | |
| ADJUST_PRIV = TOKEN_QUERY or TOKEN_ADJUST_PRIVILEGES; | |
| SHTDWN_PRIV = 'SeShutdownPrivilege'; | |
| PRIV_SIZE = sizeOf(TTokenPrivileges); | |
| var | |
| Len: DWORD; | |
| TokenPriv, Dummy: TTokenPrivileges; | |
| Token: THandle; | |
| Error: integer; |
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 <Windows.h> | |
| int _tmain(int argc, _TCHAR* argv[]) | |
| { | |
| HANDLE hToken; | |
| OpenProcessToken(GetCurrentProcess(), | |
| TOKEN_ADJUST_PRIVILEGES | | |
| TOKEN_QUERY, | |
| &hToken); |
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 <windows.h> | |
| #pragma comment(lib, "advapi32.lib") | |
| BOOL ShutdownSystem(LPTSTR lpMsg){ | |
| HANDLE hToken; // handle to process token | |
| TOKEN_PRIVILEGES tkp; // pointer to token structure | |
| BOOL fResult; // system shutdown flag | |
| // Get the current process token handle so we can get shutdown |
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
| package com.company; | |
| import java.io.IOException; | |
| import java.nio.file.Files; | |
| import java.nio.file.Path; | |
| import java.nio.file.Paths; | |
| import java.util.Optional; | |
| import java.util.stream.Stream; | |
| public class Main { |
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 vk_PutXls | |
| ;;;Âåðñ³ÿ 0.10 | |
| ;;;³ä 20.08.2008 | |
| (FileName SheetName | |
| InList / | |
| ExcelObj BooksObj | |
| BookObj SheetObj | |
| SheetsObj CellsObj | |
| RowCounter ColumnCounter | |
| IntFormat RealFormat |
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
| using std::vector; | |
| using std::string; | |
| using std::cout; | |
| using std::cin; | |
| using std::endl; | |
| string ConvertMoney(double dNum) | |
| { | |
| string strResult;//要返回的字符串 | |
| char c_Digit[20];//c风格的字符数组 |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Bootstrap</title> | |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <!-- 引入 Bootstrap --> | |
| <link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"> | |
| <!-- HTML5 Shim 和 Respond.js 用于让 IE8 支持 HTML5元素和媒体查询 --> | |
| <!-- 注意: 如果通过 file:// 引入 Respond.js 文件,则该文件无法起效果 --> |