This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public List<Dependency> GetDependency(Tree tree) | |
{ | |
var tlp = new PennTreebankLanguagePack(); | |
var gsf = tlp.grammaticalStructureFactory(); | |
var gs = gsf.newGrammaticalStructure(tree); | |
var dependencies = gs.typedDependenciesCollapsedTree(); | |
return (from TypedDependency dependency in dependencies.toArray() | |
select new Dependency | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "../packages/FSharp.ComProvider.1.0.0-pre1/lib/net40/FSharp.ComProvider.dll" | |
#r @"../packages/FSharp.Data.2.1.0/lib/net40/FSharp.Data.dll" | |
open FSharp.Data | |
type SpeechService = TypeLib.``Microsoft Speech Object Library``.``5.4`` | |
let speech = SpeechService.SpVoiceClass() | |
type js = JsonProvider<"""{ "type": "success", "value": { "id": 42, "joke": "Joke here." } }""" > | |
let getJoke num = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// include Fake libs | |
#r @"c:\Project\FAKE.Deploy\bin\FAKE\tools\FakeLib.dll" | |
open Fake | |
open System | |
open System.IO | |
let targetDirectory = @"c:\Project\Service.MSO" | |
let runScript file = | |
if File.Exists file then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FST_PreviewRequests = []; | |
function FST_RegisterDocPreviewFetch(a) { | |
ULShpi: ; | |
FST_PreviewRequests.push(a) | |
} | |
var gTotReq = 0, | |
gTotReqSent = 0; | |
function FST_StartDocPreviewFetch(b, c) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function navigateMailToLink(a) { | |
ULSA13: ; | |
window.location = "mailto:?body=" + escapeProperly(a) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function GetUrlKeyValue(d, e, a) { | |
ULSA13: ; | |
var c = ""; | |
if (a == null) a = window.location.href + ""; | |
var b; | |
b = a.indexOf("#"); | |
if (b >= 0) a = a.substr(0, b); | |
b = a.indexOf("&" + d + "="); | |
if (b == -1) b = a.indexOf("?" + d + "="); | |
if (b != -1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before: | |
<body onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();"> | |
after: | |
<script type="text/javascript"> | |
var attempts_remain = 200; | |
function _lazySpBodyOnLoadWrapper() { | |
if (typeof(_spBodyOnLoadWrapper) == 'undefined' || !(document.readyState === "complete")) { | |
if (attempts_remain > 0) { | |
attempts_remain--; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Microsoft.SharePoint; | |
namespace EPAM.USPS.SharePoint.Core.Utilities.Specific | |
{ | |
public class ListItemPropertySet | |
{ | |
public ListItemPropertySet() | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.IO; | |
let rec getAllDirectories dir = | |
Directory.GetDirectories(dir) | |
|> Array.collect getAllDirectories | |
|> Array.append [|dir|] | |
let directoryName = System.Environment.GetCommandLineArgs().[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*************************************************************************** | |
Copyright (c) Microsoft Corporation 2011. | |
This code is licensed using the Microsoft Public License (Ms-PL). The text of the license can be found here: | |
http://www.microsoft.com/resources/sharedsource/licensingbasics/publiclicense.mspx | |
***************************************************************************/ |
OlderNewer