Skip to content

Instantly share code, notes, and snippets.

View ardeay's full-sized avatar
🍊

Randy Apuzzo ardeay

🍊
View GitHub Profile
@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)}}",
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.
<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="" />
(** 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'>
{
"requestId": "d82a#14e26755a9c",
"result": [
{
"id": 318581,
"updatedAt": "2015-06-11T23:15:23Z",
"lastName": "Doe",
"email": "jdoe@marketo.com",
"createdAt": "2015-03-17T00:18:40Z",
"firstName": "John"
firstname=TestContact&lastname=FormSub&email=formsub@hubspot.com&newcustomproperty=testing&hs_context={"hutk":"60c2ccdfe4892f0fa0593940b12c11aa","ipAddress": "192.168.1.12","pageUrl": "http://demo.hubapi.com/contact/","pageName": "Contact Us","redirectUrl": "http://demo.hubapi.com/thank-you/"}
@font-face {
font-family: 'FontAwesome';
src: url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.eot?v=3.2.1');
src: url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'), url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.woff?v=3.2.1') format('woff'), url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.ttf?v=3.2.1') format('truetype'), url('https://netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg');
font-weight: normal;
font-style: normal;
}
/* FONT AWESOME CORE
* -------------------------- */
[class^="icon-"],
@ardeay
ardeay / zesty-io-file-example-form.html
Last active June 8, 2016 15:47
Zesty.io Form File Post example Form
<form enctype="multipart/form-data" action="http://zesty-php-file-capture-test.herokuapp.com/" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- RETURN_URL must precede the file input field, used after file is uploaded -->
<input type="hidden" name="redirect_target" value="http://www.your-website.com/thank-you/" />
<dropdown name="close-font-weight" name_friendly="Close Font Weight"> <!-- name friend is display to the user, name is the variable reference for LESS or SCSS -->
<category>9</category> <!-- category 9 is typography -->
<description/>
<sort>15</sort> <!-- position it loads in interface-->
<edit_in_content>1</edit_in_content>
<locked>0</locked>
<value><![CDATA[500]]></value>
<options>