This file contains hidden or 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 initMap() { | |
| var contentString = '<div id="content">'+ | |
| '<div id="bodyContent">'+ | |
| '<p><h3>Sysetup.com</h3>' + | |
| '<address class="md-margin-bottom-40">'+ | |
| '<i class="fa fa-phone"></i> <a href="tel:+573116417210">COL: (+57) 311 641 7210 </a> <br>'+ | |
| '<i class="fa fa-phone"></i> <a href="tel:+573209004589">COL: (+57) 320 900 4589 </a> <br>'+ | |
| '<i class="fa fa-home"></i> Cll 2 14-02, 630004 Armenia Q. Colombia. <br>'+ | |
| '<i class="fa fa-envelope"></i> <a href="mailto:contact@sysetup.com">contact@sysetup.com</a>'+ | |
| '</address>'+ |
This file contains hidden or 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 lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <section> |
This file contains hidden or 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
| app.get('/',function(req,res){ | |
| res.sendFile('index.html'); | |
| }); |
This file contains hidden or 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 config1 = { | |
| local: { | |
| mode: 'local', | |
| port: 3000, | |
| mongo: { | |
| host: '127.0.0.1', | |
| port: 27017 | |
| }, | |
| connect : [3,2,1,0], | |
| 'sock' : [3,2,1,0] |
This file contains hidden or 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 foo(bar) { | |
| var bar = bar || 0; //This sets bar to 0 if it's not already set | |
| console.log(bar); | |
| } | |
| foo(); | |
| foo(1); |
This file contains hidden or 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 l = 5, | |
| b = 5; | |
| function sayHello(greeting){ | |
| greeting(function(){ | |
| return 'Hello world' | |
| }); | |
| } | |
| function area1(x,y,callback){ |
This file contains hidden or 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 rect = require('./module'); | |
| function solveRect(l,b) { | |
| console.log("Solving for rectangle with l = " + l + " and b = " + b); | |
| rect(l,b, function(err,rectangle) { | |
| if (err) { | |
| console.log(err); | |
| } | |
| else { | |
| console.log("The area of a rectangle of dimensions length = " + l + " and breadth = " + b + " is " + rectangle.area()); |
This file contains hidden or 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 greetCurried = function(greeting) { | |
| return function(name) { | |
| console.log(greeting + ", " + name); | |
| }; | |
| }; | |
| var greetHello = greetCurried("Hello"); | |
| //console.log('greetHello: ' + greetHello()); | |
| greetHello("Heidi"); //"Hello, Heidi" | |
| greetHello("Eddie"); //"Hello, Eddie" |
This file contains hidden or 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 txt = ""; | |
| var x; | |
| function Person(first, last, age, sex) { //Object prototype (Object constructor function) | |
| this.firstName = first; | |
| this.lastName = last; | |
| this.age = age; | |
| this.sex = sex; | |
| this.changeFirstName = function (name) { | |
| this.firstName = name; |
This file contains hidden or 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> | |
| <body> | |
| <p>Please input a number between 5 and 10:</p> | |
| <input id="demo" type="text"> | |
| <button type="button" onclick="myFunction()">Test Input</button> | |
| <p id="message"></p> | |
| <script> |