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
| #!/bin/bash | |
| action=$1; uri=$2; shift; shift; | |
| case "$action" in | |
| GET) | |
| curl -XGET "localhost:9200/$uri?pretty=1" "$@" | |
| ;; | |
| PUT) | |
| curl -XPUT "localhost:9200/$uri?pretty=1" "$@" | |
| ;; |
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
| HDC hdc = GetDC(NULL); // get the desktop device context | |
| HDC hDest = CreateCompatibleDC(hdc); // create a device context to use yourself | |
| // get the height and width of the screen | |
| int height = GetSystemMetrics(SM_CYVIRTUALSCREEN); | |
| int width = GetSystemMetrics(SM_CXVIRTUALSCREEN); | |
| // create a bitmap | |
| HBITMAP hbDesktop = CreateCompatibleBitmap( hdc, width, height); |
NewerOlder