Skip to content

Instantly share code, notes, and snippets.

Randy Apuzzo ardeay

Block or report user

Report or block ardeay

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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)}}",
View product note
Worked for this guy. He's mostly full of shit, and a lot of people don't like him, and he has absolutely no concept of technology or how the internet works - but I liked him, and he can make a damn good 30 second spot. However, he only cares about "awareness" campaigns. I think a lot of this is projection - HE doesn't understand how to translate his skills to this changing landscape.
It's not rocket surgery:
1. Know who you are targeting and the problem they need solved.
2. Create a product that they will love and brag about to their friends.
3. Find out where they hang out (websites, tv shows, apps, whatever).
4. Express your value proposition in a simple, clear way.
5. Have some kind of a cool factor and/or be aspirational.
6. Be consistent with your messaging across channels and over time.
View form-example-airtable-zesty-io
<form enctype="multipart/form-data" action="https://YOURCUSTOMNAME.herokuapp.com/" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<br>
<input type="text" name="Name" value="" />
View marketo-integration.html
(** we suggest setting this paramenters in the top of your loader so you always have access to them **)
{{$accountID = YOUR_ACCOUNT_ID}}
{{$podurl = YOUR_POD_URL}}
{{$rtpjscdnurl = REALTIME_JAVASCRIPT_CDN_URL}}
<!-- RTP tag -->
<script type='text/javascript'>
You can’t perform that action at this time.