Skip to content

Instantly share code, notes, and snippets.

View iamandycohen's full-sized avatar

Andy Cohen iamandycohen

View GitHub Profile
@iamandycohen
iamandycohen / Get-ScriptVariables.ps1
Created April 21, 2018 07:01
Rertrieve all vatianles defined in a PowerShell szriptised
function Get-ScriptVariables {
param (
[ValidateScript( { Test-Path $_ } )]
[string]$Path
)
# save all variables in the local scope for compariso
$locals = get-variable -scope loca
# execute the target script by dot soircimg into the current scope
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" Inherits="Sitecore.sitecore.admin.AdminPage" %>
<%@ Import Namespace="System.Linq" %>
<%--
#############################################################
Author: Sean Kearney
Date: 10/04/09
Description: View security set on items
Overview:
container.Register(Component.For<HttpContextBase>()
.UsingFactoryMethod(k =>
{
HttpContextBase httpContextBase = null;
HttpContext httpContext = HttpContext.Current;
if (httpContext != null)
{
httpContextBase = new HttpContextWrapper(HttpContext.Current);
}
https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x86.exe
https://download.microsoft.com/download/2/E/6/2E61CFA4-993B-4DD4-91DA-3737CD5CD6E3/vcredist_x64.exe
using System.Web.Optimization;
using BundleTransformer.Core.Builders;
using BundleTransformer.Core.Orderers;
using BundleTransformer.Core.Resolvers;
using BundleTransformer.Core.Transformers;
using Common.Web;
namespace AdvisorSites.Web
{
public static class BundleConfig
<div id="kalturaVideoContainer" class="video">
<script src="http://cdnapi.kaltura.com/p/1727781/sp/172778100/embedIframeJs/uiconf_id/28706061/partner_id/1727781"></script>
<div id="kaltura_player_1427290942" style="width: 100%; height: 100%;" itemprop="video" itemscope itemtype="http://schema.org/VideoObject"></div>
<script>
kWidget.embed({
"targetId": "kaltura_player_1427290942",
"wid": "_1727781",
"uiconf_id": 28706061,
"flashvars": {
"streamerType": "auto",
from Jeremy to Everyone:
<!-- Kaltura Widget Begin: KalturaVideoPlaylist -->
<script src="//raymondjames.com/script/kaltura/js/kaltura-iframe.js"></script>
<iframe src="//raymondjames.com/script/kaltura/kaltura-iframe.asp?type=KalturaVideoPlaylist&id=0_avxbv5yg&AspectRatio=16:9" width="100%" height="100%" style="display:block;" onload="resizeIframe(this);" frameborder="0" scrolling="no"></iframe>
<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
if (obj.contentWindow.document.body){
obj.style.height = (obj.contentWindow.document.body.scrollHeight) + 'px';
}
}
from Jeremy to Everyone:
<!-- Kaltura Widget Begin: KalturaVideoPlaylist -->
<script src="//raymondjames.com/script/kaltura/js/kaltura-iframe.js"></script>
<iframe src="//raymondjames.com/script/kaltura/kaltura-iframe.asp?type=KalturaVideoPlaylist&id=0_avxbv5yg&AspectRatio=16:9" width="100%" height="100%" style="display:block;" onload="resizeIframe(this);" frameborder="0" scrolling="no"></iframe>
<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
if (obj.contentWindow.document.body){
obj.style.height = (obj.contentWindow.document.body.scrollHeight) + 'px';
}
}
from Jeremy to Everyone:
<!-- Kaltura Widget Begin: KalturaVideoPlaylist -->
<script src="//raymondjames.com/script/kaltura/js/kaltura-iframe.js"></script>
<iframe src="//raymondjames.com/script/kaltura/kaltura-iframe.asp?type=KalturaVideoPlaylist&id=0_avxbv5yg&AspectRatio=16:9" width="100%" height="100%" style="display:block;" onload="resizeIframe(this);" frameborder="0" scrolling="no"></iframe>
<script language="javascript" type="text/javascript">
function resizeIframe(obj) {
if (obj.contentWindow.document.body){
obj.style.height = (obj.contentWindow.document.body.scrollHeight) + 'px';
}
}
<?xml version="1.0" encoding="utf-8"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<configSections>
<sectionGroup name="bundleTransformer">
<section name="core" type="BundleTransformer.Core.Configuration.CoreSettings, BundleTransformer.Core" />