This file contains hidden or 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; | |
my $site="http://www.nytimes.com"; | |
#Set up image_urls and links variables | |
my @image_urls; | |
my @links; | |
open (my $fh, "curl $site |") or die "$!\n"; |
This file contains hidden or 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
//CS330 - Estimating Pi | |
//Author: Matt Burris | |
//f, main, trap, simpsons methods taken from pi-main by Wayne Cochran @ http://ezekiel.vancouver.wsu.edu/~cs330/ | |
#include <stdio.h> | |
#include <math.h> | |
#include <assert.h> | |
#ifndef M_PI | |
#define M_PI 3.14159265358979323846264338327950288 | |
#endif |