##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
param([string]$site=$(throw "Site argument is required.")) | |
function vdir-exists([string]$name) | |
{ | |
if((Test-Path -path $name) -eq $False) | |
{ | |
return $False | |
} | |
(Get-Item $name).GetType().Name -eq "ConfigurationElement" |
(function ($) { | |
$.validator.addMethod("notequal", function (value, element, param) { | |
return this.optional(element) || value != $(param).val(); | |
}, "This has to be different..."); | |
$.validator.unobtrusive.adapters.add("notequal", ["field"], function (options) { | |
options.rules["notequal"] = options.params.field; | |
if (options.message) options.messages["notequal"] = options.message; | |
}); | |
})(jQuery); |
##Install Xcode command line tools
Xcode>Preferences>Downloads
Enable root if not already enabled: http://support.apple.com/kb/PH11331?viewlocale=en_US
##Apache
Apache is already installed, just not running.
document.addEventListener("fullscreenchange", function () { | |
fullscreenState.innerHTML = (document.fullscreen)? "" : "not "; | |
}, false); | |
document.addEventListener("mozfullscreenchange", function () { | |
fullscreenState.innerHTML = (document.mozFullScreen)? "" : "not "; | |
}, false); | |
document.addEventListener("webkitfullscreenchange", function () { | |
fullscreenState.innerHTML = (document.webkitIsFullScreen)? "" : "not "; |
import { | |
DefaultUrlSerializer, | |
convertToParamMap, | |
ParamMap, | |
Params, | |
UrlSegment, | |
UrlSegmentGroup, | |
PRIMARY_OUTLET | |
} from '@angular/router'; | |
import { ReplaySubject } from 'rxjs'; |
Choose a ticket class: <select id="tickets"></select> | |
<p id="ticketOutput"></p> | |
<script id="ticketTemplate" type="text/x-jquery-tmpl"> | |
{{if chosenTicket}} | |
You have chosen <b>${ chosenTicket().name }</b> | |
($${ chosenTicket().price }) | |
<button data-bind="click: resetTicket">Clear</button> | |
{{/if}} |
public interface IBackgroundWorker | |
{ | |
Task<TOutput> Run<TInput, TOutput>(Func<TInput, TOutput> action); | |
Task Run(Action action); | |
Task Run<TInput>(Action<TInput> action); | |
} | |
public sealed class BackgroundWorker : IBackgroundWorker | |
{ | |
public Task<TOutput> Run<TInput, TOutput>(Func<TInput, TOutput> action) |
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:10001; overflow:hidden;} | |
#cboxOverlay{position:fixed; width:100%; height:100%;} | |
#cboxMiddleLeft, #cboxBottomLeft{clear:left;} | |
#cboxContent{position:relative;} | |
#cboxLoadedContent{overflow:auto;} | |
#cboxTitle{margin:0;} | |
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;} | |
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;} | |
.cboxPhoto{float:left; margin:auto; border:0; display:block;} | |
.cboxIframe{width:100%; height:100%; display:block; border:0;} |
http://admin:admin@192.168.1.239:9981/api/serverinfo | |
{"sw_version": "4.0.8~wheezy","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","trace"]} | |
http://admin:admin@192.168.1.239:9981/api/epg/events/grid | |
- returns tv listings guilde | |
http://admin:admin@192.168.1.239:9981/api/channel/list | |
- returns list of all tv/radio channels | |
{"entries":[ {"key": "8da5751f0c30fc8317d7d5875ce87bd4","val": "Markiza"}, ... } |