View Wiki Search Demo.POWERPOINT.yaml
name: Wiki Search Demo | |
description: Wiki Search Demo | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: | | |
$("#run").click(run); | |
function run() { | |
Office.context.document.getSelectedDataAsync(Office.CoercionType.Text, (asyncResult) => { |
View Simple Currency Converter.EXCEL.yaml
name: Simple Currency Converter | |
description: Simple currency converter | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
declare var moment: any; | |
$("#convert").click(() => tryCatch(convert)); | |
$("#setup").click(() => tryCatch(setupSample)); |
View ScriptLab Search Wiki.POWERPOINT.yaml
name: ScriptLab Search Wiki | |
description: Search Wikipedia based on the selected text. | |
host: POWERPOINT | |
api_set: {} | |
script: | |
content: | | |
declare var moment: any; | |
$("#search").click(run); | |
async function run() { |
View applicationHost.xdt
<?xml version="1.0"?> | |
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform"> | |
<system.webServer> | |
<proxy xdt:Transform="InsertIfMissing" enabled="true" preserveHostHeader="false" | |
reverseRewriteHostInResponseHeaders="false" arrResponseHeader="false"/> | |
<rewrite> | |
<allowedServerVariables> | |
<add name="HTTP_ACCEPT_ENCODING" xdt:Transform="Insert" /> | |
<add name="HTTP_X_ACCEPT_ENCODING" xdt:Transform="Insert" /> | |
<add name="HTTP_X_ORIGINAL_HOST" xdt:Transform="Insert" /> |
View CustomHttpHeaderModule.cs
using System; | |
using System.Text; | |
using System.Web; | |
namespace Custom.ServerModules | |
{ | |
public class CustomHttpHeaderModule : IHttpModule | |
{ | |
public void Init(HttpApplication context) | |
{ |
View web.config
<configuration> | |
<system.serviceModel> | |
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> | |
</system.serviceModel> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true"> | |
<add name="CustomHttpModule" type="Custom.ServerModules.CustomHttpHeaderModule" /> | |
</modules> | |
<httpProtocol> |
View web.config
<configuration> | |
<system.webServer> | |
<modules runAllManagedModulesForAllRequests="true"> | |
<add name="CustomHttpModule" type="Custom.ServerModules.CustomHttpHeaderModule" /> | |
</modules> | |
</system.webServer> | |
</configuration> |
View web.config
<configuration> | |
<system.webServer> | |
<httpProtocol> | |
<customHeaders> | |
<clear /> | |
<remove name="X-Powered-By" /> | |
<add name="X-Frame-Options" value="SAMEORIGIN" /> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> |
View web.config
<configuration> | |
<system.serviceModel> | |
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" /> | |
</system.serviceModel> | |
<system.webServer> | |
<rewrite> | |
<rules> | |
<rule name="ReverseProxy" stopProcessing="true"> | |
<match url=".*" /> |
View DetikRSS.ps1
# Defines file capture location | |
$fileCapture = "C:\temp\detik.txt" | |
# List of target RSS - you can add more | |
$targetRSS = "detikcom_nasional", "detikcom_internasional", "detikcom_bbc","detikcom_lapsus","detikcom_wawancara"," detikcom_prokontra" | |
$targetRSS |% { | |
$url = "http://rss.detik.com/index.php/" + $_ | |
$targetXml = "C:\temp\" + $_ + ".xml" | |
Invoke-WebRequest -Uri $url -OutFile $targetXml -ErrorAction Stop |
NewerOlder