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
<?php | |
function convert_external_link_tags($html) | |
{ | |
$pattern = '/<link\s(.+)\s-\s(.*)?\s(".*")?>(.+)<\/link>/U'; | |
$replacement = '<a href="$1" target="$2" title=$3>$4</a>'; | |
preg_match_all($pattern, $html, $matches, PREG_PATTERN_ORDER); | |
return preg_replace($pattern, $replacement, $html); | |
} |
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
<?php | |
$url = 'https://astra.nnu.edu/AstraProd'; | |
$responderUrl = "/~api/calendar/calendarList?action=get"; | |
$responderParameter = 'fields=ActivityID,ActivityName,Description,SectionMeetInstanceByActivityId.SectionMeetingID,EventMeetingByActivityId.EventId,ParentActivityName,StartDate,EndDate,StartMinute,EndMinute,SectionMeetInstanceByActivityId.SectionMeeting.PrimaryInstructor.Person.ContactInformation.Email,SectionMeetInstanceByActivityId.SectionMeeting.PrimaryInstructor.Person.FirstName,SectionMeetInstanceByActivityId.SectionMeeting.PrimaryInstructor.Person.LastName,ActivityTypeCode,Location.Room.Id,BuildingCode,RoomNumber,LocationName,RoomName&filter=((StartDate>%3D"01%2F01%2F2017")%26%26(EndDate<"06%2F01%2F2017")%26%26(ActivityTypeCode=="251"))&sortOrder=StartDate&limit=1000&view=json'; | |
$curl = curl_init(); |
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
# Add class to body tag | |
page.bodyTag > | |
page.bodyTagCObject = TEXT | |
page.bodyTagCObject.value= industrial | |
page.bodyTagCObject.wrap = <body class="|"> |
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
#!/usr/bin/env bash | |
# Upgrade Base Packages | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install Web Packages | |
sudo apt-get install -y apache2 | |
rm -rf /var/www | |
ln -fs /vagrant /var/www |
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
<script> | |
var configYouTubePlayer = { | |
// The YouTube video ID that identifies the video that the player will load. | |
videoID: 'Rk6_hdRtJOE', | |
// The height of the video player. The default value is 390. | |
height: 390, | |
// The width of the video player. The default value is 640. | |
width: 640, |
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
var majors = new Array( | |
"Accounting", | |
"Applied Studies", | |
"Art", | |
"Biblical Studies", | |
"Biology", | |
"Business Administration", | |
"Chemistry", | |
"Christian Ministry", | |
"Communication", |
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
var grad_degrees = new Array( | |
"EDS - Director of Special Education: Exceptional Child", | |
"EDS - Dirirector of Special Education: Education Leadership", | |
"EDS - Educational Leadership: Superintendent", | |
"EDS - Educational Leadership: Building Administrator", | |
"EDD - Educational Leadership", | |
"MA - Christian Education", | |
"MA - Missional Leadership", | |
"MA - Pastoral Ministry", | |
"MA - Spiritual Formation", |
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
function Model() { | |
this.init = function() { | |
alert('model init'); | |
} | |
} | |
module.exports = function() { | |
return new Model(); |
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
<?php | |
getHistoricalData($symbol, $startDate, $endDate); // Returns json object of basic historical data | |
getHistoricalData( 'IDA', date('Y-m-d', strtotime('-14 days')), date('Y-m-d',time()) ); | |
getQuotes($symbols); // Returns json object with comprehensive trade info for each stock | |
getQuotes(array('AAPL', 'GOOG')); | |
getQuotesList($symbols); // Returns a summarized view of getQuotes | |
getQuotesList(array('AAPL', 'GOOG')); |
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
<?php | |
require 'yahoo-finance-api/lib/YahooFinance/YahooFinance.php'; | |
$yf = new YahooFinance; | |
$quote = json_decode($yf->getQuotes(array('IDA', 'MCEP', 'UWTI'))); | |
?> | |
<table> | |
<tr> |