Skip to content

Instantly share code, notes, and snippets.

View kongdd's full-sized avatar

Dongdong Kong kongdd

View GitHub Profile
@ohaval
ohaval / SaveImageFromClipboard.cpp
Last active April 22, 2023 09:03
Save an image from the clipboard to a file
/*
I wanted to play with the clipboard via Windows API so I wrote a small program that
checks if the clipboard contains an image, and if so saves the image as a .bmp file.
This program obtains the handle on the clipboard data, put together all of the
information and raw data a .bmp file holds, and writes it to the disk.
With small changes it's possible to make this code run in a loop and save an image
from the clipboard every X seconds.
@kongdd
kongdd / cloudSettings
Last active October 27, 2021 02:08
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-10-27T02:08:39.819Z","extensionVersion":"v3.4.3"}
@hlissner
hlissner / codesign_gdb.md
Last active September 29, 2024 00:25
Codesign gdb on OSX
@johnmyleswhite
johnmyleswhite / gist:4195980
Created December 3, 2012 16:10
Imitating plyr and reshape in Julia
# A top priority for making DataFrames useful in Julia is the development of
# good documentation and a nice API for doing plyr+reshape style operations
# in Julia. This Gist is a draft of such documentation.
load("DataFrames")
using DataFrames
load("RDatasets")
baseball = RDatasets.data("plyr", "baseball")