Skip to content

Instantly share code, notes, and snippets.

View em0ney's full-sized avatar

Elliott Spira em0ney

View GitHub Profile

Keybase proof

I hereby claim:

  • I am em0ney on github.
  • I am em0ney (https://keybase.io/em0ney) on keybase.
  • I have a public key ASBO3U_ndgV9KleBED5vkfnJfnpuK6sMIeBEONf4cLVkjgo

To claim this, I am signing this object:

@em0ney
em0ney / package.js
Created April 9, 2015 04:30
example package.js for a licensed version of amcharts
Package.describe({
name: "amcharts",
summary: "my licensed version of amcharts",
version: "3.13.1"
});
Package.on_use(function (api) {
api.add_files('lib/amcharts.js', 'client');
api.add_files('lib/funnel.js', 'client');
api.add_files('lib/gauge.js', 'client');
@em0ney
em0ney / init-analytics.js
Last active August 29, 2015 13:57
How to install google analytics for Meteor applications and send pageviews from Iron-Router
if (Meteor.isClient) {
Template.analytics.rendered = function() {
var ga = document.createElement('script');
ga.type = 'text/javascript'; ga.async = true;
ga.innerHTML = "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-XXXXXXXX-1', 'elliottspira.com');//ga('send', 'pageview');";
var head = document.getElementsByTagName('head')[0];
head.appendChild(ga);
};
}
@em0ney
em0ney / example.html
Last active June 15, 2018 17:53
A list-group-addon for prepending glyphicons to list groups in Bootstrap-3
<ul class="list-group">
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-calendar"></span>
&nbsp;8th March 2014</li>
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-time"></span>
&nbsp;10:00</li>
<li class="list-group-item-cust list-group-item"><span class="list-group-addon glyphicon glyphicon-flag"></span>
&nbsp;Location</li>
</ul>