Ads

Monday, November 2, 2015

How to write Non-disclosure Agreement for Remote employee

Non-Disclosure Agreement


This non-disclosure agreement (“Agreement”), dated as of the submission time in the electronic form below is made between the user of the daceben.com site who is the provider of the professional services (“Freelancer”) and the user of such professional services (“Employer”). For the purposes of enabling the Freelancer to provide the professional services to the Employer, the Employer has agreed to provide the Freelancer with written and oral information (“Confidential Information”) concerning the project which the Freelancer is to complete (“Project”) subject to the terms of this Agreement.

The parties agree as follows:

1. The Confidential Information shall be kept in strict confidence by the Freelancer and shall not be used, without the Employer’s prior written consent, for any purpose other than in connection with the completion of the Project. The Confidential Information shall not be disclosed to any persons other than those Representatives (as defined below) who have a need to know. “Representatives” shall mean the affiliates, directors, officers, employees, professional advisers and agents of the Freelancer. The Freelancer shall inform its Representatives of the confidential nature of the Confidential Information and shall direct its Representatives to hold the Confidential Information in strict confidence.

2. The restrictions in paragraph 1 shall not apply to any information which: (a) is or becomes generally available to the public through no violation of this Agreement; (b) was available to the Freelancer on a non-confidential basis prior to its disclosure to the Freelancer by the Employer; (c) becomes available to the Freelancer on a non-confidential basis from a source other than the Employer provided that such source is not bound by an Agreement with the Employer; or (iv) is required to be disclosed to any court, regulatory authority, other governmental authority or pursuant to any requirement of law.

3. At the request of the Employer, the Freelancer shall return all Confidential Information received from the Employer and shall not retain any copies of, or other reproductions or extracts of, the Confidential Information, except as it may retain in accordance with prudent business practices (any retained material shall remain subject to the provisions of this Agreement without any time limit).

4. The Freelancer acknowledges and agrees that the Employer is not making any representation or warranty, express or implied, as to the accuracy, correctness or completeness of the Confidential Information. The Freelancer agrees that neither the Employer nor any of its affiliates, directors, officers, employees, professional advisers or agents shall have liability to the Freelancer resulting from the use of the Confidential Information by the Freelancer or the Representatives.

5. Notwithstanding any other remedies which may be available to the Employer, the Freelancer indemnifies and must keep the Employer indemnified against any loss or expense suffered or incurred by the Employer directly or indirectly in connection with or arising out of or as a result of the breach by the Freelancer or its Representatives of any of the terms of this Agreement.

6. This Agreement is governed by and shall be construed in accordance with the laws of the Kolkata,
India (Give here states and country name where your business setup) and the parties irrevocably submit to the non-exclusive jurisdiction of the courts of the Kolkata, India. The duration of this Agreement is 12 (twelve) months from the date of this Agreement.

7. This Agreement shall not be amended or modified, and none of the provisions shall be waived, except in writing signed on behalf of the parties or, in the case of a waiver, on behalf of the party making the waiver.

This Agreement relates to the confidentiality agreed upon for the project:
“Project Name” listed Project Listed Time

Agreed to by the Freelancer
Party A, Sign Time.

Agreed to by the Employer
Party B, Sign Time.

You can found related technical books on discount rate at amazon.com  

Wednesday, September 30, 2015

Code Study - Tic-Tac-Toe in ASP



The coding is only for tutorial purpose. This is the simple Tic-Tac-Toe game written in ASP.

Option Explicit


' -- Set up images to use ---
Const IMGx = "x.jpg"
Const IMGo = "o.jpg"
Const IMGblank = "blank.jpg"

' -- Set up game States ---
Const END_Not_Yet = 0
Const END_You_Win = 1
Const END_Computer_Win = 2
Const END_Tie = 3

' Read in board or Initialise
Dim Gameboard
Dim wl1,wl2,wl3,wl4,wl5,wl6,wl7,wl8

If Session("GameBoard") & "" = "" OR Request("PlayAgain") = "Yes" Then
PlayAgain
end if

GameBoard = Split(Session("GameBoard"),"_")


function GameState()

wl1 = GameBoard(0) & GameBoard(1) & GameBoard(2)
wl2 = GameBoard(0) & GameBoard(3) & GameBoard(6)
wl3 = GameBoard(0) & GameBoard(4) & GameBoard(8)
wl4 = GameBoard(1) & GameBoard(4) & GameBoard(7)
wl5 = GameBoard(3) & GameBoard(4) & GameBoard(5)
wl6 = GameBoard(6) & GameBoard(7) & GameBoard(8)
wl7 = GameBoard(2) & GameBoard(5) & GameBoard(8)
wl8 = GameBoard(6) & GameBoard(4) & GameBoard(2)

