Skip to content

Instantly share code, notes, and snippets.

View sabuein's full-sized avatar
🏠
Working from home

Salaheddin AbuEin sabuein

🏠
Working from home
View GitHub Profile
@PatrickDinh
PatrickDinh / SqlTableToHtml.md
Last active February 23, 2025 14:24
Convert SQL Server table to HTML

For our reporting services, we need to convert a lot SQL tables to HTML. This is the SP that can convert any table to HTML based on a SP created by Ian Atkin ([email protected]) The original post can be found here

The modified version supports converting tables having NULL cells & better styling

create PROCEDURE [dbo].[SqlTableToHtml] (
@TABLENAME  NVARCHAR(500),
@OUTPUT   NVARCHAR(MAX) OUTPUT,
@TBL_STYLE NVARCHAR(1024) = '',
@TD_STYLE NVARCHAR(1024) = '',
@thirukkural2022
thirukkural2022 / Ubuntu - Help - open file explorer from terminal command line
Created September 12, 2014 03:25
Ubuntu - Help - open file explorer from terminal command line
Default File Manager in Ubuntu is nautilus
To open the current directory in File Manager:
nautilus .
To open current user documents folder:
nautilus ~/Documents
Alternative File Manager : thunar
@boyron
boyron / jquery.each.break.continue.js
Created May 3, 2014 11:47
jQuery each break and continue
$("#tblId tr").each(function(i, obj) {
if($(obj).attr('id') =='idBreakHere' ){
return false; //this is equivalent of 'break' for jQuery loop
}
}
$("#tblId tr").each(function(i, obj) {
if($(obj).attr('id') =='idToFind' ){
return; //this is equivalent of 'continue' for jQuery loop
@maxbeatty
maxbeatty / select_country_by_continent.html
Created September 30, 2011 23:21
HTML Select Country by Continent
<label for="addressCountry">Country</label>
<select name="addressCountry">
<option></option>
<optgroup label="North America">
<option value="US">United States</option>
<option value="UM">United States Minor Outlying Islands</option>
<option value="CA">Canada</option>
<option value="MX">Mexico</option>
<option value="AI">Anguilla</option>
<option value="AG">Antigua and Barbuda</option>