Skip to content

Instantly share code, notes, and snippets.

View spacerockzero's full-sized avatar
🤘
Time And Relative Dimension In Servers

Jakob Anderson spacerockzero

🤘
Time And Relative Dimension In Servers
View GitHub Profile
/*
* anchor-include pattern for already-functional links that work as a client-side include
* Copyright 2011, Scott Jehl, scottjehl.com
* Dual licensed under the MIT
* Idea from Scott Gonzalez
* to use, place attributes on an already-functional anchor pointing to content
* that should either replace, or insert before or after that anchor
* after the page has loaded
* Replace: <a href="..." data-replace="articles/latest/fragment">Latest Articles</a>
* Before: <a href="..." data-before="articles/latest/fragment">Latest Articles</a>
@spacerockzero
spacerockzero / snippet: angular new function
Created November 22, 2013 20:56
Angular - new scope function
$scope.foo = function(){
};
@spacerockzero
spacerockzero / snippet: angular new app template
Created November 22, 2013 17:07
Angular new app template
'use strict';
var app = angular.module("myApp", ['ngRoute']);
app.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/', {
templateUrl: 'partials/home.html',
controller: 'HomeCtrl'
});
$routeProvider.when('/services', {
@spacerockzero
spacerockzero / snippet: angular app module
Created November 22, 2013 16:54
Snippet to make an angular app module
var myApp = angular.module('myApp', []);
angular.module('',[]);
@spacerockzero
spacerockzero / Pull Request Template
Last active December 17, 2015 05:18
100% optional PR template (I leave out as much as possible, keep only what is absolutely needed for each PR). This PR template is written in Github-Flavored Markdown, so it has some nice formatting for headings, checkboxes, lists, etc when you paste it into a github PR. I've found this to be very helpful in clarifying and speeding up handoffs an…
# Problem space:
- We don't have a lot of trust in our pull request communication
- We don't always know what the creator has tested, or where the change is applicable
[insert photo of problem or design mockup, if applicable]
# Changes:
- [ ] ENG-1337 : create the ideal pull request format.
- [ ] Do as much as is absolutely needed, but no more
- [ ] Keep it flexible, and fast, so the reviewer can get up to speed as fast as possible