This file contains 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
package controllers | |
object Users extends Controller { | |
def add = HttpsAction { | |
implicit request => Ok | |
} | |
} |
This file contains 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 iterationsData; | |
var results = document.getElementById('results'); | |
(function () { | |
if (!('localStorage' in window)) { | |
results.innerHTML = 'Your browser has no localStorage support.'; | |
return; | |
} |
This file contains 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
'use strict'; | |
angular.module('frontStreetApp.directives') | |
.directive('psDatetimePicker', function (moment) { | |
var format = 'MM/DD/YYYY hh:mm A'; | |
return { | |
restrict: 'A', | |
require: 'ngModel', | |
link: function (scope, element, attributes, ctrl) { |
This file contains 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
<!-- The dueDate field is a UNIX offset of the date --> | |
<input type="text" | |
ng-model="dueDate" | |
ps-datetime-picker | |
class="form-control"> |
This file contains 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 serialize(object) { | |
return Object.keys(object).map(function (key) { | |
return encodeURIComponent(key) + '=' + encodeURIComponent(object[key]); | |
}).join('&'); | |
} | |
// Example | |
var params = { | |
username: 'cdmckay', | |
password: 'hunter2' |
This file contains 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
if (!String.prototype.format) { | |
(function() { | |
'use strict'; | |
var TEMPLATE_REGEXP = /\${\s*([$_a-z][$_a-z0-9]*)\s*}/ig; | |
var format = function (env) { | |
return this.replace(TEMPLATE_REGEXP, function (_, expr) { | |
return env[expr]; | |
}); | |
}; |
This file contains 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
package actions | |
import play.api.Play | |
import play.api.Play.current | |
import play.api.mvc._ | |
import scala.concurrent.Future | |
object HttpsAction extends ActionBuilder[Request] with Results { | |
def invokeBlock[A](request: Request[A], block: (Request[A]) => Future[Result]) = { |
This file contains 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 () { | |
window.Templates = { | |
templateX: Handlebars.compile("<div>{{ foo }}</div>"); | |
} | |
})(); |
This file contains 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
'use strict'; | |
angular.module('angularApp') | |
.directive('cmInclude', ['$http', '$templateCache', '$anchorScroll', '$compile', | |
function($http, $templateCache, $anchorScroll, $compile) { | |
return { | |
restrict: 'ECA', | |
terminal: true, | |
compile: function(element, attr) { | |
var srcExp = attr.ngInclude || attr.src, |
This file contains 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
==> Detecting CI provider | |
Circle CI Detected | |
==> Preparing upload | |
==> Processing gcov (disable by -X gcov) | |
Executing gcov (find /home/ubuntu/process-street -type f -name '*.gcno' -exec gcov -pb {} +) | |
==> Collecting reports | |
+ /home/ubuntu/process-street/target/scala-2.11/scoverage-data/scoverage.coverage.xml bytes=23057648 | |
+ /home/ubuntu/process-street/target/scala-2.11/coverage-report/cobertura.xml bytes=4840129 | |
+ /home/ubuntu/process-street/target/scala-2.11/scoverage-report/scoverage.xml bytes=11752247 | |
==> Appending adjustments (http://bit.ly/1O4eBpt) |
OlderNewer