Skip to content

Instantly share code, notes, and snippets.

😄

Randy Apuzzo ardeay

😄
View GitHub Profile
View zesty-vue-example.js
<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>
View Meetup Vue App 2
<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">
View Meetup Vue App
<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">
View keybase.md

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 Feb 12, 2019
Auto-generated headtags in Zesty.io Web Engine
View headtags.html
<!-- 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 Jan 7, 2019
modded code from chaosumbreon87
View getLegalities.js
/**
* 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 Jan 5, 2019
Via La Terminal! Coloring Scheme
View .bash_profile
## 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 Apr 4, 2017
How to loop though multiple images on Zesty.io
View multiple_image_media_loop.tpl
{{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 Mar 2, 2017
Custom Zesty.io JSON API endpoint
View blog-data.tpl
{
"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 Mar 2, 2017
JSON Parsley Example
View json_example.parsley
{
"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)}}",
You can’t perform that action at this time.