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 <ESP8266WiFi.h> | |
const char* ssid = "Wi-Fi_Network"; | |
const char* password = "network#123"; | |
WiFiServer server(80); | |
void setup() { | |
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED_BUILTIN pin as an output | |
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 <stdio.h> | |
#include <limits.h> | |
int main(){ | |
int maxValue = INT_MAX; | |
int minValue = INT_MIN; | |
int overflow = 0; | |
int underflow = 0; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define BITS 64 | |
/** | |
* @desc Algorithm to convert decimal to hexadecimal. | |
* | |
* Compile: gcc decimal-hexa.c -o toHex |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
/** | |
* @desc Algorithm to convert binary to decimal number. | |
* | |
* Compile: gcc binary-to-decimal.c -o toDecimal -lm | |
* Run: ./toDecimal 10100101 | |
* |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#define BIT_0 "0" | |
#define BIT_1 "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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/** | |
* @desc Algorithm to reverse a string passed by command line as argument. | |
* | |
* Compile: * gcc -o reverse.c -o reverse | |
* Run: ./reverse SAMARA | |
* |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/** | |
* @desc Algorithm to reverse a string passed by command line as argument. | |
* | |
* Compile: * gcc -o invert-string.c -o invert | |
* Run: ./invert SAMARA | |
* |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <math.h> | |
#define BIT_0 "0" | |
#define BIT_1 "1" | |
int main(int argc , char **argv){ |
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 <stdio.h> | |
int main(int argc , char **argv){ | |
for (int i=0; i < argc; ++i) | |
{ | |
printf("argv[%d]: %s \n", i, argv[i]); | |
} | |
} |
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
/** | |
* Task to pull out specific files from bower packages. | |
*/ | |
module.exports = function (grunt) { | |
grunt.config.set('bower', { | |
install: { | |
options: { | |
layout: function(type, component) { | |
return type; | |
}, |