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
Brackets Additional Right Click Menu | |
Brackets Devicons | |
Brackets File Format | |
Brackets SASS | |
Brackets SASS Code Hints | |
Color Highlighter | |
Duplicate Files & Folders | |
Pop-up Menu Brackets | |
Projects | |
Quick Search |
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> | |
/** | |
* stucture to hold the details about the spaces | |
*/ | |
typedef struct node{ | |
int size; // Original requested size | |
char isFree; // 1 if free or 0 if in use | |
struct node *next; // pointer to to next memory chunk | |
} node; |
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
int ledPin = 13; | |
int buttonPin = 2; | |
boolean flag = LOW; | |
boolean buttonState; | |
boolean lastButtonState = LOW; | |
int lastDebounceTime = 0; | |
int debounceDelay = 50; | |
void setup() { |
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 <math.h> | |
#include <sys/time.h> | |
#include <assert.h> | |
#define RANDLIMIT 5 /* Magnitude limit of generated randno.*/ | |
#define N 4 /* Matrix Size */ | |
#define NUMLIMIT 70.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
/********************************************************************** | |
* MPI-based matrix multiplication AxB=C | |
*********************************************************************/ | |
#include <stdio.h> | |
#include "mpi.h" | |
#define N 4 /* number of rows and columns in matrix */ | |
MPI_Status status; |
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 "mpi.h" | |
int main(int argc, char **argv) | |
{ | |
int me, nprocs, namelen; | |
char processor_name[MPI_MAX_PROCESSOR_NAME]; | |
MPI_Init(&argc, &argv); | |
MPI_Comm_size(MPI_COMM_WORLD, &nprocs); |
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 <mpi.h> | |
int main(int argc, char *argv[]) | |
{ | |
int rank, size; | |
MPI_Init(&argc, &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
class Stack: | |
def __init__(self): | |
self.items=[] | |
def isEmpty(self): | |
return self.items==[] | |
def push(self,item): | |
self.items.append(item) |
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 "contiki.h" | |
#include "dev/button-sensor.h" | |
#include "dev/leds.h" | |
#include <stdio.h> | |
PROCESS(blink_process, "Blink"); | |
AUTOSTART_PROCESSES(&blink_process); | |
PROCESS_THREAD(blink_process,ev,data){ | |
PROCESS_BEGIN(); |
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 "contiki.h" | |
#include "dev/button-sensor.h" | |
#include <stdio.h> | |
PROCESS(blink_process, "Blink"); | |
AUTOSTART_PROCESSES(&blink_process); | |
PROCESS_THREAD(blink_process,ev,data){ | |
PROCESS_BEGIN(); | |
SENSORS_ACTIVATE(button_sensor); |