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 main(data){ | |
return data.name; | |
} |
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 main(data){ | |
return data.name; | |
} |
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 multipleTest1() { | |
// Test | |
var result = calculator.multiply( 3, 3 ); | |
//Assert Result is expected | |
if( result === 9 ){ | |
console.log( "Test Passed" ); | |
}else{ | |
console.log( "Test Failed" ); | |
} | |
} |
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 calculator = { | |
multiply: function( numberA, numberB ){ | |
return numberA * numberB; | |
} | |
}; | |
multipleTest1(); |
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
module.exports = function( config ){ | |
config.set({ | |
browsers: ['PhantomJS'], | |
frameworks: ['mocha'], | |
files: [ | |
//Vendors | |
"www/build/js/vendors.js", | |
//Vendors for testing | |
"www/lib/angular-mocks/angular-mocks.js", | |
'www/lib/chai/chai.js', |
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
gulp.task('server', function() { | |
browserSync.init({ | |
host: "0.0.0.0", | |
notify: false, | |
port: 8080, | |
server: { | |
baseDir: ['User/templates/User', 'app'] | |
}, | |
}); | |
}); |
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
/* Avoid */ | |
var abc = function(z) { | |
var x = false; | |
if( z > 10 ){ | |
return true; | |
} | |
return x; | |
}; | |
/* Recommend */ | |
var isTenOrGreater = function( value ){ |
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
<ica-accordion auto-open="false"> | |
<ica-accordion-item type="item" title="52569" badge-left-icon="icon-info" item-note="Bogotá D.C. - Cúcuta / 7 de Octubre"> | |
<!-- Body --> | |
<div class="row"> | |
<div class="col padding"> | |
<p>El texto que deba Ir.........</p> | |
</div> | |
</div> | |
</ica-accordion-item> |
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
<html> | |
<head> | |
<style> | |
body { | |
background: #4E8EF7; | |
} | |
svg{ | |
position:fixed; | |
top:50%; | |
left:52%; |
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
return new Promise(resolve => { | |
this.http.get('https://randomuser.me/api/?results=25') | |
.map(res => res.json()) | |
.subscribe(data => { | |
this.data = data.results; | |
resolve(this.data); | |
}); | |
}); |
OlderNewer