Crop a photo from the top:
{{ field.image().fit(400, 400, null, 'top')|raw }}
| layout: degree.njk | |
| title: "Business" | |
| id: 1 | |
| type: "Bachelor of Science" | |
| categories: | |
| - business | |
| - finance | |
| - accounting | |
| contact: | |
| name: "Chair, Department of Business" |
Crop a photo from the top:
{{ field.image().fit(400, 400, null, 'top')|raw }}
| <?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(); |
| <?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')); |
| <?php | |
| require 'yahoo-finance-api/lib/YahooFinance/YahooFinance.php'; | |
| $yf = new YahooFinance; | |
| $quote = json_decode($yf->getQuotes(array('IDA', 'MCEP', 'UWTI'))); | |
| ?> | |
| <table> | |
| <tr> |
| {{ streams:cycle stream="employement_positions" limit="1" where="`position_slug`='[segment_2]'" }} | |
| {{ entries }} | |
| {{ if description != "" }} | |
| <h3>Description of Position</h3> | |
| <p>{{ description }}</p> | |
| {{ endif }} | |
| {{ /entries }} | |
| {{ /streams:cycle }} |
| <VirtualHost *:80> | |
| ServerAdmin [email protected] | |
| ServerName yourdomain.com | |
| ServerAlias www.yourdomain.com | |
| DocumentRoot /home/yourdomain/public_html | |
| <Directory /> | |
| Options None | |
| AllowOverride None | |
| Order Deny,Allow | |
| Deny from all |
| <VirtualHost *:443> | |
| SSLEngine On | |
| SSLCertificateFile /etc/apache2/ssl/yourdomain_com.crt | |
| SSLCertificateKeyFile /etc/apache2/ssl/yourdomain_com.key | |
| SSLCACertificateFile /etc/apache2/ssl/yourdomain_com.cer | |
| ServerAdmin [email protected] | |
| ServerName www.yourdomain.com | |
| DocumentRoot /var/www/yourdomain.com/public_html/ | |
| ErrorLog /var/www/yourdomain.com/logs/error.log |
| image original dimensions (???x???) | |
| files/large/1 | |
| files/thumb/1/auto/auto | |
| files/thumb/1/auto/auto/fill | |
| files/thumb/1/auto/auto/fit | |
| max default dimensions (100x100) with aspect ratio | |
| files/thumb/1 |
| <div class="grid_8 alpha"> | |
| <div class="posts"> | |
| {{ articles:preview limit="4" where="`messenger_issue`='summer_2014'" }} | |
| <div class="post"> | |
| <h2><a href="story/{{ article_slug }}">{{ article_title }}</a></h2> | |
| <div class="meta"> | |
| <p class="pub_date">{{ helper:date timestamp=article_created }}</p> | |
| </div> | |
| {{ if thumb_id }} |