Skip to content

Instantly share code, notes, and snippets.

View hwclass's full-sized avatar

Barış Güler hwclass

View GitHub Profile
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?
'use strict';
/**
* Mock : The data mocking object
* @noparam
*/
var Mock = function () {
var self = this;
<!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');
@hwclass
hwclass / MessageStore.js
Last active March 17, 2016 09:54
Mixin Builder : An example using compositional inheritance to create new functionalities by mixin curations.
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'
}
})();
stop: function() {
var behaviorInstance, moduleBehaviors;
if (!Array.isArray(arguments)) {
var element = arguments;
var instanceData = getInstanceDataByElement(element);
if (!instanceData) {
//Composition builder wrapper
const Builder = (() => {
compose = (obj, props) => {
return Object.assign(obj, props)
}
return {
compose: compose
}
})();
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 {
(function () {
return {
URLS: {
ICONS: '...'
},
MESSAGES: {
FILL_IN_THE_BLANKS: 'Please, fill in the blanks.'
}
}
}());
var reducer = (() => {
var ABSOLUTE_STATE = {};
return {
get: (actionAlias) => {
return ABSOLUTE_STATE[actionAlias];
},
@hwclass
hwclass / formulas.fs
Created January 23, 2017 23:51
F Sharp Notes
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"