Skip to content

Instantly share code, notes, and snippets.

View antonkhrit's full-sized avatar

Anton Khritonenkov antonkhrit

View GitHub Profile
@antonkhrit
antonkhrit / pnp-template.xml
Created April 16, 2019 11:17
List PnP template
<?xml version="1.0"?>
<pnp:Provisioning xmlns:pnp="http://schemas.dev.office.com/PnP/2018/07/ProvisioningSchema">
<pnp:Preferences Generator="OfficeDevPnP.Core, Version=3.7.1903.0, Culture=neutral, PublicKeyToken=5e633289e95c321a" />
<pnp:Templates ID="CONTAINER-TEMPLATE-C1181F206BE84C09AAAC4B3CB21FBE32">
<pnp:ProvisioningTemplate ID="TEMPLATE-C1181F206BE84C09AAAC4B3CB21FBE32" Version="1" Scope="Web">
<pnp:Lists>
<pnp:ListInstance Title="Employees List3" TemplateType="100" Url="Lists/EmployeesList3" EnableFolderCreation="false">
<pnp:ContentTypeBindings>
<pnp:ContentTypeBinding ContentTypeID="0x01" Default="true" />
<pnp:ContentTypeBinding ContentTypeID="0x0120" />
{
"groups": [
{
"name": "Fighters",
"description": "Characters from fighting games",
"person": 442,
"targetPercentage": 0.23,
"category": 0.1,
"items": [
{
Title: (?<Title>.+|)
Price: (?<Price>.+|)
Quantity: (?<Quantity>\d+)
@antonkhrit
antonkhrit / expand.js
Created October 3, 2017 14:38
Add menu item to expand all Org Chart nodes
//Number of levels to expand
var levelsToExpand = 10;
//Funciton to expand
function addExpandAllMenu(){
//Append menu item
var $menuItem = $("<a href='#' class='poch-wizard-link'>Expand nodes</a>")
$(".poch-sub-menu").prepend($menuItem);
@antonkhrit
antonkhrit / gist:f141253fa49fcc37f6a7f7fd571c1d04
Created October 3, 2017 14:38
Add menu item to expand all Org Chart nodes
//Number of levels to expand
var levelsToExpand = 10;
//Funciton to expand
function addExpandAllMenu(){
//Append menu item
var $menuItem = $("<a href='#' class='poch-wizard-link'>Expand nodes</a>")
$(".poch-sub-menu").prepend($menuItem);
<iframe width="98%" height="98%" src="https://web.powerapps.com/webplayer/iframeapp?hideNavBar=true&source=powerbi&screenColor=rgba(165,34,55,1)&appId=/providers/Microsoft.PowerApps/apps/4d1b753e-7b80-56b1-5c55-56e27fae92a2"/>
<iframe width="98%" height="98%" src="https://web.powerapps.com/webplayer/iframeapp?hideNavBar=true&source=powerbi&screenColor=rgba(165,34,55,1)&appId=/providers/Microsoft.PowerApps/apps/4d1b753e-7b80-56b1-5c55-56e27fae92a2"/>
<iframe width="98%" height="98%" src="https://web.powerapps.com/webplayer/iframeapp?hideNavBar=true&source=powerbi&screenColor=rgba(165,34,55,1)&appId=/providers/Microsoft.PowerApps/apps/4d1b753e-7b80-56b1-5c55-56e27fae92a2"/>
Plumsail.OrgChart.DataProviderBase.prototype.getManagerGroupItemsForItem = function(e, t, o) {
var r = this
, i = []
, n = function(e) {
r.getBoxGroupItemDataById(e, function(e) {
if(!e){
t(i);
return;