Skip to content

Instantly share code, notes, and snippets.

View onexdrk's full-sized avatar

Artem Marinov onexdrk

View GitHub Profile
@onexdrk
onexdrk / gist:7245972
Created October 31, 2013 08:18
Send ZK onChange server event
/**
* Send ZK onChange server event
* @param zkid - zk component id
* @param value - text to set in value
* example client control:
* <textbox id="zkid" onChange="@command('methodName', param1=self.value)" visible="false"/>
*
* example server method:
* @Command
* public void methodName(@BindingParam("param1") String param1) {
@onexdrk
onexdrk / _.deepPick.js
Last active August 29, 2015 14:01
underscore.js mixin for pick nested properties
/**
* Require _.deep.js from https://gist.github.com/furf/3208381
*/
_.mixin({
deepPick: function (obj) {
var ArrayProto = Array.prototype;
var copy = {};
var keys = ArrayProto.concat.apply(ArrayProto, ArrayProto.slice.call(arguments, 1));
@onexdrk
onexdrk / gist:5af58b8a2bfa2e6fc849
Created October 17, 2014 13:52
DBVisualizer - monitor
select '${DbVis-Date}$ ${DbVis-Time}$' as PollTime, status_msg from table
@onexdrk
onexdrk / gist:603013194e8b1ee5043a
Created November 23, 2014 23:47
install protobuf 2.3.0 on mac os (10.10 in my case)
To install protobuf 2.3.0 in mac os (10.10) you need to do folowing:
install mac os developer tools
download and extract protobuf 2.3.0 : https://code.google.com/p/protobuf/downloads/list
open src/google/protobuf/message.h
and change lines to (see https://code.google.com/p/protobuf/issues/detail?id=570 and http://alfredgamulo.com/problem-installing-protobuf-2-3-0-on-mac/ if you want)
#ifdef __DECCXX
// HP C++'s iosfwd doesn't work.