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
| SELECT | |
| DATE_FORMAT(wk,'%Y%m%d'), | |
| wk, | |
| song | |
| FROM totp | |
| WHERE singer='Madness' |
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
| public int GetListCount(params ICriterion[] where) | |
| { | |
| var criteria = Session.CreateCriteria(typeof(T)); | |
| if (where != null) | |
| foreach (var criterion in where) | |
| { | |
| criteria.Add(criterion); | |
| } |
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.Collections.Generic; | |
| List<CMSPage> list = new List<CMSPage>(); | |
| List<CMSPage> list2 = new List<CMSPage>(); | |
| list.Add(new CMSPage{ Title = "Bu Sayfa üst sayfa olsun", Id = 0 }); | |
| list.AddRange(list2); |
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
| String.prototype.toSeoString = function (seperator) { | |
| var s = this; | |
| sprtr = !seperator ? "-" : seperator; | |
| var seoFrinedly = new Array(); | |
| var chars = "SsUuOoIiCcGg"; | |
| for (i = 0; i < s.length; i++) { | |
| var cChar = s[i]; | |
| if (cChar == sprtr || cChar == ".") { | |
| continue; |
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
| crit.Add(Restrictions.IsNull("ParentPage")); |
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
| var list = crit.SetProjection( | |
| Projections.ProjectionList().Add(Projections.GroupProperty("SourceName")) | |
| ).List<CMSNews>(); |
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
| crit.SetProjection( | |
| Projections.Distinct( | |
| Projections.Alias( Projections.Property("SourceName"), "SourceName" ) | |
| ) | |
| ); | |
| crit.SetResultTransformer( new NHibernate.Transform.AliasToBeanResultTransformer(typeof(CMSNews))); |
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
| $(function() { | |
| $("body").mousewheel(function(event, delta) { | |
| this.scrollLeft -= (delta * 30); | |
| event.preventDefault(); | |
| }); |
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
| var i = 0; | |
| function runme() { | |
| $("textarea[name='body']").val("test"+i); | |
| $(".nq-submit input").click(); | |
| if(i < 10){ | |
| setTimeout("runme()", 1000); | |
| } | |
| } | |
| runme(); |
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
| var url = String.Format(String.Concat(PageConsts.C_ApiUrl, "/GetIsUserNameInUse?appKey={0}&userName={1}"), PageConsts.C_AppKey, username); | |
| var wc = new WebClient(); | |
| bool isUserNameInUseResult = wc.DownloadString(url).ToBool(); | |
| if (isUserNameInUseResult) | |
| { | |
| r.ResultCode = "err"; | |
| r.ErrorMessages.Add( |