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 Person = function (name, age) { | |
this.name = name; | |
this.age = age; | |
} | |
function extend(destination, source) { | |
for (var k in source) { | |
if (source.hasOwnProperty(k)) { | |
destination[k] = source[k]; | |
} |
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
// models/Config.js | |
module.exports = (function () { | |
return function () { | |
var config = { | |
urls : { | |
tabs : { | |
address : '/#address', | |
payment : '/#payment' | |
} | |
}, |
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
// base.js | |
var Config = require(‘models/Config’); | |
var configInstance = new Config(); | |
var config = configInstance.getConfig(); | |
configInstance = null; | |
$(‘.error).html(config.messages.errors.default); |
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
/** | |
* @fileoverview The base object to get configuration | |
* @author hwclass | |
*/ | |
/** | |
* models/Config.js | |
* This object is used to fetch needed configuration parameters | |
*/ |
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
/** | |
* @fileoverview The mediator object file | |
* @author hwclass | |
*/ | |
/** | |
* Mediator.js | |
* This object is used to fetch needed configuration parameters | |
*/ | |
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
/** | |
* @fileoverview The sample js file for Person object | |
* @author hwclass | |
*/ | |
/** | |
* Person.js | |
* This file contains an object to be a reference for new instances | |
*/ | |
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
<span data-bind="text : testText"></span> |
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
NodeJS’İN KONUMU / PERDE ARKASI / YARINI | |
Bir sunucu-taraflı Javascript platformu olarak Node ile bugüne kadar ne yaptık; neler yapılıyor; | |
tartışınca çok şey çıkacak; ama zaman almasın, daha konu çok | |
ES7 | |
Daha 6'yı hallettik; 7'ye mi sıra geldi demesek? Decorator'lar, async metodlar, SIMD ve daha niceleri. | |
FFI: FOREIGN FUNCTION INTERFACE | |
Genel bir programlama tabirinden Node ile kullanımına kadar "kardeş" işlem parçalarınızı nasıl gerçekleştirirsiniz? | |
Yani Node içerisinde nasıl Rust çalıştırırsınız? |
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'; | |
/** | |
* Mock : The data mocking object | |
* @noparam | |
*/ | |
var Mock = function () { | |
var self = this; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Hotel Fantastique</title> | |
<link rel="stylesheet" href="css.css" /> | |
<!--[if lt IE 9]> | |
<script> | |
document.createElement('header'); | |
document.createElement('nav'); | |
document.createElement('section'); |