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 match="table[@class='ou-btns_group_style1']"> | |
<xsl:for-each select="tbody/tr"> | |
<xsl:variable name="icon-className" select="td[3]"/> | |
<xsl:variable name="btn-bgcolor"> | |
<xsl:choose> | |
<xsl:when test="contains(td[4]/text(), 'red')">red</xsl:when> | |
<xsl:when test="contains(td[4]/text(), 'black')">black</xsl:when> | |
<!-- default no bg overlay --> | |
<xsl:otherwise>red</xsl:otherwise> | |
</xsl:choose> |
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
pragma solidity ^0.4.0; | |
contract HelloWorld { | |
uint private magicNumber; | |
address private magicPerson; | |
// constructor | |
function HelloWorld() public { | |
log0("HelloWorld constructor started"); |
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
<?xml version="1.0" encoding="utf-8" ?> | |
<?pcf-stylesheet path="/jesse/ocn/xiaoman/test1.xsl" extension="html"?> | |
<!DOCTYPE document SYSTEM "http://commons.omniupdate.com/dtd/standard.dtd"> | |
<document xmlns:ouc="http://omniupdate.com/XSL/Variables"> | |
<ouc:properties label="config"> | |
<parameter name="pagetype" type="select" group="Everyone" prompt="Page Type" alt="Please choose appropriate page type."> | |
<option value="article" selected="false">Article</option> | |
<option value="content" selected="false">Content</option> | |
<option value="onecolumn" selected="true">One Column</option> |
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:for-each select="document('https://tacos.tacos/path.to/my-feed-rss')/feed/entry"> | |
<xsl:sort select="published" /> | |
<h2><xsl:value-of select="title" /></h2> | |
</xsl:for-each> |
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
module Jekyll | |
class HelloWorld < Liquid::Tag | |
def initialize(tag_name, text, tokens) | |
super | |
@text = text | |
end | |
def render(context) | |
"Hello World, #{@text}!" |
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
module Jekyll | |
class EmbedGist < Liquid::Tag | |
def initialize(tag_name, url, tokens) | |
super | |
# remove spaces from string: | |
@url = url.gsub!(/\s+/, '') | |
end | |
def render(context) |
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
<component class="widgetAnywhere"> | |
<path></path> | |
</component> |
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 match="component[@class='widgetAnywhere']"> | |
<xsl:variable name="path" select="concat($ou:root, $ou:site, path)" /> | |
<xsl:choose> | |
<!-- Show an error if the file can not be found on staging --> | |
<xsl:when test="not(doc-available(replace($path, '.htm', '.pcf')))"> | |
<div class="panel"> | |
<h2 class="normal-size">Widget Anywhere ERROR</h2> | |
<p>The include file could not be found on staging.</p> | |
<code><xsl:value-of select="path" /></code> |
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
#bitbucket-pipelines.yml | |
image: node:10.15.3 | |
pipelines: | |
default: | |
- step: | |
name: Build React Project | |
script: | |
- npm install | |
- npm run-script build |
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
- step: | |
name: Send content to Algolia | |
caches: | |
- bundler | |
script: | |
# install dependencies | |
- bundle install --path vendor/bundle | |
# Run the Algolia Jekyll plugin | |
- bundle exec jekyll algolia |