Skip to content

Instantly share code, notes, and snippets.

View whyisjake's full-sized avatar
✈️

Jake Spurlock whyisjake

✈️
View GitHub Profile
@whyisjake
whyisjake / gist:3147472
Created July 19, 2012 23:02
makerspace
50.57.138.113 makerspace.com www.makerspace.com
@whyisjake
whyisjake / arduino.html
Created July 13, 2012 23:45
Arduino Super Page
<div class="new-grid top">
<div class="row">
<div class="span5">
<!-- This is the main image up top. Likely don't need to change this very often. As such, it is -->
<img src="http://make.smrtdsgn.com/wp-content/themes/makeonepointoh/img/arduino_grid.jpg" alt="Arduino" />
</div>
The days are long, the weather is great, and inspiration is everywhere. I'm taking a summertime hiatus (to work on a majorly cool secret project), but this list of tutorials is sure to keep you busy all season.
<strong>
Gardening:
</strong>
<ul>
<li>
<a href="http://blog.craftzine.com/archive/2010/04/how_to_plant_a_mod_container_g.html">
How-To: Plant a Mod Container Garden @Craftzine.com blog
</a>
</li>
@whyisjake
whyisjake / rocket
Created June 18, 2012 19:49
Rocket Embed
<script type="text/javascript"
data-dozuki-embed='3'
src="http://cacher.dozuki.net/static/embed/ifixit-embed.3.js#id=2235&site=makeprojects.com">
</script>
<p><a href="http://makeprojects.com/Project/Make-Compressed-Air-Rockets-Kit/2235/1">Make: Compressed Air Rockets Kit</a></p>
_____ _____ _____ _____ _____ _____ _____ _____ _____ _______ _____ _____
/\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /\ \ /::\ \ /\ \ /\ \
/::\ \ /::\ \ /::\____\ /::\ \ /::\ \ /::\ \ /::\____\ /::\ \ /::\____\ /::::\ \ /::\ \ /::\____\
\:::\ \ /::::\ \ /:::/ / /::::\ \ /::::\
___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___ ___
/\ \ /\ \ /\__\ /\ \ /\ \ /\ \ /\__\ /\ \ /\__\ /\ \ /\ \ /\__\
_\:\ \ /::\ \ /:/ _/_ /::\ \ /::\ \ /::\ \ /:/ _/_ /::\ \ /:/ / /::\ \ /::\ \ /:/ _/_
/\/::\__\ /::\:\__\ /::-"\__\ /::\:\__\ /\:\:\__\ /::\:\__\ /:/_/\__\ /::\:\__\ /:/__/ /:/\:\__\ /:/\:\__\ /::-"\__\
\::/\/__/ \/\::/ / \;:;-",-" \:\:\/ / \:\:\/__/ \/\::/ / \:\/:/ / \;:::/ / \:\ \ \:\/:/ / \:\ \/__/ \;:;-",-"
\/__/ /:/ / |:| | \:\/ / \::/ / \/__/ \::/ / |:\/__/ \:\__\ \::/ / \:\__\ |:| |
\/__/ \|__| \/__/ \/__/ \/__/ \|__| \/__/ \/__/ \/__/ \|__|
@whyisjake
whyisjake / Maker.json
Created April 20, 2012 16:58
maker/event
{ "exhibits": [{
"video" : "http://web.me.com/rsmith/Zevrino/Zevrino.html",
"Secondary Category" : [
{
"cs_rid" : null,
"name" : null
}
],
"photo" : "http://gallery.me.com/rsmith#100017/IMG_2715&bgcolor=black",
"cs_rid" : "8137",
@whyisjake
whyisjake / test
Created April 17, 2012 22:07
Test for no results
$results = $json_output -> RES -> R;
if (isset($results)) {
foreach ($results as $item) {
$image = $item->xpath(".//DataObject[@type='cse_image']/Attribute");
if ( !empty($image)) {
echo '<div class="row result"><div class="result">';
echo '<div class="span2">';
if ( function_exists( 'wpcom_vip_get_resized_remote_image_url' ) ) {
@whyisjake
whyisjake / json2excel.php
Created April 17, 2012 00:18
json to Excel
<?php
$url = 'makers.json';
$contents = file_get_contents($url);
$json_output = json_decode($contents);
// Don't print anything if we didn't get a good response
function cleanData(&$str)
{
//Removed the bogus stuff in place of strip_tags
$att = "value";
foreach ($results as $item) {
$image = $item->xpath(".//DataObject[@type='cse_image']/Attribute");
if ( !empty($image)) {
echo '<div class="row result"><div class="result">';
echo '<div class="span2">';
echo '<img class="thumbnail" src="';
echo $image[0]->attributes()->$att;