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 <[email protected]> | |
# | |
# 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 ); |
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
/* | |
* Author: Mike Lopez <[email protected]> | |
* Description: Find a 1-hour slot in Google Calendar to schedule our event in | |
*/ | |
// sort events by start date (because nope, they're not sorted) | |
GoogleCalendar.listEventsForDateRange.sort(function(a, b) { | |
if (moment(a.Start).isSame(b.Start)) { | |
return 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
Vagrant.configure("2") do |config| | |
# we use the generic ubuntu 20.04 box | |
config.vm.box = "generic/ubuntu2004" | |
# set the local hostname to myapp.local | |
# you may change this to whatever you like but it's best to keep the .local part | |
config.vm.hostname = 'myapp.local' | |
# sync folders | |
config.vm.allowed_synced_folder_types = [:nfs, :smb, :sshfs, :rsync] |
NewerOlder