Skip to content

Instantly share code, notes, and snippets.

var shuffle = function (arr) {
//check to make sure we were not passed an empty value.
if (!arr) {
console.error('Target of shuffling cannot be empty.');
return false;
}
//check to make sure the value we were passed is an Array
if (arr.constructor != Array) {
console.error('Target of shuffling must be of type Array');
return false;
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
<link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">
</head>
<body>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/vue/0.11.10/vue.min.js"></script>
<script type="text/javascript" src="app.js"></script>
ucefkh [8:17 PM]
Hello, What's poppin my dawg?
ucefkh [9:03 PM]
Ya ignoring me bro ?
ignitedgeek [9:03 PM]
what can I do for you?
// Geocode server method
if (Meteor.isServer) {
Meteor.methods({
geoCode: function(argument) {
var geoResult= function(argument, cb) {
check(argument, String);
console.log(argument);
var geo = new GeoCoder();
var result = geo.geocode(argument);
// Geocode server method
if (Meteor.isServer) {
Meteor.methods({
geoCode: function(argument) {
var geoResult= function(argument, cb) {
geocodeSync({
check(argument, String);
console.log(argument);
var geo = new GeoCoder();
(function ($) {
'use strict';
var hotPrint = function (instance) {
var _self = this;
_self.instance = instance;
this.printToHtml = function () {
var _grid = _self.instance;
var data = [
[Meteor.user().profile['company-name'], "15 ML Bottles", "", "", "", "", "", "", "Dripper Fuel", "", "", "", "30 ML Bottles", "", "", "", "", "", ""],
[moment().format('MM-DD-YYYY'), '0 MG', '3 MG', '6 MG', '12 MG', '18 MG', '24 MG', 'Total', '0 DF', '3 DF', '6 DF', 'Total', '0 MG', '3 MG', '6 MG', '12 MG', '18 MG', '24 MG', 'Total'],
['Beehave', '','','','','','','=SUM(B3:G3)','NA','NA','NA','NA', '', '','','','','','=SUM(M3:R3)'],
['Blueberry Thrill', '','','','','','','=SUM(B4:G4)','NA','NA','NA','NA', '','','','','','','=SUM(M4:R4)'],
['Caramel Vapeuccino', '','','','','','','=SUM(B5:G5)','NA','NA','NA','NA', '','','','','','','=SUM(M5:R5)'],
['Carousel', '','','','','','','=SUM(B6:G6)','','','','=SUM(I6:K6)', '','','','','','','=SUM(M6:R6)'],
['Cherry Bomb', '','','','','','','=SUM(B7:G7)','NA','NA','NA','NA', '','','','','','','=SUM(M7:R7)'],
['Chill Out', '','','','','','','=SUM(B8:G8)','NA','NA','NA','NA', '','','','','','','=SUM(M8:R8)'],
['Coolcumber'
import os, os.path, time, urllib, urllib2, json, datetime
base = os.getcwd() + '/packages/'
apiUrl = 'https://atmospherejs.com/a/packages/findByNames'
for dirname in os.listdir(base):
max_mtime = 0
if os.path.isdir(base + dirname):
packageName = dirname.replace('-', ':', 1)
for fname in os.listdir(base + dirname):
full_path = base + dirname + '/' + fname
var timing = {duration: 500, queue: false};
Template.allPasswords.events({
"click [data-action=getGroup]" : function(e, t) {
e.preventDefault();
t.$('[data-target=allGroups]').animate({
opacity: 0.25,
left: "-350px",
}, timing);
t.$('[data-target=groupPasswords]').animate({
nestCategories = function(parentId, dashes) {
if (parentId === undefined)
parentId = '';
if (dashes === undefined)
dashes = '';
var list = [];
var categories = Categories.find({parentId: parentId});
categories.map(function(category) {
list.push({