This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
{ “registry”: “https://bower.mydomain.com:5678" } |
<base href="/"> | |
<!--[if lt IE 10]> | |
<script> | |
var origin = location.protocol+'//'+location.hostname+(location.port ? ':'+location.port: ''); | |
document.write('<base href="' + origin + '"/>'); | |
</script> | |
<![endif]--> |
This is the Ractive.js clock example implemented in AngularJS. A working Plunkr is also available.
Much of the JavaScript, most of the HTML, and all of the CSS was taken directly from the Ractive.js example for minimal differences in the samples.
protractor.wrapDriver | |
protractor.setInstance | |
protractor.getInstance | |
protractor.By | |
protractor.By.binding | |
protractor.By.select | |
protractor.By.selectedOption | |
protractor.By.input | |
protractor.By.repeater |
class Api::RegistrationsController < Api::BaseController | |
respond_to :json | |
def create | |
user = User.new(params[:user]) | |
if user.save | |
render :json=> user.as_json(:auth_token=>user.authentication_token, :email=>user.email), :status=>201 | |
return | |
else |
web: node server |
angular.module('app').filter('humanizeConstant', function(){ | |
return function(text) { | |
if(text) { | |
var string = text.split("_").join(" ").toLowerCase(); | |
var string = string.charAt(0).toUpperCase() + string.slice(1); | |
return string | |
}; | |
}; | |
}); |
var NavBarHeight = 70 // Change this variable to controll the top of the scroll. | |
$('a[href*=#]').each(function() { | |
var target; | |
target = $(this).attr('href'); | |
return $(this).on('click', function(e) { | |
e.preventDefault(); | |
setToActive($(this)); | |
// Google Analitycs event tracking. |
// Add method contains to Array Prototype. | |
Array.prototype.contains = function(obj) { | |
var i = this.length; | |
while (i--) { | |
if(this[i] === obj) { return true; } | |
} | |
return false; | |
} |
#!/bin/sh | |
# Execution: | |
# Without arguments the script will copy everythin on the $path | |
# ~ sh deploy.sh | |
# | |
# Or you can especify files or folders to copy via arguments. | |
# ~ sh deploy.sh index.html styles myfile.txt | |
# Folder: |