Skip to content

Instantly share code, notes, and snippets.

View yoamomonstruos's full-sized avatar

Tom Bates yoamomonstruos

View GitHub Profile
{
"color_scheme": "Packages/Color Scheme - Default/base16-ocean.dark.tmTheme",
"draw_white_space": "all",
"file_exclude_patterns":
[
"*.lock",
".DS_Store"
],
"folder_exclude_patterns":
[
url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAAHdbkFIAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjhCREIxRERCN0QyMjExRTNCOTU1QTk2QjFGRDY2MDlEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjhCREIxRERDN0QyMjExRTNCOTU1QTk2QjFGRDY2MDlEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6OEJEQjFERDk3RDIyMTFFM0I5NTVBOTZCMU
{
"color_scheme": "Packages/User/base16-ocean.dark (SL).tmTheme",
"create_window_at_startup": false,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.lock",
".DS_Store"
],
// Session.setDefault('sidebar-view-state', null);
// Session.setDefault('sidebar-drawer-state', null);
// Session.setDefault('sidebar-sub-drawer-state', null);
Carts = new Meteor.Collection('carts');
Products = new Meteor.Collection('products');
Payments = new Meteor.Collection('payments');
Meteor.methods({ });
@yoamomonstruos
yoamomonstruos / Requirements.md
Last active August 29, 2015 14:04
Recorder Directive
bower install --save Recorderjs

Then change line 3 in recorder.js

  var WORKER_PATH = 'bower_components/Recorderjs/recorderWorker.js';

CSS Styleguide

Lets try to stick to these rules which have been adapted for our needs from Github's styleguide.

Spacing

  • Use soft-tabs with a two space indent. Spaces are the only way to guarantee code renders the same in any person's environment.
  • Put spaces after : in property declarations.
  • Put spaces before { in rule declarations.
@yoamomonstruos
yoamomonstruos / tableview.js
Created December 23, 2014 13:55
TableView.js
var TableView = {
setup: {
collection: function () {
var collection = this.data.collection || this.data.settings.collection || this.data,
filtration = this.data.crossfilter,
filters = this.data.filters.get() || {},
_this = this,
result;
if (!(collection instanceof Meteor.Collection) && _.isFunction(collection.fetch)) {
@yoamomonstruos
yoamomonstruos / model.js
Created March 23, 2015 16:13
Meteor Model
// An Animal class that takes a document in its constructor
Animal = function (doc) {
_.extend(this, doc);
};
_.extend(Animal.prototype, {
makeNoise: function () {
console.log(this.sound);
}
});
@yoamomonstruos
yoamomonstruos / gist:1299529
Created October 19, 2011 20:14
CSM: Processing
/**
* Minor modifications (by Rebecca, Angus, Ben) to
* Shared Drawing Canvas (Client)
* by Alexander R. Galloway.
*
* The Processing Client class is instantiated by specifying a remote
* address and port number to which the socket connection should be made.
* Once the connection is made, the client may read (or write) data to the server.
* Before running this program, start the Shared Drawing Canvas (Server) program.
*/
@yoamomonstruos
yoamomonstruos / Toms Numbers
Created March 14, 2012 17:39
Drawing random numbers like robot
void setup() {
size(600, 600);
background(255, 255, 255);
frameRate(10);
}
void draw() {
// Random Colour Generator
float r = random(0, 255);
float g = random(0, 255);