#Coding Conventions
Use camelCase for variable naming. Also use full word where possible
Good variable names: user, userAddress, stockInfo, tempUserLocalAddress etc.
Bad variable names: user\_data, new_user etc.
| string script=string.Format(@"function IDIssue() { | |
| var ctrl1=document.getElementById('{0}'); | |
| var ctrl2=document.getElementById('{1}'); | |
| var ctrl3=document.getElementById('{2}'); | |
| // add necessary implemenation here | |
| }", | |
| ctrl1.ClientID, ctrl2.ClientID, ctrl3.ClientID | |
| ); |
| string[] paramsStr=new string[4]; | |
| paramsStr[0]=ctrl1.ClientID; | |
| paramsStr[1]=ctrl2.ClientID; | |
| paramsStr[2]=ctrl3.ClientID; | |
| paramsStr[3]=ctrl4.ClientID; | |
| string script=string.Format(@"function IDIssue() { | |
| var ctrl1=document.getElementById('{0}'); | |
| var ctrl2=document.getElementById('{1}'); | |
| var ctrl3=document.getElementById('{2}'); |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" > | |
| <head> | |
| <title>Untitled Page</title> | |
| <script language="javascript" type="text/javascript"> | |
| var NumOfRow = 1; | |
| function Button1_onclick(){ |
| $facebook = new Facebook(array( | |
| 'appId' => FACEBOOK_APP_ID, | |
| 'secret' => FACEBOOK_APP_SECRET, | |
| )); | |
| // Get User ID | |
| $result = ''; | |
| $user_id = $facebook->getUser(); | |
| if ($user_id) { | |
| $access_token = $facebook->getAccessToken(); |
| /** | |
| * User: Sohel | |
| * Date: 6/3/16 | |
| * Time: 11:49 AM | |
| */ | |
| var sys = require('sys'); | |
| var exec = require('child_process').exec; | |
| var child; |
| /** | |
| * finds the highest product of the three items passed in | |
| * @param arrayOfInts<type array> | |
| */ | |
| function highestProductOf3(arrayOfInts) { | |
| if (arrayOfInts.length < 3) { | |
| throw new Error('Less than 3 items!'); | |
| } | |
| // we're going to start at the 3rd item (at index 2) |
| function find (x) { | |
| if (x === 10) { | |
| return Promise.resolve(10); | |
| } else { | |
| return new Promise(function (resolve, reject) { | |
| try { | |
| if (x === 0) { | |
| throw ('0 not allowed'); | |
| } | |
| let t = parseInt(x); |