Skip to content

Instantly share code, notes, and snippets.

View rachaelshaw's full-sized avatar
🕷️
"The spider didn't answer. She was very busy spinning her web."

Rachael Shaw rachaelshaw

🕷️
"The spider didn't answer. She was very busy spinning her web."
View GitHub Profile
angular.module('TreelineExample').controller('AppCtrl', [
'$scope', '$timeout', '$http',
function ($scope, $timeout, $http){
console.log('running!');
$scope.homepage = {};
$scope.homepage.messageSent = false;
$scope.sendmessage = function() {
@rachaelshaw
rachaelshaw / gravatar-directive.js
Created December 4, 2014 19:51
Gravatar Angular Directive
/**
* gravatar
* ------------------------------------------------------------------------
* This is a custom directive for using gravatars.
*
* Usage:
* ```
* <gravatar email="[email protected]"
* default-img="http://placecage.com/c/200/200"></gravatar>
* ```
@rachaelshaw
rachaelshaw / angular-rainbow.md
Last active April 26, 2016 06:31
Using Rainbow syntax highlighter with AngularJS
@rachaelshaw
rachaelshaw / sails-generator-setup.md
Last active August 29, 2015 14:06
How to set up a Sails generator

#How to set up a Sails Generator

cd into the directory where you keep this kind of thing, and do:

sails generate generator GENERATOR-NAME

cd GENERATOR-NAME
@rachaelshaw
rachaelshaw / install-v0.10.sh
Created February 2, 2014 05:11
how to install the v0.10 version of sails
#
# Installing the v0.10 "edge" version of Sails
#
$ sudo npm install -g sails@git://github.com/balderdashy/sails.git#v0.10