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
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- | |
Name: DATA SOURCE PAGINATION | |
Version: 1.4 with custom elements | |
Author: Nick Dunn <nick@nick-dunn.co.uk>, extended by Nils Hörrmann <post@nilshoerrmann.de> | |
URL: http://symphony-cms.com/downloads/xslt/file/20482/ | |
Required Parameters: |
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
/* | |
* jQuery Equalize Height 0.2 | |
* Copyright (c) 2012 Simon Ertel (simonertel.net) | |
* Licensed under the MIT LICENSE | |
*/ | |
(function($){ | |
$.fn.equalizeHeight = function(){ | |
var heights = []; | |
return this.each(function(i){ | |
heights.push($(this).height()); |
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 getWave(min, max, steps) { | |
var stepLength = (max - min) / (steps-1); | |
var roundedStepLength = Math.round(stepLength*10)/10; | |
var rounder = roundedStepLength*10 - Math.floor(roundedStepLength)*10; | |
var curStep = 0, | |
i = 0; | |
var steps = []; | |
for(i = min; i+rounder < max; i += Math.floor(roundedStepLength)) { |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<data> | |
<contributions> | |
<pagination | |
total-entries="11" | |
total-pages="2" | |
entries-per-page="10" | |
current-page="1" /> | |
</contributions> | |
</data> |
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 webdeveloper_editCSSIntervalId = null; | |
var webdeveloper_editCSSOldStyleText = new Array(); | |
var webdeveloper_editCSSSelectedTab = 0; | |
var webdeveloper_editCSSUpdateFrequency = 500; | |
// Applies the CSS | |
function webdeveloper_applyCSS() | |
{ | |
var contentDocument = webdeveloper_getContentDocument(); | |
var headElement = webdeveloper_getDocumentHeadElement(contentDocument); |
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
Error.prepareStackTrace = function(error, structuredStackTrace) { | |
console.log('ok.'); | |
}; | |
// Simple test, ok | |
try { | |
console.log('simple test\u2026'); | |
i_dont_exist(); | |
} catch(e) { | |
var access_stack = e.stack; |
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 | |
// From Robbie Player: https://forrst.com/posts/Grab_Youtube_or_Vimeo_Info_with_PHP-0el#comment-150356 | |
function video_url_to_id($url, $provider) { | |
$video_id = FALSE; | |
$url = parse_url($url); | |
switch ($provider) { | |
case 'youtube': |
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 it with jQuery history: http://tkyk.github.com/jquery-history-plugin/ | |
// Hashes should begin with #!/ (see hash.slice(2) below) | |
(function($) { | |
$.history.initRoutes = function (routes) { | |
$(function() { | |
$.history.init(function(hash) { | |
hash = hash.slice(2); | |
var routeFound = false; | |
for (var rpath in routes) { | |
if (routes.hasOwnProperty(rpath)) { |
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
# | |
# css/js minification/compression makefile | |
# | |
# | |
# JS_TARGETS -- js files to minify/gzip | |
# CSS_TARGETS -- css files to minify/gzip | |
# CLEANUP -- additional files to delete during "make clean" | |
# |
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
# JS files | |
JS_FINAL = js/project-name-all.js | |
JS_TARGETS = js/file1.js \ | |
js/file2.js \ | |
js/file3.js | |
# CSS files | |
CSS_FINAL = css/project-name-all.css | |
STYLUS_TARGETS = css/file1.styl \ |
OlderNewer