This file contains hidden or 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
| // http://creativecommons.org/licenses/by-nc-sa/3.0/ | |
| var foo = from p in _db.tblFactories | |
| group p by p.tblFactoryName into grp | |
| let tblFactoryExportDate = grp.Max(p => p.tblFactoryExportDate) | |
| let tblFactoryName = grp.Key | |
| from p in grp | |
| where p.tblFactoryName == tblFactoryName && | |
| p.tblFactoryExportDate == tblFactoryExportDate |
This file contains hidden or 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
| wget --no-cache --mirror --convert-links --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" -x -w 1 -B -r -k -p http://www.demo.dev/ |
This file contains hidden or 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
| sudo mount mycd.iso /media/CD -o loop -t iso9660 |
This file contains hidden or 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
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| namespace DateTimeLongCompare | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) |
This file contains hidden or 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
| DECLARE @myDouble float(30) | |
| SET @myDouble = 40666.4704123611 | |
| DECLARE @myLong bigint | |
| SET @myLong = 634400182498630741 | |
| -- o.k double to DateTime | |
| select @myDouble as NR , convert(datetime, @myDouble) as DT | |
This file contains hidden or 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
| if [[ $- != *i* ]] ; then | |
| ON_A_TTY=No | |
| else | |
| ON_A_TTY=Yes | |
| fi | |
| # check that an ssh-agent is running | |
| if [ -x /usr/bin/ssh-agent ] | |
| then | |
| SSH_AGENT_PID=-1 |
This file contains hidden or 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
| startxfce4 -- :1 |
This file contains hidden or 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
| long tblUnitID = 808; | |
| var _rec = (from u in _db.tblUnits | |
| join ut in _db.tblUnitTypes on u.tblUnitTypeID equals ut.tblUnitTypeID into gj | |
| from subset in gj.DefaultIfEmpty() | |
| where u.tblUnitID == tblUnitID | |
| select new { u.tblUnitID, u.tblUnitName, u.tblUnitTypeID, tblUnitTypeName = (subset == null ? String.Empty : subset.tblUnitTypeName) }).FirstOrDefault(); | |
| Console.WriteLine("{0} {1} {2} {3}",_rec.tblUnitID, _rec.tblUnitName, _rec.tblUnitTypeID, _rec.tblUnitTypeName); |
This file contains hidden or 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
| using System.Web.Mvc; | |
| namespace Starwolf.ch.Helpers | |
| { | |
| public static class MyHelpers | |
| { | |
| public static MvcHtmlString Script(this HtmlHelper helper, string src) | |
| { | |
| // <script src="@Url.Content("~/Scripts/jquery-1.6.1.min.js")" type="text/javascript"></script> | |
| var builder = new TagBuilder("script"); |
This file contains hidden or 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
| <!-- all manip with JQuery - her without jquery --> | |
| <ul class="popupMenu"> | |
| <li> | |
| <label> | |
| <strong>Priority :</strong> | |
| </label> | |
| </li> | |
| <li> | |
| <select class="popupSelectP"> | |
| <option value="0">Select Priority</option> |
OlderNewer