Skip to content

Instantly share code, notes, and snippets.

View Jordanlagan's full-sized avatar
💭
Wowww...

Jordan Lagan Jordanlagan

💭
Wowww...
View GitHub Profile
<!-- ProductGroup Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "ProductGroup",
"name": "<REPLACE WITH PARENT PRODUCT NAME>",
"description": "<REPLACE WITH PARENT PRODUCT DESCRIPTION>",
"url": "<REPLACE WITH PARENT PRODUCT URL>",
"brand": {
"@type": "Brand",
google_data = {
"spend" => {
"overall" => {
"mtd" => {
"total" => 1111.32,
"yy" => 13.24
},
"last_7_d" => {
"total" => 321.30,
"yy" => 5.38
@Jordanlagan
Jordanlagan / daily.rb
Last active August 2, 2022 21:20
Daily
google_data = {
"spend" => {
"overall" => {
"20220801" => 11.00,
"20220731" => 32.32,
"20220730" => 2.12,
"20220729" => 4.55,
...
"20220704" => 21.19
},
@Jordanlagan
Jordanlagan / zero-impressions-emergency-alarm.js
Last active November 30, 2017 02:37
A zero impressions emergency Google Adwords script for assisting in account management and emergency response.
// This script gets the number of impressions on the account. If the number of impressions < 0, it
// will send emergency email to Roger, Steve, Melissa & Jordan.
// --------------------------START----------------------------//
// Add your email address to be notified in an account emergency.
var EMAIL_ADDRESSES_TO_NOTIFY = ["test@email.com"];
// Corresponds with Google Sheet "Impressions Emergency Script Global Variables"
var SHEETID = "yourcustomsheetidhere";
[4] pry(#<Post>):1> nesting
Nesting status:
--
0. main (Pry top level)
1. #<Post>
[5] pry(#<Post>):1> self.to_s
=> "#<Post:0x00000002f0d2a8>"
[6] pry(#<Post>):1> self.title = 'some new title'
=> "some new title"
[7] pry(#<Post>):1> self.body = 'some new body'