I hereby claim:
- I am iamjohnlong on github.
- I am rangafangs (https://keybase.io/rangafangs) on keybase.
- I have a public key whose fingerprint is 5E27 DDCA 7D75 C0AE 9F42 0572 683F 4192 3282 C09C
To claim this, I am signing this object:
// The profile model | |
var profile = require('./profile').get() | |
profile.then(function() { | |
AppRouter() | |
}, function() { | |
LoginRouter() | |
}) | |
function AppRouter() { |
.img-grad( | |
@color: "#fff", | |
@bgimg: "..", | |
@pos: 50% 50%, | |
@repeat: repeat, | |
@begin: #fff, | |
@end: #000, | |
) { | |
/* browsers without support for multiple bgs */ | |
background: @color @bgimg @pos @repeat; |
bootstrap-tooltip.js | |
bootstrap-popover.js | |
bootstrap-alert.js | |
bootstrap-button.js | |
bootstrap-carousel.js | |
bootstrap-collapse.js | |
bootstrap-dropdown.js | |
bootstrap-modal.js | |
bootstrap-scrollspy.js | |
bootstrap-tab.js |
// Paste in console. | |
function getScopes(root) { | |
var scopes = []; | |
function traverse(scope) { | |
scopes.push(scope); | |
if (scope.$$nextSibling) | |
traverse(scope.$$nextSibling); | |
if (scope.$$childHead) | |
traverse(scope.$$childHead); |
module.directive "someDirectiveDispatcher", (Messenger)-> | |
return{ | |
restrict: "E" | |
template: "<h1>Test</h1>" | |
controller: ($scope)-> | |
$scope.elementClickEvent = ()-> | |
Messenger.call Messenger.REFRESH_SOMETHING | |
} |
I hereby claim:
To claim this, I am signing this object:
// articles per page | |
var limit = 10; | |
// pagination middleware function sets some | |
// local view variables that any view can use | |
function pagination(req, res, next) { | |
var page = parseInt(req.params.page) || 1, | |
num = page * limit; | |
db.articles.count(function(err, total) { | |
res.local("total", total); |