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
// Procedrual script that gets the contract addresses from the build | |
// folder after migration. This file can be used inside of the RNS | |
// Manager React application to use the local RKS network. | |
// The code isn't pretty, but it works. | |
// | |
// TO RUN: | |
// Set the two variables below, and then in the console, run: | |
// node getConfig.js | |
// | |
// the output is a json script that can be copied and pasted into the |
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 |
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
<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
<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
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
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
<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
<?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
pragma solidity ^0.4.0; | |
contract HelloWorld { | |
uint private magicNumber; | |
address private magicPerson; | |
// constructor | |
function HelloWorld() public { | |
log0("HelloWorld constructor started"); |