-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d6aa8cb
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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); | ||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Becky | ||
Beyonce |