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'); |
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 MessageStore = (function MessageStore () { | |
return { | |
HOLDING_THE_WHELL : 'holding whell...', | |
FIRING_THE_ENGINE : 'firing the engine...', | |
FULLING_THE_TANK : 'fulling the tank...', | |
HOLDING_THE_STICK : 'holding the stick' | |
} | |
})(); |
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
stop: function() { | |
var behaviorInstance, moduleBehaviors; | |
if (!Array.isArray(arguments)) { | |
var element = arguments; | |
var instanceData = getInstanceDataByElement(element); | |
if (!instanceData) { |
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
//Composition builder wrapper | |
const Builder = (() => { | |
compose = (obj, props) => { | |
return Object.assign(obj, props) | |
} | |
return { | |
compose: compose | |
} | |
})(); |
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
class DummyEventEmitter { | |
//it is added to make the publishing feel like an emit | |
//event in EventEmitter library. | |
emit(eventName, callback) { | |
alert(eventName, callback); | |
} | |
} | |
class CounterStore extends DummyEventEmitter { | |
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 () { | |
return { | |
URLS: { | |
ICONS: '...' | |
}, | |
MESSAGES: { | |
FILL_IN_THE_BLANKS: 'Please, fill in the blanks.' | |
} | |
} | |
}()); |
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 reducer = (() => { | |
var ABSOLUTE_STATE = {}; | |
return { | |
get: (actionAlias) => { | |
return ABSOLUTE_STATE[actionAlias]; | |
}, |
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
xyz = "xyz";; | |
Stopped due to error | |
System.Exception: Operation could not be completed due to earlier error | |
The value or constructor 'xyz' is not defined at 2,0 | |
let xyz = "xyz";; | |
val xyz : string = "xyz" | |
"abc";; | |
val it : string = "abc" |