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
void setup() | |
{ | |
pinMode(6, OUTPUT); | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
char r = Serial.read(); |
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
// Yaseen M. Twati | |
#ifdef _WIN32 // Windows | |
#include <winsock2.h> | |
#include <ws2tcpip.h> | |
#define MSG_NOSIGNAL 0 | |
#else // Linuc + Max | |
#include <sys/types.h> | |
#include <sys/socket.h> |
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 <iostream> | |
int main() | |
{ | |
int i = 0; | |
for(i = 1; i < 100; i++) | |
{ | |
if (i > 5) | |
continue; | |
i*=i; |