Skip to content

Instantly share code, notes, and snippets.

View ninthart's full-sized avatar

Brad Brooks ninthart

View GitHub Profile
@ninthart
ninthart / WordPress Google Analytics
Created November 16, 2018 11:25 — forked from kenhowardpdx/WordPress Google Analytics
Add Google Analytics to WordPress Theme functions.php
function init_analytics() {
$analytics = '<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push([\'_setAccount\', \'UA-XXXXXXXX-X\']);
_gaq.push([\'_trackPageview\']);
(function() {
var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
ga.src = (\'https:\' == document.location.protocol ? \'https://\' : \'http://\') + \'stats.g.doubleclick.net/dc.js\';
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
<?php
/**
* Plugin Name: Grunt Sitemap Generator
* Plugin URI: http://www.github.com/lgladdy
* Description: Generate a JSON list of every page on a site so it can be used with grunt and uncss. Create a folder in /wp-content called mu-plugins, and drop this code into that folder, as grunt-sitemap.php
* Author: Liam Gladdy
* Author URI: http://gladdy.co.uk
* Version: 1.0
*/

Keybase proof

I hereby claim:

  • I am ninthart on github.
  • I am ninthart (https://keybase.io/ninthart) on keybase.
  • I have a public key whose fingerprint is 4456 7FC0 3FAB A52D 857A 2037 D9A7 0804 F22E 5687

To claim this, I am signing this object:

.gform_wrapper {
ul {
@extend .list-unstyled;
}
li {
@extend .form-group;
}
@ninthart
ninthart / SassMeister-input.scss
Created October 14, 2014 15:48
Generated by SassMeister.com.
// ----
// Sass (v3.4.4)
// Compass (v1.0.1)
// ----
$baseFontSize: 16px;
@function strip-units($number) {
@return $number / ($number * 0 + 1);
}
@ninthart
ninthart / SassMeister-input-HTML.html
Created October 14, 2014 15:48
Generated by SassMeister.com.
<a class="button">A button</a>
<button class="button">Button button</button>
<a class="button-large">A button</a>
<button class="button-large">Button button</button>
@ninthart
ninthart / SassMeister-input-HTML.html
Created October 14, 2014 15:48
Generated by SassMeister.com.
<a class="button">A button</a>
<button class="button">Button button</button>
<a class="button-large">A button</a>
<button class="button-large">Button button</button>
@ninthart
ninthart / SassMeister-input-HTML.html
Created October 3, 2014 19:44
Generated by SassMeister.com.
<div class="col1">
Column 1
</div>
<div class="col2">
Column 2
</div>
@ninthart
ninthart / .gitignore
Last active August 29, 2015 14:07 — forked from redoPop/.gitignore
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your