Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View dannomatic's full-sized avatar
🏠
Working from home

Dan Nedelko dannomatic

🏠
Working from home
View GitHub Profile
@dannomatic
dannomatic / simple-column.html
Created March 21, 2019 21:33
Simple 2 Column Example
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple 2 Columns</title>
</head>
<style>
.column {
float: left;
width: 10%;
@dannomatic
dannomatic / gist:1ee72232d156e29c7cdd9a15d6d97666
Created June 13, 2018 18:53
WP Query List Posts in a Category
<?php $catquery = new WP_Query( 'cat=72&posts_per_page=5' ); ?>
<ul>
<?php while($catquery->have_posts()) : $catquery->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></li>
<?php endwhile;
wp_reset_postdata();
?>
@dannomatic
dannomatic / pause-declining-ctr.js
Created September 13, 2016 20:44
Pause Campaigns with Declining CTR
function main() {
AdWordsApp.createLabel("PausedCTR", "ad group paused due to declining CTR", "red");
AdWordsApp.createLabel("PausedCPA", "ad groups paused due to declining Conversions", "yellow");
//NOTE: set your max CPA value. You don't want to pause an ad group with a rising CPA unless that CPA goes over your limit.
var cpaMax = 0;
var adGroupsIterator = AdWordsApp.adGroups()
.withCondition("Clicks > 25")
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Quality Score Tracker v3.0
* Written by Martin Roettgerding.
* © 2016 Martin Roettgerding, Bloofusion Germany GmbH.
* www.ppc-epiphany.com/qstracker/latest
*/
function main(){
/*
* The following preferences can be changed to customize this script.
* Most of options can be set by using 1 for yes or 0 for no.
@dannomatic
dannomatic / lin-rodnitsky.js
Created August 29, 2016 17:40
AdWords Script - Lin Rodnitzky Ratio
// Copyright 2015 - Optmyzr Inc.
// All rights reserved
// For an Enhanced Script version of this script which works at the MCC level and is easier to modify, visit www.optmyzr.com
function main() {
var SETTINGS = new Object();
// --- CHANGE THESE SETTINGS
@dannomatic
dannomatic / gist:38180d855dfe97477ee0
Created November 23, 2015 18:33
Studio Press Easy Footer Update
<p>[footer_copyright before="Copyright"] &middot; <a href="http://honeypotlabs.com">Honeypot Labs</a> is a <a href="http://honeypotmarketing.com">Honeypot Marketing</a> Gig, built upon the shoulders of true giants &middot; [footer_wordpress_link] &middot; [footer_loginout]</a></p>
@dannomatic
dannomatic / wordpress-redirect-tag-base
Created January 3, 2015 20:10
Wordpress Redirect tag page URL
<IfModule mod_rewrite.c>
RewriteEngine On
DirectorySlash Off
RewriteRule ^tag/?$ /betting [L,R=301]
RewriteRule ^tag/(.*)$ /betting/$1 [L,R=301]
</IfModule>