Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
(function(){
$(document).ready(function(){
var shed = '<div class="banner-canvas"><a href="%%CLICK_URL_UNESC%%http://makershed.com/"><img width="2160" height="547" src="https://s3.amazonaws.com/make-cdn/make/banner/Connected-Home-Package3-BG.jpg" class="attachment-shed-thumb" alt="drone-2" /></a><</div>';
$( body ).append( shed );
});
}());
<div id="banner-canvas">
<a id="biglink" target="_blank" href="%%CLICK_URL_ESC%%http://makershed.com">
<img src="http://cdn.makezine.com/make/banner/Connected-Home-Package3-BG.jpg" alt="Maker Shed" style="height:547px;width:2160px;margin: 0 auto; background-position: top center;">
</a>
</div>
<script type="text/javascript">
(function(){
$('body').prepend($('<div>',{id:'banner-canvas'})
.append($('<a>',{id:'bglink',target:'_blank',href:'%%CLICK_URL_ESC%%http://makershed.com',style:'border: none;text-decoration:none;'})
.append($('<img>',{id:'bgpixel',alt:'Click me!',title:'Click me!',src:'http://cdn.makezine.com/make/banner/Connected-Home-Package3-BG.jpg',style:'height:547px;width:2160px;margin: 0 auto; background-position: top center;'}))));
}()
);
</script>
export PATH="$PATH":~/bin
export EDITOR=/usr/bin/nano
export PATH="$PATH":~/Sites/vip/bin
alias w=wget --user-agent="BOTTOMLESS BREADSTICKS AT THE OLIVE GARDEN"
export PS1='\e[0:35m⌘\e[m \e[0:36m\w/\e[m \e[0:33m`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\e[m'
alias makeblog='cd ~/Sites/vip/www/wp-content/themes/makeblog/'
Working copy: /Users/jspurlock/Sites/vip/www/wp-content/themes/makeblog
Command: svn diff .
================================================================================
Index: css/style.css
===================================================================
--- css/style.css (revision 136469)
+++ css/style.css (working copy)
@@ -4924,6 +4924,7 @@
}
@whyisjake
whyisjake / index.php
Created March 5, 2014 00:34
Conditionally load a easy custom field.
<?php
if ( is_page_template( 'page-weekend-projects-2013.php' ) ) {
/**
* Add a meta box on the weekend projects page.
*/
$field_data = array (
'title_takeover' => array(
'fields' => array(
'first_row' => array(
<?php
/*
Template Name: URLS
*/
$urls = 'http://google.com
http://31engine.com/weblogUpdates/1.cgi
http://zhuaxia.com/rpc/server.php';
// $skuList = explode('\n\r', $_POST['skuList']);
{
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"copy_with_empty_selection": false,
"drag_text": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
"font_face": "Source Code Pro",
{
"caret_extra_width": 1,
"caret_style": "phase",
"close_windows_when_empty": false,
"color_scheme": "Packages/Predawn/predawn.tmTheme",
"copy_with_empty_selection": false,
"drag_text": false,
"draw_minimap_border": true,
"enable_tab_scrolling": false,
"font_face": "Source Code Pro",
@whyisjake
whyisjake / changes.diff
Created March 26, 2014 17:52
The contribute page diff.
Index: css/style.css
===================================================================
--- css/style.css (revision 141566)
+++ css/style.css (working copy)
@@ -4843,6 +4843,247 @@
border-left-color: #ffffff;
bottom: -10px;
}
+.panel {
+ margin-bottom: 20px;