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
| <?php | |
| // A very simple function for posting gists using cURL | |
| function postGist($gistname,$gistextension,$gistcontents) | |
| { | |
| // clean POST variables | |
| $gistname = urlencode($gistname); | |
| $gistextension = urlencode($gistextension); | |
| $gistcontents = urlencode($gistcontents); | |
| // Define the API endpoint |
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
| PROGRAM gistItDriver | |
| IMPLICIT NONE | |
| CHARACTER(LEN=50) :: gistFile | |
| INTEGER :: gistIt | |
| gistFile = ' ' | |
| CALL SYSTEM("clear") | |
| WRITE(*,*) 'Enter the name of the file to post:' | |
| READ(*,*) gistFile | |
| WRITE(*,*) gistit(TRIM(gistFile),len(trim(gistFile))) | |
| END PROGRAM |
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
| <html> | |
| <body> | |
| <h4>Sample Gist Form</h4> | |
| <form action="http://gist.github.com/gists" method="post"> | |
| Name: | |
| <input name="file_name[gistfile1]" type="text" /> | |
| <br/> | |
| Ext: | |
| <input name="file_ext[gistfile1]" type="text" /> | |
| <br/> |
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
| <html> | |
| <body> | |
| <h4>Sample Gist Form</h4> | |
| <form action="http://gist.github.com/gists" method="post"> | |
| Name: | |
| <input name="file_name[gistfile1]" type="text" /> | |
| <br/> | |
| Content: | |
| <textarea name="file_contents[gistfile1]" cols=40 rows=6></textarea> | |
| <br/> |
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
| <html> <body> <h4>Sample Gist Form</h4> <form action="http://gist.github.com/gists" method="post"> <select name="file_ext[gistfile1]"> <option>html</option> <option>php</option> <option>js</option> </select> Name: <input name="file_name[gistfile1]" type="text" /> Name: <input name="file_contents[gistfile1]" type="textarea" /> <input type="submit" /> </form> </body></html> |
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
| <html> <body> <h4>Sample Gist Form</h4> <form action="http://gist.github.com/gists" method="post"> <select name="file_ext[gistfile1]"> <option>html</option> <option>php</option> <option>js</option> </select> Name: <input name="file_name[gistfile1]" type="text" /> Name: <input name="file_contents[gistfile1]" type="textarea" /> <input type="submit" /> </form> </body></html> |
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
| <!-- Yay comment --> |
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
| <?xml version='1.0' encoding='UTF-8'?> | |
| <!-- NOTE: this host-meta end-point is a pre-alpha work in progress. Don't rely on it. --> | |
| <!-- Please follow the list at http://groups.google.com/group/webfinger --> | |
| <XRD xmlns='http://docs.oasis-open.org/ns/xri/xrd-1.0' | |
| xmlns:hm='http://host-meta.net/xrd/1.0'> | |
| <hm:Host xmlns='http://host-meta.net/xrd/1.0'>huskers.unl.edu</hm:Host> | |
| <Link rel='lrdd' | |
| template='http://helper.unl.edu/webfinger/?q={uri}'> | |
| <Title>Resource Descriptor</Title> | |
| </Link> |
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
| SUBROUTINE quadraticFormula(a,b,c,root1,root2,success) | |
| IMPLICIT NONE | |
| ! Programmer: Nate Benes | |
| ! Purpose: Subroutine to calculate the real roots of a function | |
| REAL, INTENT(IN) :: a,b,c ! Store the inputs of the function | |
| REAL, INTENT(OUT) :: root1, root2 ! Store the outputs of the function | |
| LOGICAL, INTENT(OUT) :: success ! variable to indicate whether we can find the root | |
| REAL :: discriminant |
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
| PROGRAM calculateAverage | |
| IMPLICIT NONE | |
| ! Programmer: Nate Benes | |
| ! Purpose: Calculates the average of integers entered into the console | |
| ! Note: We are guaranteed only integers will be entered | |
| INTEGER :: sum ! Keep a running total | |
| INTEGER :: count ! Keep track of how many numbers were entered |