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/perl | |
use strict; | |
use warnings; | |
use threads; | |
use Net::Ping; | |
my @hosts = map{'192.168.13.' . $_} (1 .. 254); | |
my $max_threads = scalar @hosts; |
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
/** | |
* Inicialização de um mutex conforme manda o figurino | |
*/ | |
{ | |
int status = 0; | |
char buffer[80]; | |
pthread_mutexattr_t attr; | |
status = pthread_mutexattr_init(&attr); |
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 <time.h> | |
#define MAX 512 | |
int array[MAX][MAX][MAX]; | |
int main(void) { | |
int i, j, k; | |
clock_t t1, t2; |
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
/* | |
* foo.c | |
* | |
* Created on: Sep 27, 2010 | |
* Author: wesley | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.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
#!/usr/bin/perl | |
use 5.010; | |
use strict; | |
use warnings; | |
package Model; | |
use ORLite { | |
'file' => 'bars.db', |
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
; +----+----+----+ | |
; | 1 | 2 | 3 | row0 | |
; +----+----+----+ | |
; | 4 | 5 | 6 | row1 | |
; +----+----|----+ | |
; | 7 | 8 | 9 | row2 | |
; +----+----+----+ | |
; | A | 0 | B | row3 | |
; +----+----+----+ | |
; col0 col1 col2 |
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
/** | |
* search.cpp | |
* | |
* Created on: Nov 28, 2010 | |
* Author: blabos | |
*/ | |
#include <iostream> | |
#include <queue> | |
#include <stack> |
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
/* | |
* kruskal.cpp | |
* | |
* Created on: Nov 28, 2010 | |
* Author: blabos | |
*/ | |
#include <iostream> | |
#include <set> | |
#include <queue> | |
#include <stack> |
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
/** | |
* bellman-ford.cpp | |
* | |
* Created on: Nov 29, 2010 | |
* Author: blabos | |
*/ | |
#include <iostream> | |
using namespace std; |
OlderNewer