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
// At this time Nancy's Razor view engine doesn't let you set a default base class like ASP.NET web pages does with pageBaseType, if you want to hack one in here is how: | |
// First create your custom type, this one writes out hack for everything, so obviously remove that unless you want that :) | |
public abstract class MyRazorPage<T> : NancyRazorViewBase<T> | |
{ | |
public override void Write(object value) | |
{ | |
base.WriteLiteral("hack"); | |
} |
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 (window) { | |
// This library re-implements setTimeout, setInterval, clearTimeout, clearInterval for iOS6. | |
// iOS6 suffers from a bug that kills timers that are created while a page is scrolling. | |
// This library fixes that problem by recreating timers after scrolling finishes (with interval correction). | |
// This code is free to use by anyone (MIT, blabla). | |
// Original Author: rkorving@wizcorp.jp | |
var timeouts = {}; | |
var intervals = {}; | |
var orgSetTimeout = window.setTimeout; | |
var orgSetInterval = window.setInterval; |
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
--- a/server/modules/http-plugin/web/js/cloud-carousel.1.0.5.js | |
+++ b/server/modules/http-plugin/web/js/cloud-carousel.1.0.5.js | |
@@ -209,6 +207,9 @@ | |
this.rotate = function(direction) | |
{ | |
this.frontIndex -= direction; | |
+ if (this.frontIndex < 0) { | |
+ this.frontIndex = items.length - 1; | |
+ } | |
this.frontIndex %= items.length; |
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 | |
if(isset($_GET['id'])) { | |
$trackID = (int)$_GET['id']; | |
// get download url | |
$trackUrl = file_get_contents('http://www.jamendo.com/get/track/id/track/audio/plain/'.$trackID.'/?aue=ogg2'); | |
if($trackUrl == false) { | |
echo 'track id not availible!'; | |
} else { | |
// get track information | |
$trackTitle = (string)file_get_contents('http://www.jamendo.com/get/album/id/album/title/plain/'.$trackID.'/'); |