Skip to content

Instantly share code, notes, and snippets.


Prakash Vaithilingam prakashnsm

View GitHub Profile
View gist:9b0c4e8ed656f7e8464a434f6a15ea03
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
prakashnsm / HeidiDecode.js
Last active Aug 31, 2015 — forked from jpatters/HeidiDecode.js
Decodes a password from HeidiSQL. HeidiSQL passwords can be found in the registry. Use File -> Export Settings to dump all settings. Great for if you forget a password.
View HeidiDecode.js
function heidiDecode(hex) {
var str = '';
var shift = parseInt(hex.substr(-1));
hex = hex.substr(0, hex.length - 1);
for (var i = 0; i < hex.length; i += 2)
str += String.fromCharCode(parseInt(hex.substr(i, 2), 16) - shift);
return str;
View liferay-drag-drop-indicator
Liferay.on('initLayout', function(event) {
Liferay.once(function() {
Liferay.Layout.on([ 'drag:end', 'drag:start' ], function(event) {
console.log('event type', event.type, event);
AUI().one("#main-content").toggleClass('dragging', event.type == 'drag:start');
}, Liferay.Layout, 'bindDragDropListeners');