Quantcast
Channel: WSE Group » WSE Group
Browsing index pages (6 articles)

rebind onclick

$('button').on('clicl', function (e) { $(this).closest('div').remove(); }); Replace: $('body').on('click', 'button', function (e) { $(this).closest('div').remove(); });

View Article


Ubuntu get size of the folders and files

sudo du -hs /var/www/ekuskov-admin/* | sort -nk1

View Article


zClip: copy changed value

zClip has the problem, that if you provide a statis value like – $(‘div’).val() – it will create a flash element with the value of the div. If you want always to copy the actual value of the element,...

View Article

PHP Request: send a HTTP request

/** * Send the request to the API * @param array $postParam all request params * @return mixed $result is the result from API */ private function sendHttpRequest($postParam=array()) { // Set version of...

View Article

Image may be NSFW.
Clik here to view.

Excel: SQL Insert Queries

View Article


PHP Array: remove empty values

Remove NULL values only $new_array_without_nulls = array_filter($array_with_nulls, 'strlen'); Remove any FALSE values $new_array_without_nulls = array_filter($array_with_nulls);

View Article
Browsing index pages (6 articles)


Latest Images