Skip to content

Instantly share code, notes, and snippets.

Avatar

Kannan Kannndev

View GitHub Profile
@crizstian
crizstian / solid.js
Last active Jun 29, 2022
Code examples of SOLID principles for JavaScript
View solid.js
/*
Code examples from the article: S.O.L.I.D The first 5 priciples of Object Oriented Design with JavaScript
https://medium.com/@cramirez92/s-o-l-i-d-the-first-5-priciples-of-object-oriented-design-with-javascript-790f6ac9b9fa#.7uj4n7rsa
*/
const shapeInterface = (state) => ({
type: 'shapeInterface',
area: () => state.area(state)
})
@sid24rane
sid24rane / udp.js
Created Jul 25, 2016
Simple UDP Client and Server in Node.js ==> ( Echo Server )
View udp.js
var udp = require('dgram');
// --------------------creating a udp server --------------------
// creating a udp server
var server = udp.createSocket('udp4');
// emits when any error occurs
server.on('error',function(error){
console.log('Error: ' + error);
@staltz
staltz / introrx.md
Last active Nov 26, 2022
The introduction to Reactive Programming you've been missing
View introrx.md