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 <assert.h> | |
#include <stdlib.h> | |
typedef struct Node_t | |
{ | |
int data; | |
struct Node_t* next; | |
}node_t; |
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 <assert.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
typedef struct Vector_t | |
{ | |
unsigned int* data; | |
unsigned int current_size; | |
unsigned int total_length; |
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
#!/bin/bash | |
sum=0; | |
for (( i = 0; i < 10; i++ )); do | |
begin=`date +%s%N` | |
##################################################### | |
#############The Program Should Run Here############# | |
##################################################### |
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
# | |
# "makefile" for the CPU scheduler simulation. | |
# | |
CC=gcc | |
CFLAGS=-c -Wall -g -W -std=c99 -ansi -pedantic | |
all: gentasks simsched | |
gentasks.o: gentasks.c |
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
#!/bin/bash | |
./simvm --file=trace01.out --framesize=9 --numframes=200 --scheme=fifo > fifo.txt | |
./simvm --file=trace02.out --framesize=9 --numframes=200 --scheme=fifo | tee -a fifo.txt | |
./simvm --file=trace03.out --framesize=9 --numframes=200 --scheme=fifo | tee -a fifo.txt | |
./simvm --file=trace04.out --framesize=9 --numframes=200 --scheme=fifo | tee -a fifo.txt | |
./simvm --file=trace05.out --framesize=9 --numframes=200 --scheme=fifo | tee -a fifo.txt | |
./simvm --file=trace01.out --framesize=9 --numframes=200 --scheme=lru > lru.txt | |
./simvm --file=trace02.out --framesize=9 --numframes=200 --scheme=lru | tee -a lru.txt | |
./simvm --file=trace03.out --framesize=9 --numframes=200 --scheme=lru | tee -a lru.txt |
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 <unistd.h> | |
#include <pthread.h> | |
#include <semaphore.h> | |
#include <signal.h> | |
#define N 5 // The number of producers/customers | |
#define M 10 // The size of the buffer |
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
This post examines the features of [R Markdown](http://www.rstudio.org/docs/authoring/using_markdown) | |
using [knitr](http://yihui.name/knitr/) in Rstudio 0.96. | |
This combination of tools provides an exciting improvement in usability for | |
[reproducible analysis](http://stats.stackexchange.com/a/15006/183). | |
Specifically, this post | |
(1) discusses getting started with R Markdown and `knitr` in Rstudio 0.96; | |
(2) provides a basic example of producing console output and plots using R Markdown; | |
(3) highlights several code chunk options such as caching and controlling how input and output is displayed; | |
(4) demonstrates use of standard Markdown notation as well as the extended features of formulas and tables; and | |
(5) discusses the implications of R Markdown. |
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> | |
#include <cstdlib> | |
#include <cmath> | |
using namespace std; | |
static const int WINDOW = 120000; | |
float sdnn_function (float*, int); | |
float rmssd_function (float*, int); |
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> | |
#include <cstdlib> | |
#include <cstdio> | |
using namespace std; | |
int main() | |
{ | |
int numero_de_lados; | |
// cin >> numero_de_lados; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer