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
| { | |
| Email: { type: 'Text', validators: ['required', 'email'] }, | |
| Name: { type: 'Text', validators: ['required'] }, | |
| MobileNumber: { type: 'Text', validators: ['required'] }, | |
| Address: { type: 'TextArea' }, | |
| Attendance: { type: 'Select', options: ['Yes', 'No', 'Maybe'], validators: ['required'] }, | |
| SpecialRequirements: { type: 'TextArea'}, | |
| NameOfGuest: { type: 'Text', validators: ['required'] } | |
| } |
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
| using System; | |
| using System.Runtime.Caching; | |
| namespace Euromoney.Isis.Api.Services | |
| { | |
| public abstract class LazyCache | |
| { | |
| protected static readonly object ValueLock = new object(); | |
| } |
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
| # Enable TCP - Must be run from SQL powershell | |
| $MachineObject = new-object ('Microsoft.SqlServer.Management.Smo.WMI.ManagedComputer') . | |
| $ProtocolUri = "ManagedComputer[@Name='" + (get-item env:\computername).Value + "']/ServerInstance[@Name='MSSQLSERVER']/ServerProtocol" | |
| $tcp = $MachineObject.getsmoobject($ProtocolUri + "[@Name='Tcp']") | |
| Write-Host "TCP current => $tcp.IsEnabled" -ForegroundColor Green | |
| $tcp.IsEnabled = $true | |
| $tcp.alter() |
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
| public class BasicAuth : IHttpModule | |
| { | |
| protected bool IsHeaderPresent | |
| { | |
| get | |
| { | |
| var context = HttpContext.Current; | |
| var authHeader = context.Request.Headers["Authorization"]; | |
| return (!string.IsNullOrEmpty(authHeader)); | |
| } |
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
| @echo off | |
| set SERVER_VERSION=2.40.0 | |
| :REM This will update the Selenium Server Windows Service with the most recent Version | |
| :REM of Selenium Server. | |
| :REM | |
| :REM Prerequisits: | |
| :REM * Download Selenium Server to Downloads Folder | |
| :REM * Download IE-Server to Downloads Folder and Unzip to Downloads Folder (using suggested 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
| MMPkCode | Description | |
|---|---|---|
| AUS | Australia | |
| AUT | Austria | |
| CHL | Chile | |
| ESP | Spain | |
| FRA | France | |
| ITA | Italy | |
| JPN | Japan | |
| SWE | Sweden | |
| ZAF | South Africa |
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
| javascript:(function(){ | |
| var delay=10000, intensity=10, timer; | |
| function resetTimer(){clearTimeout(timer); timer = setTimeout(blur, delay);} | |
| function activity(){document.documentElement.setAttribute('style',''); resetTimer();} | |
| function blur(){document.documentElement.setAttribute('style', 'filter:url("data:image/svg+xml;utf8,<svg xmlns=\'http://www.w3.org/2000/svg\'><filter id=\'blur\'><feGaussianBlur stdDeviation=\''+intensity+'\' /></filter></svg>#blur");-webkit-filter:blur('+intensity+'px);filter:blur('+intensity+'px);');} | |
| ['mousemove', 'keypress', 'scroll'].forEach(function(e){document.addEventListener(e, activity, false);}); | |
| resetTimer(); | |
| })();void(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
| getUserDetails(cookie, function(error, user) { | |
| if(error) {/* do something with error */} | |
| if(user.isADangerToThePublic) { | |
| console.log('error') | |
| return | |
| } |
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
| const dictionary = '0123456789abcdefghijklmnopqrstuvwxyz'.split('') | |
| function toBase36 (number) { | |
| const prefix = number < 36 ? '' : toBase36(Math.floor(number / 36)) | |
| return prefix + dictionary[number % 36] | |
| } | |
| function fromBase36 (b36) { | |
| let val = dictionary.indexOf(b36[b36.length - 1]) | |
| if (val === -1) return NaN |
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 deepFind (predicate, data) { | |
| if (!predicate || !data) return null | |
| if (typeof data === 'object') { | |
| for (let k in data) { | |
| let x = data[k] | |
| if (x && predicate(x)) return x | |
| let r = deepFind(predicate, x) | |
| if (r) return r | |
| } |
OlderNewer