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
| #include <stdio.h> | |
| int main() { | |
| char student_name[100]; | |
| int answer[5]; | |
| int score = 0; | |
| int i; | |
| int status; | |
| printf("Enter student name: "); |
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 | |
| echo "Enter student name: "; | |
| $student_name = trim(fgets(STDIN)); | |
| for($i = 1; $i <= 5; $i++) { | |
| echo "Enter Answer #$i: "; | |
| $answer[] = trim(fgets(STDIN)); | |
| } | |
| $score = 0; |
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
| #include <TinyGPS++.h> | |
| #include <SoftwareSerial.h> | |
| /** | |
| * counterACT GPS Tracking System | |
| * | |
| * This program uses the TinyGPS++ library to track the location of a device | |
| * and send an SMS message to a recipient when the location changes significantly. | |
| * | |
| * Team Members: |
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
| Hindi Ipinagkait | |
| --- | |
| Intro: | |
| C /// Bm7 / Em / | |
| C /// Bm7 / Em / | |
| Am /// Dsus4 / A | |
| --- |
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
| # Quick WordPress setup with Docker Compose. Includes wp-c | |
| # By: Mike Lopez <e@mikelopez.com> | |
| # | |
| # Use .env file to change configuration variables. | |
| # Configuration variables and their default values are: | |
| # MYSQL_ROOT_PASSWORD=mysql_root_password_123 | |
| # UID=1000 | |
| # GID=1000 | |
| # PORT=80 | |
| # DBNAME=wordpress |
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
| #!/bin/bash | |
| # executables | |
| SVNLOOK="/usr/bin/svnlook" | |
| PHPCS="/path/to/composer/vendor/bin/phpcs" | |
| # parameters | |
| REPOS="$1" | |
| TXN="$2" |
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
| import geopy | |
| from geopy.distance import distance | |
| # point of reference | |
| lat = 8.000688 #8 00' 02.478" | |
| lon = 125.023 #125 01' 22.960" | |
| # coordinates from point of reference | |
| coords = [ | |
| { |
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
| #!/bin/bash | |
| # Help | |
| if [ "help" == "$1" ] | |
| then | |
| less <<EOF | |
| Resize and position a window. | |
| Usage: | |
| rpw window_substring [dimension [position]] |
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 | |
| /** | |
| * Sample code for wishlistmember_add_user_levels and wishlistmember_remove_user_levels hooks | |
| * @author Mike Lopez, WishList Products | |
| */ | |
| // when membership level are added to a user | |
| add_action( 'wishlistmember_add_user_levels', 'foo', 10, 3 ); |
NewerOlder