Skip to content

Instantly share code, notes, and snippets.

Dan Minshew newswim

Block or report user

Report or block newswim

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View http_get.js
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);
}
}
View gist:5824b7ec23c5b022c182
<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
View red checkboxes
/** 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 Aug 29, 2015
Jekyll error after some ruby skeezing
View gist:d1ad6595b7cfac25639f
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 Aug 29, 2015
Append an audio player to document
View gist:03a2020f304bc4c2f63d
// 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
View resizingTheDOM
$(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();
View gist:1dc42836da9bf93aca92
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
View gist:5b223c1d1f3cd9122378
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
View gist:f00f50a937b2fa446ba7
<!-- Orig -->
<?php
/*
Template Name: Work Main
*/
get_header(); ?>
<!-- Grid Wall Init -->
View gist:5b6718759cedaf8afedb
<?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
*/
You can’t perform that action at this time.