Skip to content

Instantly share code, notes, and snippets.

View mongoid_prefixable.rb
# uber-hacky dynamic collection names for MongoID models:
# class MyModel
# include Mongoid::PrefixableDocument # ...instead of Mongoid::Document
# include Mongoid::Timestamps
# field :foobar, :type => Integer
# def my_method; 123; end

Business Models


Models Examples
Display ads Yahoo!
Search ads Google
dedene / bootstrap-consul
Last active August 29, 2015 14:04 — forked from philips/user-data
View bootstrap-consul
source /etc/environment
name=$(cat /etc/machine-id)
if [ ! -f /opt/consul ]; then
mkdir /opt
mkdir /var/lib/consul

Your Vision

What is a vision?

Your vision answers the question "What do I want?" A clear vision help you communicate why you're here and what impact you're going to have.

Your vision should be aligned with the company vision, with your manager's V2MOM, and it should be personal. It should be an honest reflection of your own vision for your own work.

If you manage a team, it should be reflective of the purpose of the team and your collective impact.

View gist:e5804bffcac7d9a2c402
using System;
using System.Collections.Generic;
using System.Linq;
using MonoTouch.MessageUI;
using MonoTouch.UIKit;
namespace MyApp
public interface ICanCleanUpMyself
View FastCell.cs
using System;
using Xamarin.Forms;
namespace TwinEvents.Core.Media.View
public class FastCell : ViewCell
dedene / TextMeter.cs
Last active August 29, 2015 14:21 — forked from rudyryk/TextMeter.cs
View TextMeter.cs
// TextMeter.cs
// Created by Alexey Kinev on 11 Feb 2015.
// Licensed under The MIT License (MIT)
// Copyright (c) 2015 Alexey Kinev <>
// Usage example:
View genymotionwithplay.txt
Download the following ZIPs:
ARM Translation Installer v1.1 (
Download the correct GApps for your Android version:
Google Apps for Android 5.1 ( -
Google Apps for Android 5.0 ( -
Google Apps for Android 4.4.4 ( -
Google Apps for Android 4.3 ( -
Google Apps for Android 4.2 ( -