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
'use strict' | |
var context = SP.ClientContext.get_current(); | |
var user = context.get_web().get_currentUser(); | |
var hostUrl = decodeURIComponent(getQueryStringParameter("SPHostUrl")); | |
var appWebUrl = decodeURIComponent(getQueryStringParameter("SPAppWebUrl")); | |
var PeopleID = ''; | |
$(document).ready(function() { | |
ExecuteOrDelayUntilScriptLoaded(StartThread, "sp.js"); | |
}); |
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
<IfModule mod_expires.c> | |
ExpiresActive On | |
ExpiresByType text/css "access plus 86400 seconds" | |
ExpiresByType text/javascript "access plus 86400 seconds" | |
ExpiresByType application/javascript "access plus 86400 seconds" | |
ExpiresByType application/x-javascript "access plus 86400 seconds" | |
</IfModule> | |
<IfModule mod_headers.c> | |
<FilesMatch "\\.(css)$"> |
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
class TestModel extends Eloquent { | |
public static function dynamicTable($table) { | |
$instance = new static; | |
$instance->setTable($table); | |
return $instance; | |
} | |
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 | |
$xml = simplexml_load_file('http://www.yr.no/sted/Sverige/Uppsala/Storvreta/forecast.xml'); | |
$xpath = $xml->xpath('/weatherdata/forecast/tabular/time[1]/temperature/@value'); | |
var_dump((string)$xpath[0]); |