Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
FuadBalashov committed Mar 3, 2016
0 parents commit d6aa8cb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# GitHackathon
A small repo to introduce developers to Git

## Resources
* [Link to presentation that is not publicly available yet](www.google.com)

## How the F*** do I use this?
* Did you read our resources? Check out the first one, it gives background on git and an explanation of the exercises to do with this repo.
* To run the fruits of your labor locally:
** checkout this repo
** in the command line, navigate to its root directory
** run `php hackyScript.php` in the command line
15 changes: 15 additions & 0 deletions hackyScript.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?php
// Open teh participants file
$myfile = fopen("participants.txt", "r") or die("Unable to open file!");

echo "Congratulations to:\r\n";

// Parse line by line and print the participant
while(!feof($myfile)) {
echo fgets($myfile);
}

echo "\r\nYou have learned to git!\r\n";
// Close that file
fclose($myfile);
?>
2 changes: 2 additions & 0 deletions participants.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Becky
Beyonce

0 comments on commit d6aa8cb

Please sign in to comment.