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
$('#el').bind('DOMMouseScroll mousewheel', function(e) { | |
var step = 30; | |
e.preventDefault(); | |
step *= (e.originalEvent.wheelDelta > 0) ? -1 : 1; | |
$(this).scrollLeft($(this).scrollLeft() + step); | |
}); |
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
proof: http://www.heidisql.com/forum.php?t=167 | |
--------------------------------------------------------------------------------------------- | |
I just tried to connect to my MySQL using putty.. It works great... | |
First download Putty (google on putty) then create a new connection. | |
Go to "Connection -> SSH -> Tunnels" in the left part of the screen and input the following: | |
Source port: 3306 | |
Destination: localhost:3306 | |
(The radiobuttons stay on "local" and "auto") | |
Then press the "Add" button. |
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
// Be careful when changing Object's prototype to avoid overwriting of methods | |
if (Object.prototype.setPath === undefined && Object.prototype.getPath === undefined) { | |
Object.prototype.setPath = function (path, value, notation) { | |
function isObject(obj) { return (Object.prototype.toString.call(obj) === '[object Object]' && !!obj);} | |
notation = notation || '.'; | |
path.split(notation).reduce(function (prev, cur, idx, arr) { | |
var isLast = (idx === arr.length - 1); | |
// if <cur> is last part of path | |
if (isLast) return (prev[cur] = value); |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
NewerOlder