Skip to content

Instantly share code, notes, and snippets.

View newswim's full-sized avatar
🦬
Hi

Dan Minshew newswim

🦬
Hi
View GitHub Profile
Meteor.http.get("http://localhost:3000/api/v1/project", function (error, result) {
if(error) {
console.log('http get FAILED!');
} else {
console.log('http get SUCCES');
if (result.statusCode === 200) {
console.log('Status code = 200!');
console.log(result.content);
}
}
<h2>Light Theremin Kits</h2>
<div class="row">
<div class="span8"><img class="aligncenter" alt="All Seeing Eyes Light Theremin kit available at DarcyNeal.com" src="http://darcyneal.com/wp-content/uploads/2012/12/IMG_08751.jpg" width="346" height="297" /></div>
<div class="span8" style="text-align: center; float: none;">
<p style="text-align: center;">All Seeing Eyes Light Theremin kit</p>
<p style="text-align: center;">This kit is available. Contact me @ <a href="mailto:darcy@darcyneal.com">Darcy@DarcyNeal.com</a></p>
<p style="text-align: center;" align="center">or purchase via paypal</p>
<p style="text-align: center;" align="center">Purchase the Kit for $35 by clicking the Buy Now button Below</p>
<p style="text-align: center;"><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_cart&amp;business=veggietarian%40gmail%2ecom&amp;lc=US&amp;item_name=All%20Seeing%20Eyes%20Light%20Theremin%20Kit&amp;amount=35%2e00&amp;currency_code=USD&amp;button_subtype=products&amp;shipping=5%2e00&amp;add=1&amp;bn=PP%2dShopCar
/** custom checkboxes **/
input[type=checkbox].css-checkbox {
position:absolute;
z-index:-1000;
left:-1000px;
overflow:hidden;
clip:rect(0 0 0 0);
height:1px;
width:1px;
@newswim
newswim / gist:d1ad6595b7cfac25639f
Last active August 29, 2015 14:21
Jekyll error after some ruby skeezing
Configuration file: /Users/danielminshew/Websites/WIP/opendenton.github.io/_config.yml
Source: /Users/danielminshew/Websites/WIP/opendenton.github.io
Destination: /Users/danielminshew/Websites/WIP/opendenton.github.io/_site
Generating...
/usr/local/opt/gems/gems/redcarpet-3.2.3/lib/redcarpet.bundle: [BUG] Segmentation fault at 0x00000000000418
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin13]
-- Crash Report log information --------------------------------------------
See Crash Report log file under the one of following:
* ~/Library/Logs/CrashReporter
@newswim
newswim / gist:03a2020f304bc4c2f63d
Last active August 29, 2015 14:21
Append an audio player to document
// Just reading through the MDN <audio> API docs, create and append child nodes
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
x = new Audio
// <audio preload=​"auto">​</audio>​
x.loop == true
// false
x.loop = true
// true
$(document).ready(function () {
resize_to_fit();
});
function resize_to_fit(){
var fontsize = $('div#outer div').css('font-size');
$('div#outer div').css('fontSize', parseFloat(fontsize) - 1);
if($('div#outer div').height() >= $('div#outer').height()){
resize_to_fit();
Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://fracknews.meteor.com/[object%20Object]".
t._insertNodeWithHooks @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t._insert @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t.attach @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t._insert @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t.attach @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t._insert @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t.attach @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t._insert @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
t.attach @ 7f26faba7d9f709d7fcdad8597796f31f9ba9913.js:59
Last login: Wed Jul 8 15:00:56 on ttys000
daniels-imac:~ danielminshew$ nvm
Node Version Manager
Usage:
nvm help Show this message
nvm --version Print out the latest released version of nvm
nvm install [-s] <version> Download and install a <version>, [-s] from source. Uses .nvmrc if available
nvm uninstall <version> Uninstall a version
<!-- Orig -->
<?php
/*
Template Name: Work Main
*/
get_header(); ?>
<!-- Grid Wall Init -->
<?php
/**
* The Header for our theme.
*
* Displays all of the <head> section and everything up till <div id="main">
*
* @package WordPress
* @subpackage Twenty_Ten
* @since Twenty Ten 1.0
*/