One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| function simpleForLoopToShowVarBehavior() { | |
| for(var i = 0; i < 10; i++) { | |
| console.log(i); // You may think that i is scoped only inside this for loop | |
| } | |
| console.log(i); // Voila, for some magical reason you see '10' as output of this line | |
| // which means Javascript Var is not the variable declaration that you dreamt of | |
| // The i variable gets the value '10' from the last iteration of the for loop | |
| } |
| function simpleForLoopToShowVarBehavior() { | |
| for(var i = 0; i < 10; i++) { | |
| console.log(i); // You may think that i is scoped only inside this for loop | |
| } | |
| console.log(i); // Voila, for some magical reason you see '10' as output of this line | |
| // which means Javascript Var is not the variable declaration that you dreamt of | |
| // The i variable gets the value '10' from the last iteration of the for loop | |
| } |
| #!/bin/bash | |
| # PhalconPhp with PHP7 installation on ubuntu:16.04 | |
| sudo apt-get update | |
| sudo apt-get install -y php7.0-fpm \ | |
| php7.0-cli \ | |
| php7.0-curl \ | |
| php7.0-gd \ |
| # find all the indices of a duplicate item | |
| def list_duplicates_of(seq,item): | |
| start_at = -1 | |
| locs = [] | |
| while True: | |
| try: | |
| loc = seq.index(item,start_at+1) | |
| except ValueError: | |
| break | |
| else: |
| <!DOCTYPE HTML> | |
| <%@ page import="java.sql.*" %> | |
| <%@ page import="java.io.*" %> | |
| <HTML> | |
| <head> | |
| <title>This is a jsp page</title> | |
| </head> | |
| <body> |
| /** | |
| * This program shows a class with methods and also implements | |
| * encapsulation by getter and setter methods. | |
| * | |
| * @author Abir Khan A.K.A AbSak | |
| * @version April 01, 2016 | |
| */ | |
| public class Cricketer3 { | |
| /* Instance variables */ | |
| private String name = ""; |
| /** | |
| * This program shows how two objects of the same class can | |
| * hold their own values separately and act independently. | |
| * | |
| * @author Abir Khan A.K.A AbSak | |
| * @version 2.0 | |
| */ | |
| public class Cricketer2 { | |
| private String name = ""; | |
| private int runs = 0; |
| /** | |
| * This program shows how to create a class with only instance | |
| * variables in it, how to declare an object, how to manipulate an | |
| * instance variable and show their value. | |
| * | |
| * @author Abir Bin Ayub Khan A.K.A AbSak | |
| * @version March 28, 2016 | |
| * | |
| */ | |
| public class Cricketer1 { |