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
.user-data-block | |
span Name | |
br | |
input(class="custom-input" type="text" name="name" ng-model="user.name" ng-value="user.name" placeholder="Name") | |
.user-data-block | |
span E-mail | |
br | |
input(class="custom-input" type="text" name="e-mail" ng-model="user.email" ng-value="user.email" placeholder="E-mail") | |
.user-data-block.double | |
.user-data-block-small.left |
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 maxTime = 1000, | |
// allow movement if < 1000 ms (1 sec) | |
maxDistance = 50, | |
// swipe movement of 50 pixels triggers the swipe | |
target = $(document), | |
startX = 0, | |
startTime = 0, | |
touch = "ontouchend" in document, | |
startEvent = (touch) ? 'touchstart' : 'mousedown', |
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 mongoose = require('../db/Mongo').Mongoose; | |
var UserModel = require('../db/Mongo').UserModel; | |
var ClientModel = require('../db/Mongo').ClientModel; | |
var AccessTokenModel = require('../db/Mongo').AccessTokenModel; | |
var RefreshTokenModel = require('../db/Mongo').RefreshTokenModel; | |
var faker = require('Faker'); | |
// Tool to generate test User data | |
UserModel.remove({}, function(err) { |
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 Mongoose = require('mongoose'); | |
var Crypto = require('crypto'); | |
var Constants = require('../util/Constants'); | |
var Config = require('../util/Config'); | |
//Mongoose.connect(Config.get('mongo:url')); | |
//Below portion of code is required to support MongoDB connection on both - local and AppFog environments | |
if(process.env.VCAP_SERVICES){ | |
var env = JSON.parse(process.env.VCAP_SERVICES); |
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
WattAttack.module("RidesApp.Show", function (Show, WattAttack, Backbone, Marionette, $, _, Converters) { | |
Show.RideAnalysisWidget = Show.Widget.extend({ | |
... | |
updateWidgetWithData: function () { | |
if (this.model.get("records")) { | |
this.setupRideData(); | |
this.createChart(); | |
this.render(); | |
} | |
}, |
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
ChartVisualisation.prototype.composePowerProfileData = function(){ | |
var dataset = this._self.dataset.power; | |
var labels_length = dataset.length; | |
var shadow_data = [], labels = []; | |
labels[0] = "1 m"; | |
shadow_data[0] = 0; | |
for (var i = 1; i < labels_length; i++){ | |
if (((dataset[i]!==0)&&(dataset[i+1]==0))&&(i%60 == true)){ | |
labels.push(this._dataHelpers.convertSeconds(i)); | |
} else { |
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
while (1) | |
{ | |
if(PINC.0==0){ | |
lcd_init(16); | |
lcd_gotoxy(0,0); | |
i = 0; | |
if(mode==0){ | |
lcd_putsf("set temp"); | |
} else { | |
lcd_putsf("set time"); |
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((mem_time>0)&&(mem_temp>0)){ | |
if(time_stas <= mem_time){ | |
lcd_init(16); | |
lcd_gotoxy(0,0); | |
PORTB.2=1; | |
most_sig_byte=spi(0x00); | |
delay_ms(10); | |
least_sig_byte=spi(0x00); | |
PORTB.2=0; |
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 | |
myString : String; | |
mem1: char; | |
mem2: char; | |
l: int; | |
begin | |
myString := 'Hey! How are you?'; | |
writeln(myString); | |
l := length(myString); | |
mem1 := myString[length-1]; |
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
while (1) | |
{ | |
if(PINC.0==0){ | |
lcd_init(16); | |
lcd_gotoxy(0,0); | |
i = 0; | |
if(mode==0){ | |
lcd_putsf("set temp"); | |
} else { | |
lcd_putsf("set time"); |
OlderNewer