Visit my blog or connect with me on Twitter
git init
or
{ | |
"name": "bower", | |
"description": "Gulp and sass bootstrap for collection", | |
"main": "index.js", | |
"authors": [ | |
"awhiting" | |
], | |
"license": "ISC", | |
"homepage": "", | |
"ignore": [ |
//// | |
/// mixins.scss | |
/// Mixins | |
/// @author Ash Whiting | |
//// | |
/// Rems | |
/// @include fs(font-size, line-height) | |
@mixin fs($size:1.6, $line: $size){ |
- var voyagerTimeline = [{"date": "1977 Aug. 20", "description": "Voyager 2 launched from Kennedy Space Flight Center"}, {"date": "1977 Sept. 5", "description": "Voyager 1 launched from Kennedy Space Flight Center, Voyager 1 returns first spacecraft photo of Earth and Moon"}, {"date": "1979 Mar. 5", "description": "Voyager 1 makes its closest approach to Jupiter"}, {"date": "1979 July 9", "description": "Voyager 2 makes its closest approach to Jupiter"}, {"date": "1980 Nov. 12", "description": "Voyager 1 flies by Saturn, Voyager 1 begins its trip out of the Solar System"}, {"date": "1981 Aug. 25", "description": "Voyager 2 flies by Saturn"}, {"date": "1982", "description": "Deep Space Network upgrades two 26-m antennas to 34-m"}, {"date": "1986 Jan. 24", "description": "Voyager 2 has the first-ever encounter with Uranus, Deep Space Network begins expansion of 64-m antennas to 70-m"}, {"date": "1987", "description": "Voyager 2 'observes' Supernova 1987A"}, {"date": "1988", "description": "Voyager 2 returns fir |
// Fix for the field delete | |
add_action('acf/input/admin_head', 'my_acf_admin_head'); | |
function my_acf_admin_head() { | |
?> | |
<script type="text/javascript"> | |
(function($) { |
function my_layout_title($title, $field, $layout, $i) { | |
if($value = get_sub_field('layout_title')) { | |
return $value; | |
} else { | |
foreach($layout['sub_fields'] as $sub) { | |
if($sub['name'] == 'layout_title') { | |
$key = $sub['key']; | |
if(array_key_exists($i, $field['value']) && $value = $field['value'][$i][$key]) | |
return $value; | |
} |
Visit my blog or connect with me on Twitter
git init
or
#!/bin/bash -e | |
wpuser='awhiting' | |
clear | |
echo "=================================================================" | |
echo "Quick Wordpress Installer" | |
echo "=================================================================" |
<?php | |
/** | |
* Template Name: Custom RSS Template - Regulatory Resources Feed | |
*/ | |
header('Content-Type: '.feed_content_type('rss-http').'; charset='.get_option('blog_charset'), true); | |
echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; | |
?> | |
<rss version="2.0" | |
xmlns:content="http://purl.org/rss/1.0/modules/content/" |
var answers = [ false,true,false,true,true,false,true,true,false,true,true ] | |
$('form').submit(function(e) { | |
e.preventDefault(); | |
var $el = $('#results'), errors=getIncorrectAnswers($('form').find('input'),answers); | |
if (errors.length==0) { | |
$('tr').removeClass("error"); | |
$el.find("p:not(.error)").text("Congratulations, you got all 11 questions right!"); |