This file contains hidden or 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
const fetch = require("node-fetch"); | |
const IN_PROGRESS_IMAGE = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBmRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAIAAAExAAIAAAAQAAAATgAAAAAAAABgAAAAAQAAAGAAAAABcGFpbnQubmV0IDQuMi44AP/bAEMABgQFBgUEBgYFBgcHBggKEAoKCQkKFA4PDBAXFBgYFxQWFhodJR8aGyMcFhYgLCAjJicpKikZHy0wLSgwJSgpKP/bAEMBBwcHCggKEwoKEygaFhooKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKP/AABEIACgAKAMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQFITEGEkFRB2FxEyIygQgUQpGhscEJIzNS8BVictEKFiQ04SXxFxgZGiYnKCkqNTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqCg4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2dri4+Tl5ufo |
This file contains hidden or 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
import * as React from 'react'; | |
import * as Models from './models'; | |
export class SafePureComponent<P, S extends Models.SafePureComponentState> extends React.PureComponent<P, S> { | |
private hasError: boolean = false; | |
constructor(props: P, context?: any) { | |
super(props, context); | |
} |
This file contains hidden or 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
# set JAVA_HOME and Path variables | |
$JAVA_HOME = "C:\Program Files\Java\jre1.8.0_151" | |
$Path = "${env:Path};${JAVA_HOME}\bin" | |
[Environment]::SetEnvironmentVariable("JAVA_HOME", $JAVA_HOME, "Machine") | |
[Environment]::SetEnvironmentVariable("Path", $Path, "Machine") |
This file contains hidden or 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 class Engine : IDisposable | |
{ | |
private IJsPool pool; | |
private string initJs; | |
public Engine() | |
{ | |
//JsEngineSwitcher.Instance.EngineFactories.AddMsie(new MsieSettings() { EngineMode = JsEngineMode.Auto }); | |
//JsEngineSwitcher.Instance.DefaultEngineName = MsieJsEngine.EngineName; |
This file contains hidden or 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 JavaScriptEngineSwitcher.Core; | |
using React; | |
using React.TinyIoC; | |
namespace Smagin.Alex.React | |
{ | |
/// <summary> | |
/// Handles registration of core ReactJS.NET components. | |
/// </summary> | |
public class AssemblyRegistration : IAssemblyRegistration |
This file contains hidden or 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
'use strict'; | |
import React from 'react'; | |
import { Grid, Row, Col } from 'react-bootstrap' | |
require('styles/common/SimpleContent.css'); | |
let yeomanImage = require('../../images/yeoman.png'); | |
This file contains hidden or 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
private MultipleProductSearchResults GetMultipleProductSearchResults(BaseItem dataSource, | |
CommerceSearchOptions productSearchOptions) | |
{ | |
Assert.ArgumentNotNull(productSearchOptions, "productSearchOptions"); | |
MultilistField searchesField = dataSource.Fields[Templates.ProductSearch.Fields.NamedSearches.ToString()]; | |
var searches = searchesField.GetItems(); | |
var productsSearchResults = new List<SearchResults>(); | |
foreach (var search in searches) |
This file contains hidden or 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
/// <summary> | |
/// An action to manage data for the ProductList | |
/// </summary> | |
/// <param name="pageNumber">The page number.</param> | |
/// <param name="facetValues">The facet values.</param> | |
/// <param name="sortField">The sort field.</param> | |
/// <param name="sortDirection">The sort direction.</param> | |
/// <returns> | |
/// The view that represents the ProductList | |
/// </returns> |
This file contains hidden or 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
param( | |
[string] $Major = "8", | |
[string] $Minor = "1", | |
[string] $Update = "0", | |
[string] $Date = "151003", | |
[string] $nugetPath = ".\tools\nuget.exe", | |
[string] $downloadsPath = ".\downloads", | |
[string] $nuspecTemplate = ".\tools\package.nuspec.xml", | |
[string] $apiKey, | |
[string] $nugetFeed = "http://use-your.own/nuget/Sitecore-Libs" |
This file contains hidden or 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 System.IO; | |
using Newtonsoft.Json; | |
using YamlDotNet.Serialization; | |
internal class Program | |
{ | |
private const int count = 10000; |
NewerOlder