I hereby claim:
- I am goyuix on github.
- I am goyuix (https://keybase.io/goyuix) on keybase.
- I have a public key whose fingerprint is B921 1F66 97E8 EA5F 0EE9 678A 96DC 80C1 5983 292B
To claim this, I am signing this object:
[{"ext":".323","mime":"text/h323"},{"ext":".3g2","mime":"video/3gpp2"},{"ext":".3gp2","mime":"video/3gpp2"},{"ext":".3gp","mime":"video/3gpp"},{"ext":".3gpp","mime":"video/3gpp"},{"ext":".aac","mime":"audio/aac"},{"ext":".aaf","mime":"application/octet-stream"},{"ext":".aca","mime":"application/octet-stream"},{"ext":".accdb","mime":"application/msaccess"},{"ext":".accde","mime":"application/msaccess"},{"ext":".accdt","mime":"application/msaccess"},{"ext":".acx","mime":"application/internet-property-stream"},{"ext":".adt","mime":"audio/vnd.dlna.adts"},{"ext":".adts","mime":"audio/vnd.dlna.adts"},{"ext":".afm","mime":"application/octet-stream"},{"ext":".ai","mime":"application/postscript"},{"ext":".aif","mime":"audio/x-aiff"},{"ext":".aifc","mime":"audio/aiff"},{"ext":".aiff","mime":"audio/aiff"},{"ext":".application","mime":"application/x-ms-application"},{"ext":".art","mime":"image/x-jg"},{"ext":".asd","mime":"application/octet-stream"},{"ext":".asf","mime":"video/x-ms-asf"},{"ext":".asi","mime":"application/ |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<configuration> | |
<system.web> | |
<compilation debug="true" strict="false" explicit="true"> | |
<assemblies> | |
<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> | |
<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/> | |
<add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> | |
<add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/> | |
</assemblies> |
# Description: script to create a managed property for search that maps to the Active (ows_RoutingEnabled) site column | |
# a few convenience variables | |
$YesNo = [Microsoft.SharePoint.Search.Administration.ManagedDataType]::YesNo | |
$searchApp = Get-SPEnterpriseSearchServiceApplication | |
# get reference to "Active" property - internally known as ows_RoutingEnabled | |
$crawledProperty = Get-SPEnterpriseSearchMetadataCrawledProperty -SearchApplication $searchApp -Name ows_RoutingEnabled | |
$crawledProperty.IsMappedToContents = $true | |
$crawledProperty.Update() |
Write-Host "Attempting to mount default registry hive" | |
& REG LOAD HKLM\DEFAULT C:\Users\Default\NTUSER.DAT | |
Push-Location 'HKLM:\DEFAULT\Software\Microsoft\Internet Explorer' | |
if (!(Test-Path Main)) { | |
Write-Warning "Adding missing default keys for IE" | |
New-Item Main | |
} | |
$sp = Get-ItemProperty -Path .\Main | |
Write-Host "Replacing $_ : $($sp.'Start Page')" |
# Add-Type -Assembly System.Drawing | |
dir *.gif | % { | |
$gif = [Drawing.Image]::FromFile($_.FullName) | |
$dim = new-object Drawing.Imaging.FrameDimension $gif.FrameDimensionsList[0] | |
if ($gif.GetFrameCount($dim) -gt 1) { $_.Name } | |
$gif.Dispose() | |
} |
I hereby claim:
To claim this, I am signing this object:
<?xml version="1.0"?> | |
<configuration> | |
<startup useLegacyV2RuntimeActivationPolicy="true"> | |
<supportedRuntime version="v4.0.30319"/> | |
<supportedRuntime version="v2.0.50727"/> | |
</startup> | |
</configuration> |
$wc = New-Object System.Net.WebClient | |
$xml = [xml]($wc.DownloadString("http://feeds.lds.org/the-life-of-jesus-christ-bible-videos-hd-eng")) | |
$xml.rss.channel.item | % { | |
$uri = [uri]$_.origLink | |
$wc.DownloadFile($uri.AbsoluteUri,"D:\Videos\"+$uri.Segments[$uri.Segments.Length-1]) | |
} |
// remember to force exactly one evaluation of the IEnumerable through Map | |
public static class FluentDataReader | |
{ | |
public delegate object MapDelegate<T>(IDataReader reader); | |
public static IEnumerable<T> Map<T> (this IDataReader reader, MapDelegate<T> mapper) where T : class | |
{ | |
while (reader.Read()) | |
{ |
jQuery.ajax({ | |
url: "/_api/web/webs?$expand=Lists", | |
headers: { accept: "application/json;odata=verbose"} | |
}).done(function(json){ | |
var i=0, j=0, html=[], web=null, list=null; | |
html.push('<table><tr><th>Web</th><th>Library</th><th>Description</th></tr>') | |
for (;i<json.d.results.length;i++){ | |
web = json.d.results[i]; | |
for (;j<web.Lists.results.length;j++){ | |
list = web.Lists.results[j]; |