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
// Add CSS file to the page on a block | |
RockPage.AddCSSLink( Page, ResolveUrl( "~/CSS/jquery.tagsinput.css")); | |
// Add Javascript to the page on a block | |
RockPage.AddScriptLink(this.Page, "~/Scripts/jquery.tinyscrollbar.js"); |
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
<script type="text/javascript"> | |
// change approval status to pending if any values are changed | |
Sys.Application.add_load( function () { | |
... | |
}); | |
</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
git fetch origin pull/ID/head:BRANCHNAME |
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
<%@ Page Language="C#" MasterPageFile="Site.Master" AutoEventWireup="true" Inherits="Rock.Web.UI.RockPage" %> | |
<%@ Import Namespace="Rock.Web.UI" %> | |
<%@ Import Namespace="Rock.Web.Cache" %> | |
<script runat="server"> | |
protected void Page_Load(object sender, EventArgs e) | |
{ | |
var page = (RockPage)this.Page; | |
//var page = PageCache.Read(((RockPage)this.Page).PageId); |
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
qryGroupMembers = qryGroupMembers.WhereAttributeValue( rockContext, a => a.Attribute.Key == "IsAwesome" && a.ValueAsBoolean == true ); |
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
// note that the queryable must be ToList'ed | |
var sortedItems = qryGroupMembers.ToList().OrderBy(a => a.GetAttributeValue("Priortity").AsInteger()) |
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 TOP (1000) | |
dv.[Value] | |
,[Description] | |
,CONVERT(INT, av.[ValueAsNumeric]) as [Points] | |
FROM [RockRMS-Spark].[dbo].[DefinedValue] dv | |
INNER JOIN [AttributeValue] av ON av.[EntityId] = dv.[Id] AND av.[AttributeId] = 3599 | |
WHERE [DefinedTypeId] = 74 | |
ORDER BY [Points] desc |
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 TOP (1000) | |
[PersonId] | |
,[Points] | |
,[VotePoints] | |
, [NickName] | |
, [Lastname] | |
FROM [RockRMS-Spark].[dbo].[_org_sparkDevNetwork_QandA_Author] a | |
INNER JOIN [Person] p ON p.[Id] = a.[PersonId] | |
WHERE [Points] < 10000 | |
ORDER BY [Points] DESC |
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
{% execute type:'class' %} | |
using Rock; | |
using Rock.Data; | |
using Rock.Model; | |
public class MyScript | |
{ | |
public string Execute() { | |
System.Threading.Thread.Sleep(4000); | |
return ""; |
OlderNewer