Skip to content

Instantly share code, notes, and snippets.

(ns simplecalculator.core
(:require [reagent.core :as r :refer [atom]]
[reagent.session :as session]
[secretary.core :as secretary :include-macros true]
[accountant.core :as accountant]
))
(enable-console-print!)
;;pension age calculator implementation
@reshmee011
reshmee011 / Item_ThreeLines.html
Created March 14, 2016 23:24
Item Three Lines html
<html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
<head>
<title>Three lines</title>
<!--[if gte mso 9]><xml>
<mso:CustomDocumentProperties>
<mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
<mso:ManagedPropertyMapping msdt:dt="string">'Link URL'{Link URL}:'Path','Line 1'{Line 1}:'Title','Line 2'{Line 2}:'','Line 3'{Line 3}:'','FileExtension','SecondaryFileExtension'</mso:ManagedPropertyMapping>
<mso:MasterPageDescription msdt:dt="string">This Item Display Template will show a small thumbnail icon next to a hyperlink of the item title, with an additional line that is available for a custom managed property.</mso:MasterPageDescription>
<mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
@reshmee011
reshmee011 / PublishDuplicateRuleCRMDynamics2015.txt
Last active April 5, 2016 14:57
Publish Detection Rule in CRM Dynamics 2015 On Premise using PowerShell
#Example .\PublishDuplicateDetection.ps1 -crmOrganizationURL "CRM URL" -login "username" -pwd "password"
param
(
[string]$crmOrganizationURL,#example "http://organization.domain.com"
[string]$login, #example "user@domain.com"
[string]$pwd #example "Pass@word1"
)
#add Microsoft.Xrm libraries
function Add-Crm-Sdk-2015($rootPath)
<script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.js"></script>
<script type="text/javascript">
//declare namespace
var ConfigureSiteSettings = ConfigureSiteSettings || {};
// use sp utility to Get field values, need to find out how it will work with Nintex forms
//var myRichTextValue = getFieldValue('SiteCollectionURL');
//alert(myRichTextValue);
<script type="text/javascript" src="/_layouts/15/sp.runtime.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.js"></script>
<script type="text/javascript" src="/_layouts/15/sp.Taxonomy.js"></script>
<script type="text/javascript">
//declare namespace
var ConfigureSiteSettings = ConfigureSiteSettings || {};
ConfigureSiteSettings.CreateTerm = (function(clientTerm)
{
var newGuid = new SP.Guid.newGuid();
@reshmee011
reshmee011 / GetUniquePermissions_CSOM
Last active June 16, 2016 16:33
Query Unique Permissions Using CSOM
Clear-Host
Add-PsSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
$pLoadCSOMProperties=(get-location).ToString()+"\Load-CSOMProperties.ps1"
. $pLoadCSOMProperties
$properties=@{SiteUrl='';SiteTitle='';ListTitle='';Type='';RelativeUrl='';ParentGroup='';MemberType='';MemberName='';MemberLoginName='';Roles='';};
@reshmee011
reshmee011 / ExportContentTypesCSOM_PnP.ps1
Last active June 23, 2016 14:08
Export/Import of Site Columns and Site Content Types using SharePoint 2016 PnP PowerShell commands
Param(
[Parameter(Mandatory=$true)]
[string]$SiteUrl,
[Parameter(Mandatory=$false)]
[string]$XMLCTFileName = "SiteContentTypes.xml",
[string] $GroupToExport = "Portfolio DB"
)
Set-Location $PSScriptRoot
Param(
[Parameter(Mandatory=$true, position=0, ValueFromPipeLineByPropertyName=$true, HelpMessage="Specifies the Web. The type must be a valid URL or GUID")]
[String]$WebUrl
)
Set-Location $PSScriptRoot
Add-Type -Path ( ".\SharePoint Assemblies\Microsoft.SharePoint.Client.dll")
Add-Type -Path ( ".\SharePoint Assemblies\Microsoft.SharePoint.Client.Runtime.dll")
# help to use lamda expressions to query object properties
. .\Load-CSOMProperties.ps1
Param(
[Parameter(Mandatory=$true)]
[string]$SiteUrl,
[Parameter(Mandatory=$true)]
[string]$username,
[Parameter(Mandatory=$false)]
[string]$ListName = "Documents"
)
#retrieve MigrationSourceURL and breaks it down into level 0 and level 1 and retrieve term from URL to map to column
Add-Type -Path "c:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll"
##Apply theme and create composed look
Param(
[Parameter(Mandatory=$true)]
[string]$SiteUrl,
[Parameter(Mandatory=$false)]
[string]$themeName ="EDRMS1",
[Parameter(Mandatory=$false)]
[string]$colorFilePath = "Palette031.spcolor" ,
[Parameter(Mandatory=$false)]
[string]$backGroundPath = "image_bg009.jpg",