Run these fun commands in the console:
-
parseFloat('100000.618033988757') -
10000000000000000 === 10000000000000001 -
.2 + .1 -
5508402744232713000 + 10
| public class MouseController | |
| { | |
| [DllImport("User32", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] | |
| public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, UIntPtr dwExtraInfo); | |
| private const int MOUSEEVENTF_LEFTDOWN = 0x02; | |
| private const int MOUSEEVENTF_LEFTUP = 0x04; | |
| private const int MOUSEEVENTF_RIGHTDOWN = 0x08; | |
| private const int MOUSEEVENTF_RIGHTUP = 0x10; |
| // Create the callback method | |
| delegate Boolean checkIfMoveToUploadedFolderCallback(); | |
| // define the method to be called | |
| private Boolean checkIfMoveToUploadedFolder() | |
| { | |
| // check control property InvokeRequired | |
| if (cb_moveToUploadedFolder.InvokeRequired) | |
| { | |
| // create an instance of the delegate with this method's name |
| delegate void updateDateTimePickerCallback(int t); | |
| private void updateDateTimePicker(int t) | |
| { | |
| if (dateTimePicker1.InvokeRequired) | |
| { | |
| updateDateTimePickerCallback s = new updateDateTimePickerCallback(updateDateTimePicker); | |
| this.Invoke(s, new object[] { t }); | |
| } | |
| else |
| <button type="button" class="btn btn-default btn-xs" onclick="htmlEncode()" title="encode">HTML encode</button> | |
| <button type="button" class="btn btn-default btn-xs" onclick="htmlDecode()" title="encode">HTML decode</button> | |
| <br/> | |
| <textarea id="encodedecode" cols="80" rows="10"></textarea> | |
| <script> | |
| function htmlEncode(){ | |
| var encoded = $("#encodedecode").val().replace(/&/g, '&') | |
| .replace(/</g, '<') | |
| .replace(/>/g, '>') | |
| .replace(/"/g, '"') |
| <button type="button" class="btn btn-default btn-xs" onclick="guid()" title="generate a random guid">Generate Random Guid</button> | |
| <br/> | |
| <textarea id="guidtxt" cols="60"></textarea> | |
| <script> | |
| function guid() { | |
| var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {var r = Math.random()*16|0,v=c=='x'?r:r&0x3|0x8;return v.toString(16);}); | |
| $("#guidtxt").val(guid); | |
| $("#guidtxt").select(); | |
| } | |
| </script> |
| jQuery('a').attr("target", "_blank"); |
| 1. What is the difference between '==' and .equals()? | |
| 2. Is java pass-by-value or pass-by-reference? | |
| 3. What is the difference between checked and unchecked exceptions? | |
| 4. What is an abstract class and when would you use it? |
| .replace(/\.?0+$/, '') |
Run these fun commands in the console:
parseFloat('100000.618033988757')
10000000000000000 === 10000000000000001
.2 + .1
5508402744232713000 + 10