This file contains 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
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. |
This file contains 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
select '${DbVis-Date}$ ${DbVis-Time}$' as PollTime, status_msg from table |
This file contains 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
/** | |
* 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)); |
This file contains 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
/** | |
* 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) { |
This file contains 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
select * from aaa where ((rubrics::bit(40)::bit varying(40) & B'0000000000000000000000000000000011'::bit(40)::bit varying(40)) > B'0'::bit(40)::bit varying(40) ) |
This file contains 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
function isHellIE() { | |
return typeof document.body.style.maxHeight == "undefined"; | |
} |
This file contains 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
function createSwfObject(src, attributes, parameters) { | |
var i, html, div, obj, attr = attributes || {}, param = parameters || {}; | |
attr.type = 'application/x-shockwave-flash'; | |
if (window.ActiveXObject) { | |
attr.classid = 'clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'; | |
param.movie = src; | |
} | |
else { | |
attr.data = src; | |
} |
This file contains 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
/*Make position:fixed work in IE6!*/ | |
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;} | |
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;} | |
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;} | |
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;} | |
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;} | |
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));} | |
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||0));} |
This file contains 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
var start = new Date().getTime(); | |
//action | |
var elapsed = new Date().getTime() - start; | |
alert("time to action: "+elapsed); |
This file contains 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
<tiles:insertTemplate template="/WEB-INF/filename.jsp"> | |
<tiles:putAttribute name="var" value="value" cascade="true"/> | |
</tiles:insertTemplate> |
NewerOlder