Skip to content

Instantly share code, notes, and snippets.

View ardeay's full-sized avatar
🍊

Randy Apuzzo ardeay

🍊
View GitHub Profile
<div id="vueApp">
<div>
<h1>{{this.title}}</h1>
{{this.content}}
<p>Static test form the developer</p>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<html>
<head>
<title>My App</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<h1>Hello World</h1>
<div id="zestyApp">
<html>
<head>
<title>My App</title>
</head>
<body>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<h1>Hello World</h1>
<div id="zestyApp">

Keybase proof

I hereby claim:

  • I am ardeay on github.
  • I am randyapuzzo (https://keybase.io/randyapuzzo) on keybase.
  • I have a public key ASAPCcRBm6sE_EOvAACXnTXi4SDuzr0iRJjnhsSwYcSTewo

To claim this, I am signing this object:

@ardeay
ardeay / headtags.html
Last active February 12, 2019 19:03
Auto-generated headtags in Zesty.io Web Engine
<!-- auto included -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="icon" href="{{site.icon}}"> <!-- this only appears if an icon was uploaded -->
<!-- auto genned from meta field on zesty content item -->
<title>{{meta.title}}</title>
<meta name="description" content="{{meta.description}}" />
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
@ardeay
ardeay / getLegalities.js
Created January 7, 2019 04:46
modded code from chaosumbreon87
/**
* Responds to any HTTP request.
*
* @param {!express:Request} req HTTP request context.
* @param {!express:Response} res HTTP response context.
*/
const fetch = require("node-fetch");
exports.getLegalities = (req, res) => {
let cardName = req.query.cardName || req.body.cardName || '';
@ardeay
ardeay / .bash_profile
Created January 5, 2019 19:37
Via La Terminal! Coloring Scheme
## Color your terminal with Mexico's colors! + git branch
## Add this to the bottom of your ~/.bash_profile and restart your terminal
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export TERM="xterm-color"
export PS1="\u\[\e[1;31m\]@\[\e[0m\]\h\[\e[0;31m\] \w\[\e[0;32m\]\$(parse_git_branch)\e[0;33m\]$ "
@ardeay
ardeay / multiple_image_media_loop.tpl
Created April 4, 2017 17:09
How to loop though multiple images on Zesty.io
{{each media.{page.images} as media}}
<img class="full-width" style="margin-bottom: 20px;" src="{{media.image.getImage()}}" alt="{{media.title}}" />
{{end-each}}
@ardeay
ardeay / blog-data.tpl
Created March 2, 2017 23:06
Custom Zesty.io JSON API endpoint
{
"data": [
{{if {get_var.start} }} {{ $start = {get_var.start} }} {{else}} {{$start = 0}} {{end-if}}
{{if {get_var.limit} }} {{ $limit = {get_var.limit} }} {{else}} {{$limit = 100}} {{end-if}}
{{each blog_article as art limit {$start},{$limit} }}
{
"zid" : {{art.zid}},
"name" : "{{art.title}}",
"body" : "{{art.article_body.escapeForJs()}}",
"tags" : [
@ardeay
ardeay / json_example.parsley
Last active March 2, 2017 22:15
JSON Parsley Example
{
"data": [
{{each blog_article as art limit 20 }}
{
"zid" : {{art.zid}},
"url" : "{{art.getUrl()}}",
"name" : "{{art.title}}",
"image": "{{art.image.getImage()}}",
"image_thumbnail": "{{art.image.getImage(200,200,crop)}}",