Skip to content

Instantly share code, notes, and snippets.

Sometimes I sit and wonder, sometimes I just sit

Sergey Samokhov hoichi

Sometimes I sit and wonder, sometimes I just sit
Block or report user

Report or block hoichi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile

For getting webstorm fully install as a regular ubuntu app, and don't have to launch it with the script ./ add these webstorm.desktop in your /usr/share/applications/. Don't forget to replace WEBSTORM_PATH by your webstorm absolute path

[Desktop Entry]
Name=JetBrains WebStorm
Exec=WEBSTORM_PATH/bin/ %f
nire0510 / debounce.js
Created Jun 7, 2015
7 Essential JavaScript Functions
View debounce.js
// Returns a function, that, as long as it continues to be invoked, will not
// be triggered. The function will be called after it stops being called for
// N milliseconds. If `immediate` is passed, trigger the function on the
// leading edge, instead of the trailing.
function debounce(func, wait, immediate) {
var timeout;
return function() {
var context = this, args = arguments;
var later = function() {
timeout = null;
You can’t perform that action at this time.