admin
8 years ago no comment
Tags:Regex

Regular Expression - REGEX

1. Pola 1.1 Spesial Karakter \ tanda yang diawali dengan \kemudian diakhiri dengan karakter bukan huruf dan angka semisal \/  untuk karakter "/"  \s untuk karakter spasi atau tab atau line break. . semua karakter kecuali newlin


 

admin
8 years ago no comment
Tags:CSS

CSS

Cascading Style Sheets CSS is code that changes the appeareance of HTML. One place you can put CSS in a style tag that's a child of the head tag. <!DOCTYPE html><html lang="en"><head> <style type="text/css">


 

admin
8 years ago no comment
Tags:Redis

Nodejs part 7 Redis

Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs.Redis command using : "npm inst


 

Nodejs part 6 Socket.io

Socket.io Socket.IO enables real-time bidirectional event-based communication.It works on every platform, browser or device, focusing equally on reliability and speed. Example 1 chats with express app.js var express = require('express'), app =


 

Nodejs Part 5 Express

Routing Routing refers to the definition of end points (URIs) to an application and how it responds to client requests. A route is a combination of a URI, a HTTP request method (GET, POST, and so on), and one or more handlers for the endpoint. It t


 

admin
8 years ago no comment
Tags:NodeJS

Nodejs Part 4 Modules

Modules Node has a simple module loading system. In Node, files and modules are in one-to-one correspondence. As an example, app.js loads the module hello.js  and custom_goodbye.js in the same directory. //hello.jsvar hello = function(){


 

admin
8 years ago no comment
Tags:NodeJS

Nodejs Part 3 Streaming

Streaming A stream is an abstract interface implemented by various objects in Node. For example a request to an HTTP server is a stream, as is stdout. Streams are readable, writable, or both. All streams are instances of EventEmitter You can load t


 

admin
8 years ago no comment
Tags:NodeJS

Nodejs Part 2 events

Events and EventEmitter  Many objects in Node emit events: a net.Server emits an event each time a peer connects to it, a fs.readStream emits an event when the file is opened. All objects which emit events are instances of events.EventEmit


 

admin
8 years ago no comment
Tags:NodeJS

Nodejs Part 1 http server

What is Nodejs  Allows you to build scalable network applications using Javascript on the server side. What could you build - Websocket Server (like chatting system)- Fast File Upload Client- Ad Server- Any Real-Time Data Apps What i


 

create vpn

wget https://raw.github.com/viljoviitanen/setup-simple-pptp-vpn/master/setup.sh sudo sh setup.sh