This file contains 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 "stdafx.h" | |
#include <WinSock2.h> | |
#include <ws2tcpip.h> | |
#pragma comment(lib, "Ws2_32.lib") | |
void run_client() | |
{ | |
WSADATA wsaData; | |
WSAStartup( MAKEWORD(2,2), &wsaData ); |
This file contains 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 "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; |
This file contains 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
/* | |
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) |
This file contains 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
//CPU&RAM counter by Sharpy | |
using System; | |
using System.Windows.Forms; | |
using System.IO.Ports; | |
using System.Diagnostics; | |
namespace WindowsFormsApplication14 | |
{ | |
public partial class Form1 : Form |
This file contains 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
/* | |
Breathing Led bar | |
By: Benargee | |
*/ | |
int ledPin = 9; // LED connected to digital pin 9 | |
int count = 2; | |
int inerval = 1; //interval in miliseconds between loops | |
int order = 1; //indicates order of decreasing or increasing intensity. 1: increasing -1:decreasing | |
const int minVal = 1; |
This file contains 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 python | |
""" | |
Very simple HTTP server in python. | |
Usage:: | |
./dummy-web-server.py [<port>] | |
Send a GET request:: | |
curl http://localhost |
This file contains 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 lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
This file contains 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 lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
This file contains 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
console.rainbow = function (str) { | |
const colors = [ | |
"red", | |
"orange", | |
"yellow", | |
"green", | |
"blue", | |
"indigo", | |
"violet",//white in VS Code |
OlderNewer