Skip to content

Instantly share code, notes, and snippets.

View owenmead's full-sized avatar

Owen Mead-Robins owenmead

View GitHub Profile

What I Wish I'd Known About Equity Before Joining A Unicorn

Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.

This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would

@owenmead
owenmead / gist:037944b82a5ad11d7067
Last active March 12, 2016 23:25
Ionic Instructions
@owenmead
owenmead / app.js
Last active December 27, 2015 17:19
angular.module('myApp')
.controller('PrimaryCtrl', function($scope, $routeParams, investigationModel) {
var investigationId = $routeParams.id;
$scope.investigation = investigationDetailModel.investigation;
$scope.another_function = function() {
// blah blah blah
$scope.investigation.$save();
}
angular.module('myApp').directive('myChart', function () {
var draw_line_chart = function(scope) { ... }
var draw_bar_chart = function(scope) { ... }
var setup_chart_interactions = function(scope) { ... }
// other helper functions ...
return {
templateUrl: '/views/my-chart.html',
restrict: 'E',
@owenmead
owenmead / people_angular_service.js
Created March 22, 2013 17:07
Basic Angular service talking to a resource
angular.module('myApp')
.factory('people', function($resource, $q) {
var people_resource = $resource(myApp.API_BASE_URL + '/people/:personId');
// Public API here
return {
getList: function() {
var deferred = $q.defer();
var people = people_resource.query(function() {