Skip to content

Instantly share code, notes, and snippets.

View Benargee's full-sized avatar

Benargee Benargee

  • Ontario, Canada
View GitHub Profile
@Benargee
Benargee / fn_taskHint.sqf
Last active January 17, 2016 09:56
BIS_fnc_taskHint fix
/*
Author: Jiri Wainar
Revised by: Benargee
Description:
Display a task hint.
Parameters:
_this select 0: STRING - Task name
_this select 1: STRING - Task state (optional)
@Benargee
Benargee / Flash R LED KEY.cpp
Last active December 6, 2015 05:38
Simple extension that should flash the R key when called after it initializes
#include "stdafx.h"
#include "Include\LogitechLEDLib.h" //http://gaming.logitech.com/developers "LED ILLUMINATION SDK"
#include <string>
#include <thread>
using namespace std;
bool SDK_initOK, SDK_verOK;
int majVer, minVer, BuildNum;
@Benargee
Benargee / client.cpp
Created November 23, 2015 02:28 — forked from whoo24/client.cpp
Basic Winsock Program
#include "stdafx.h"
#include <WinSock2.h>
#include <ws2tcpip.h>
#pragma comment(lib, "Ws2_32.lib")
void run_client()
{
WSADATA wsaData;
WSAStartup( MAKEWORD(2,2), &wsaData );