Skip to content

Instantly share code, notes, and snippets.

View bl-ue's full-sized avatar

bl-ue

View GitHub Profile
@GHosaPhat
GHosaPhat / Visual Studio solution file headers
Last active May 30, 2021 20:44 — forked from JamesSkemp/Visual Studio solution file headers
Visual Studio solution file headers - 2002 through 2017
*********************************************************************************************
** Below is the header text written in the .sln files produced by Microsoft Visual Studio. **
** By default, each header is preceeded by a new line character (CRLF) in the .sln file. **
** I've identified the specific Visual Studio version used to create each header in place **
** of this blank line and indicated each as such >> VSVERSION <<. **
*********************************************************************************************
** DO NOT INCLUDE ANYTHING FROM THIS LINE IN YOUR .SLN FILE. REPLACE THIS WITH A NEW LINE **
** CHARACTER (CRLF) OR JUST DELETE IT ENTIRELY. OTHERWISE VISUAL STUDIO WILL NOT BE ABLE **
** TO READ THE .SLN FILE TO OPEN THE SOLUTION. **
*********************************************************************************************
@whoshuu
whoshuu / curlget.cpp
Created March 31, 2015 06:44
Example libcurl GET request
#include <curl/curl.h>
#include <string>
size_t writeFunction(void *ptr, size_t size, size_t nmemb, std::string* data) {
data->append((char*) ptr, size * nmemb);
return size * nmemb;
}
int main(int argc, char** argv) {
auto curl = curl_easy_init();
@betrcode
betrcode / README.md
Created June 24, 2014 06:36
Using Python to check if remote port is open and accessible.
@BrockA
BrockA / waitForKeyElements.js
Created May 7, 2012 04:21
A utility function, for Greasemonkey scripts, that detects and handles AJAXed content.
/*--- waitForKeyElements(): A utility function, for Greasemonkey scripts,
that detects and handles AJAXed content.
Usage example:
waitForKeyElements (
"div.comments"
, commentCallbackFunction
);
@wrunk
wrunk / jinja2_file_less.py
Last active December 16, 2025 13:19
python jinja2 examples
#!/usr/bin/env/python
#
# More of a reference of using jinaj2 without actual template files.
# This is great for a simple output transformation to standard out.
#
# Of course you will need to "sudo pip install jinja2" first!
#
# I like to refer to the following to remember how to use jinja2 :)
# http://jinja.pocoo.org/docs/templates/
#