This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div ng-app="timepickerDemoApp"> | |
<div ng-controller="timepickerDemoController"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function buildTimes() { | |
var times = []; | |
for (var i=-1;i<23;++i) { | |
var idx = (i+1); | |
var ampm = (idx>12 ? 'pm' : 'am'); | |
var time = (idx>12 ? idx%12 : (idx>0 ? idx : 12)); | |
if (idx==24) time = 12; | |
var t = time + ':00' + ampm; | |
times.push(t); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- | |
//- Albums, Galleries & Images Mixins | |
//- ----------------------------------- | |
//- | |
//- This is where the mixins for general | |
//- kindreviews images mixins. | |
//- | |
//- placer | |
//- default image not found placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//- | |
//- Albums, Galleries & Images Mixins | |
//- ----------------------------------- | |
//- | |
//- This is where the mixins for general | |
//- kindreviews images mixins. | |
//- | |
//- placer | |
//- default image not found placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mixin pagination(current, total, limit) | |
- limit = limit || 40; | |
- current = current+1; | |
- total = Math.ceil(total / limit); | |
- prev = (current <= 1 ? 1 : current); | |
- next = (current + 1); | |
ul.pagination.pagination-sm | |
li: a(href="?page=#{prev}") « | |
- for(var i=0;i<total;++i) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('./request'), | |
expect = require('expect.js'); | |
describe('Request Library Test Suite', function() { | |
it('should be able to handle a GET request to github', function(done) { | |
var opts = { | |
url: 'https://api.github.com/users/dhigginbotham', | |
headers: { | |
'User-Agent': 'dhigginbotham', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (root, doc) { | |
// var schema = { | |
// target: 'elementalTarget', | |
// method: 'append', | |
// type: 'div', | |
// className: 'elemental-default', | |
// data: { | |
// elemental: 'div' | |
// }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ = require "lodash" | |
rest = (opts) -> | |
# simple prefix, ie http://localhost:1337/api/:collection/:id? | |
@prefix = '/api' | |
@path = null | |
@key = 'collection' |