if wl1="XXX" or wl2="XXX" or wl3="XXX" or wl4="XXX" or wl5="XXX" or wl6="XXX" or wl7="XXX" or wl8="XXX" Then
GameState = END_You_Win
elseif wl1="OOO" or wl2="OOO" or wl3="OOO" or wl4="OOO" or wl5="OOO" or wl6="OOO" or wl7="OOO" or wl8="OOO" Then
GameState = END_Computer_Win
elseif Instr ( wl1 & wl5 & wl6 ,"B" ) = 0 then
GameState = END_Tie
else
GameState = END_Not_Yet
end if

end function


Function Suggest()

If wl1 = "XXB" or wl1 = "OOB" Then
Suggest = 2
elseif wl1 = "XBX" or wl1 = "OBO" Then
Suggest = 1
elseif wl1 = "BXX" or wl1 = "BOO" Then
Suggest = 0
elseif wl2 = "XXB" or wl2 = "OOB" Then
Suggest = 6
elseif wl2 = "XBX" or wl2 = "OBO" Then
Suggest = 3
elseif wl2 = "BXX" or wl2 = "BOO" Then
Suggest = 0
elseif wl3 = "XXB" or wl3 = "OOB" Then
Suggest = 8
elseif wl3 = "XBX" or wl3 = "OBO" Then
Suggest = 4
elseif wl3 = "BXX" or wl3 = "BOO" Then
Suggest = 0
elseif wl4 = "XXB" or wl4 = "OOB" Then
Suggest = 7
elseif wl4 = "XBX" or wl4 = "OBO" Then
Suggest = 4
elseif wl4 = "BXX" or wl4 = "BOO" Then
Suggest = 1
elseif wl5 = "XXB" or wl5 = "OOB" Then
Suggest = 5
elseif wl5 = "XBX" or wl5 = "OBO" Then
Suggest = 4
elseif wl5 = "BXX" or wl5 = "BOO" Then
Suggest = 3
elseif wl6 = "XXB" or wl6 = "OOB" Then
Suggest = 8
elseif wl6 = "XBX" or wl6 = "OBO" Then
Suggest = 7
elseif wl6 = "BXX" or wl6 = "BOO" Then
Suggest = 6
elseif wl7 = "XXB" or wl7 = "OOB" Then
Suggest = 8
elseif wl7 = "XBX" or wl7 = "OBO" Then
Suggest = 5
elseif wl7 = "BXX" or wl7 = "BOO" Then
Suggest = 2
elseif wl8 = "XXB" or wl8 = "OOB" Then
Suggest = 2
elseif wl8 = "XBX" or wl8 = "OBO" Then
Suggest = 4
elseif wl8 = "BXX" or wl8 = "BOO" Then
Suggest = 6
else
Suggest = -1
end if

end function


sub yourChoice(Position)

if Session("State") = "Dead" Then
ReportEnded
Else
If GameBoard(Position) <> "B" Then
ReportTaken
else
GameBoard(Position) = "X"
end if
end if
end sub


sub ReportTaken()
Response.Write "

That square is already occupied. Please select another square.

"
end sub

sub ReportEnded()
Response.Write "

The game has already ended. To play a new game click the Play Again button.

"
end sub



sub myChoice()
Dim NewMove

NewMove = Suggest()

While NewMove = -1
Randomize
NewMove=int(rnd*9)
If GameBoard(NewMove) <> "B" Then
NewMove = -1
End If
wend

GameBoard(NewMove) = "O"
end sub




sub ProcessBoard()

If Session("State") = "Alive" Then

Select Case GameState()
Case END_You_Win
Response.Write "

You won, congratulations!

"
Session("you") = Session("you") + 1
Session("State") = "Dead"

Case END_Computer_Win
Response.Write "

Gotcha! I win!

"
Session("computer") = Session("computer") + 1
Session("State") = "Dead"

Case END_Tie
Response.Write "

We tied.

"
Session("ties") = Session("ties") + 1
Session("State") = "Dead"

end Select

End If

end sub


sub playAgain()
Session("GameBoard") = "B_B_B_B_B_B_B_B_B"
Session("State") = "Alive"
end sub


sub Display(CellNum)

If GameBoard(CellNum) = "B" Then
Response.Write "
"
Response.Write ""
Response.Write ""
Response.Write "
"
elseif GameBoard(CellNum) = "O" Then
Response.Write ""
elseif GameBoard(CellNum) = "X" Then
Response.Write ""
end if

end sub


' Main Code
If Request("Pressed") & "" <> "" Then

YourChoice(Request("Pressed"))

ProcessBoard
If GameState() = END_Not_Yet Then
myChoice
End If
ProcessBoard

' Save Game State
Session("GameBoard") = Join(GameBoard,"_")

End If
%>








Welcome to Tic-Tac-Toe! You play as the X's and the computer is the O's. Select the square you want to put your X into by clicking them. You cannot occupy a square that is already occupied. The first player to get three squares in a row wins. Good Luck!!


















<% Display(0) %><% Display(1) %><% Display(2) %>
<% Display(3) %><% Display(4) %><% Display(5) %>
<% Display(6) %><% Display(7) %><% Display(8) %>






>You
>Computer
>Ties