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
var baseUrl = 'https://api.parse.com/1', | |
appId = 'XXXXXXXXXXXXXXX', | |
apiKey = 'XXXXXXXXXXXXXX'; // make sure to use the REST API Key | |
var _register = function(params, lambda, lambdaerror) { | |
var method = 'POST', | |
url = baseUrl + '/installations', | |
payload = (params) ? JSON.stringify(params) : ''; | |
_helper(url, method, payload, function(data, status) { |
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
//#!/usr/bin/env node | |
var http = require("http"), | |
fs = require("fs"), | |
sys = require('sys'), | |
exec = require('child_process').exec; | |
var ENDPOINT="https://app.customer.io/api/v1/customers/"; | |
var SITEID="YOUR SITE ID"; | |
var APIKEY="YOUR API KEY"; |
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
<div id="ember475" class="ember-view slider" style="position: relative; overflow: hidden; cursor: -webkit-grab; -webkit-perspective: 1000px; -webkit-backface-visibility: hidden; width: 2650px; -webkit-transform: matrix(1, 0, 0, 1, 0, 0); "> | |
<!-- The main element + the other 3 --> | |
<script id="metamorph-19-start" type="text/x-placeholder" style="width: 0px; float: left; "></script><script id="metamorph-20-start" type="text/x-placeholder" style="width: 0px; float: left; "></script> | |
<div class="draggable post slide21" id="post21" style="width: 235px; float: left; "> | |
<cat style="display:none;"><script id="metamorph-30-start" type="text/x-placeholder"></script><script id="metamorph-30-end" type="text/x-placeholder"></script></cat> | |
<img id="img-21" src="apple-touch-icon-114x114-precomposed.png" name="Title21" onclick="javascript:openHash('#id-21')"> | |
<p><a href="#id-21" onclick="javascript:alert('#id-21')" style="z-index:1000;">Title21</a></p> | |
<h3><a id= |
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
<script type="text/x-handlebars" data-template-name="home-top-news"> | |
<!-- The main element + the other 3 --> | |
{{#each content}} | |
<div style="float:left;display:inline-block;margin-left:15px;margin-bottom:15px;"> | |
<img {{bindAttr src="image"}} id="img-{{unbound id}}" /> | |
<h2 id="h2-{{unbound id}}">{{title}}</h2> | |
<h3><a href="#" id="id-{{unbound id}}">{{shortDescription}}</a></h3> | |
</div> | |
{{/each}} | |
</script> |
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
App.NewsObject = Em.Object.extend({ | |
id: 0, | |
title: "Title", | |
shortDescription: "shortDesc", | |
longDescription: "longDesc", | |
image: "image", | |
content: "article content", | |
date: "1970-01-01", | |
url : "" | |
}); |
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
App.homeTopNewsController = Ember.ArrayController.create({ | |
content: [], | |
load: function() { | |
}, | |
// Callback from SOAP callee | |
parse: function(data) { | |
}, | |
// Returns 1st element for Top News |
NewerOlder