This file contains hidden or 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
<xsl:template name="months"> <!-- display a list of linked month numbers (from 12 to 00) counting back from current month for archive pages --> | |
<xsl:param name="thismonth" select="$this-month"/> <!-- month number --> | |
<xsl:param name="countmonths" select="12"/> <!-- months in a year --> | |
<xsl:if test="$countmonths > 0"> | |
<xsl:choose> | |
<xsl:when test="$thismonth > 0"> <!-- if it's bigger than 0 --> | |
<xsl:choose> | |
<xsl:when test="string-length($thismonth) = 1"> <!-- if there's no preceding zero --> | |
<a href="{$root}/blog/archive/{$this-year}-0{$thismonth}"> | |
<li class="month-0{$thismonth}"> |
This file contains hidden or 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 | |
require_once(TOOLKIT . '/class.datasource.php'); | |
Class datasourcefacebookdata extends Datasource{ | |
public $dsParamROOTELEMENT = 'facebookdata'; | |
public $dsParamURL = 'https://graph.facebook.com/davidpmccormick/feed?access_token=240983112675860%7CXJ-2ylXI7gJWVUMmz1nPoBKy9Ik'; | |
public $dsParamXPATH = '/'; | |
public $dsParamCACHE = '30'; |
This file contains hidden or 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 | |
/** | |
* JSON to XML Converter | |
* | |
* @author Brent Burgoyne | |
* @link http://brentburgoyne.com | |
*/ | |
class Json_to_xml |
This file contains hidden or 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 | |
require_once(TOOLKIT . '/class.gateway.php'); | |
require_once(TOOLKIT . '/class.xsltprocess.php'); | |
require_once(CORE . '/class.cacheable.php'); | |
if(isset($this->dsParamURL)) $this->dsParamURL = $this->__processParametersInString($this->dsParamURL, $this->_env, true, true); | |
if(isset($this->dsParamXPATH)) $this->dsParamXPATH = $this->__processParametersInString($this->dsParamXPATH, $this->_env); | |
$stylesheet = new XMLElement('xsl:stylesheet'); |
This file contains hidden or 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 | |
require_once(TOOLKIT . '/class.datasource.php'); | |
Class datasourceaccess_token extends Datasource{ | |
function about(){ | |
return array('name' => 'access token'); | |
} | |
This file contains hidden or 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
<project> | |
<section id="3" handle="projects">Projects</section> | |
<entry id="51"> | |
<title handle="nokia-people">Nokia People</title> | |
<images field-id="4" subsection-id="1" items="23"> | |
<item id="43"> | |
<image size="1.03 MB" path="/assets/images" type="image/jpeg"> | |
<filename>page-1-mike-1348214361.jpg</filename> | |
<meta creation="2012-09-21T08:59:21+01:00" width="885" height="1328" /> | |
</image> |
This file contains hidden or 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
{ | |
"bold_folder_labels": false, | |
"caret_style": "phase", | |
"color_scheme": "Packages/User/DMC (SL).tmTheme", | |
"detect_indentation": true, | |
"detect_slow_plugins": false, | |
"dictionary": "Packages/Language - English/en_GB.dic", | |
"file_exclude_patterns": | |
[ | |
".DS_Store", |
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember Twiddle' | |
}); |
This file contains hidden or 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 unwrapChildren(node, tag) { | |
const treeAdapter = parse.treeAdapters.default; | |
const nodeTagName = treeAdapter.getTagName(node); | |
const newEl = treeAdapter.createElement(nodeTagName); | |
const childNodes = treeAdapter.getChildNodes(node); | |
childNodes.forEach((childNode) => { | |
if (childNode.nodeName !== tag) { | |
treeAdapter.appendChild(newEl, childNode); | |
} else { |
This file contains hidden or 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
.container--scroll { | |
&.container--scroll-s { | |
@include respond-between('small', 'medium') { | |
max-width: none; | |
width: auto; | |
overflow: auto; | |
padding: 0; | |
} | |
} |
OlderNewer