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
<style> | |
.inner { position: relative; padding-top: 100%; } | |
.inner svg {width: 100%; height: 100%; position: absolute; margin-top: -100%; left: 0; right: 0;} | |
</style> | |
<div class="outer" style="width: 50%;"><!-- This makes the graphic take up 50% of the page or whatever container '.outer' is in. --> | |
<div class="inner"> | |
<svg viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg"> | |
<g> | |
<path fill="rgb(175, 216, 248)" stroke="rgb(0, 0, 0)" stroke-width="1" d="M200,40 A160,160 0 0 1 313.1370849898476,313.1370849898476 A160,160 0 0 1 40,200.00000000000003 L200,200 Z"> |
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
editor.pyreplace(r"\{([0-9a-fA-F]{8})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{4})-([0-9a-fA-F]{12})\}", r"http://www.example.com/~/media/\1\2\3\4\5.ashx") |
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
Windows Registry Editor Version 5.00 | |
; Based on instructions from http://www.php.net//manual/en/configuration.file.php | |
; This registry entry tells php where to find the php.ini file. | |
; The default location is c:\\Windows | |
; You can specify a different ini location for each version of PHP | |
[HKEY_LOCAL_MACHINE\SOFTWARE\PHP] | |
; You store they key in this folder [HKEY_LOCAL_MACHINE\SOFTWARE\PHP\{version}] where {version} = 5.5.12 in this case | |
; The Key is "IniFilePath" | |
; The Value is the path to the folder containing the ini file for the given php version | |
; No trailing \\ is necessary |
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
using System; | |
using System.Data; | |
using System.Collections.Generic; | |
using System.Linq; | |
using Sitecore; | |
using Sitecore.Configuration; | |
using Sitecore.Collections; | |
using Sitecore.Data; | |
using Sitecore.Data.Fields; |
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 ($) { | |
var _loadThen = $.fn.loadThen; | |
/** | |
* An alternative to jQuery's ajax load() function that has the same interface | |
* except it does not take a callback function, but instead it returns a promise. | |
* The promise will be resolved when the content are loaded into the set of matched elements. | |
* @param url {string} A string containing the URL to which the request is sent. | |
* @param params {object or string} A plain object or string that is sent to the server with the request. | |
* @returns {jQuery Promise} with params (html, status, jqXHR). |
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 (scope) { | |
var remove = function (selector) { | |
if(selector instanceof Element && selector.parentElement) | |
selector.parentElement.removeChild(selector); | |
if(typeof selector === "string" && document.querySelectorAll) { | |
var list = document.querySelectorAll(selector) | |
for(var i = 0; i < list.length; i += 1) | |
remove(list[i]); | |
} | |
}; |
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
/*************************************************************************** | |
* FeatureLogger - Saves features detected by Modernizr to google analytics | |
***************************************************************************/ | |
(function () { | |
var _gaq = _gaq || [], | |
Modernizr = Modernizr || {}; | |
for(testName in Modernizr) // For every Modernizr test | |
if(typeof Modernizr[testName] === 'boolean') // If it is a boolean | |
_gaq.push(['_trackEvent', 'modernizr', testName, ((Modernizr[testName]) ? 'Yes' : 'No')]); // Log a yes or no | |
})(); |