This file contains 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
class Tweet < ActiveRecord::Base | |
attr_accessible :body | |
def self.establish_connection | |
client = Twitter::REST::Client.new do |config| | |
config.consumer_key = | |
config.consumer_secret = | |
config.access_token = | |
config.access_token_secret = | |
end |
This file contains 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
<template> | |
<div class="IM_cell" v-on:click="selectAd"> | |
<div class="IM_cell_container"> | |
<div v-if="showCheckbox"> | |
<input type="checkbox" :checked="ad.selected"> | |
</div> | |
<div class="IM_cell_content"> | |
<img class="IM_cell_logo" :src="ad.large_creative_url"/> | |
<div class="IM_ad_copy">{{ad.ad_copy}}</div> |
This file contains 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
let headline = ''; | |
function createAdBodyWithMacros(macros) { | |
return ` | |
<div> | |
<div class="head"> | |
<span id="title">${headline || (macros.title ? macros.title : 'Default Headline')}</span> | |
</div> | |
<div class="ads_container"></div> | |
<div class="footer"> | |
<a href="">Privacy Policy</a> |
This file contains 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
let headline = ''; | |
function createAdBodyWithMacros(macros) { | |
return ` | |
<div> | |
<div class="head"> | |
<span id="title">${headline || (macros.title ? macros.title : 'Default Headline')}</span> | |
</div> | |
<div class="ads_container"></div> | |
<div class="footer"> | |
<a href="">Privacy Policy</a> |
This file contains 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
const API_KEY = '' // your app's apiKey, provided to your app during config, also accessible via window.shopify.config.apiKey | |
interface FrameList extends Window { | |
[index: number]: Window; | |
} | |
function findAppFrameSafely(frameName: string) { | |
if (window.parent) { |