Format:
Recent snippets for: Nordin
c:\Windows\System32>cd c:\Temp c:\Temp>md test c:\Temp>cd test c:\Temp\test>md source c:\Temp\test>cd source
52 Views
no comments
By using Visual Studio's Replace All on files in current project, this will add the HeartBeat tag after </ufy:Body> and before </Body> tag.
From
{^:b*}{\</ufy\:Body\>:b*}\n{:b*\</body\>}
To
\1\2\n\1<eci:HeartBeat runat="server" />\n\3
Option:
RegularExpression
80 Views
no comments
if(!document.querySelectorAll && !document.getElementsByClassName){ /* code to be executed on IE6 and IE7 only */ }
211 Views
no comments
function(a){if(a=$(typeof a=="string"?"#"+a:a).get(0)){a=a.contentWindow||a.a;if(a.document)a=a.document;return a}};
204 Views
no comments
result = (List<TBean>) hibernateTemplate.executeWithNativeSession(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException, SQLException { Query queryObject = session.createQuery(queryString); // process where clause if(ArrayUtils.isNotEmpty(values)){ if(ArrayUtils.isNotEmpty(paramNames) && ArrayUtils.isSameLength(paramNames, values)){ for (int i = 0; i < paramNames.length; i++) {
234 Views
no comments
SELECT column_name , table_name FROM information_schema.columns order by table_name, column_name
191 Views
no comments
var simulateMouseDown = function(element){ var eventName = 'mousedown'; if(element.dispatchEvent){ var event = document.createEvent("MouseEvent"); event.initMouseEvent(eventName, true, true, window); element.dispatchEvent(event); }else if(element.fireEvent){ // IE7 and below element.fireEvent('on'+eventName); } };
757 Views
no comments
/* Script to add jQuery into current page via Firebug/Console */ (function() { var b = "jQuery script is now available."; try { var a = document.createElement("script"); a.setAttribute("type", "text/javascript"); a.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"); document.getElementsByTagName("head")[0].appendChild(a); window['$j']=jQuery; setTimeout(function(){
286 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
