Skip to content

Instantly share code, notes, and snippets.

View isaadansari's full-sized avatar
💭
For getting something you never had, you have to do something you never did!

Saad Ansari isaadansari

💭
For getting something you never had, you have to do something you never did!
View GitHub Profile
@isaadansari
isaadansari / extensions.md
Created June 20, 2019 13:48 — forked from chrisvfritz/extensions.md
VSCode Config
  • Annotator: Display the annotation view (git blame) of the current file.
  • beutify: Beautify javascript, JSON, CSS, Sass, and HTML in Visual Studio Code.
  • Can I Use: Compatibility check for HTML5, CSS3, SVG, New JS API based on http://caniuse.com/ directly from Visual Studio Code.
  • Code SpellChecker: A basic spell checker that works well with camelCase code.
  • Custom CSS and JS: Custom CSS to your VS Code.
  • Debugger for Chrome: A VS Code extension to debug your JavaScript code in the Google Chrome browser, or other targets that support the Chrome Debugging Protocol.
  • EditorConfig for VSCode: EditorConfig support for Visual Studio Code.
  • ESLint: Integrates ESLint into VS Code.
  • File Utils: A convenient way of creating, duplicating, moving, renaming, deleting files and directories.
  • Flow Language Support: This extension adds Flow support for VS Code. Flow is a static type checker, designed to find type errors in JavaScript programs.
@isaadansari
isaadansari / DescendantsTreeRenderingContentsResolver.cs
Created June 20, 2019 12:43 — forked from vitaliitylyk/DescendantsTreeRenderingContentsResolver.cs
A custom Sitecore JSS rendering contents resolver, which serializes items into a tree-like JSON structure. More information at https://blog.vitaliitylyk.com/jss-and-arbitrary-item-hierarchies/
using Newtonsoft.Json.Linq;
using Sitecore.Data.Items;
using Sitecore.LayoutService.Configuration;
namespace VitaliiTylyk.JavascriptServices.RenderingContentsResolvers
{
/// <summary>
/// Builds a tree-like structure of datasource item's descendants
/// </summary>
public class DescendantsTreeRenderingContentsResolver : Sitecore.LayoutService.ItemRendering.ContentsResolvers.RenderingContentsResolver
@isaadansari
isaadansari / Update-SPE-Module-Icons.ps1
Created October 3, 2018 15:37 — forked from michaellwest/Update-SPE-Module-Icons.ps1
Update modules to use the new Sitecore PowerShell Extensions 5.0 icons.
<#
.SYNOPSIS
Sitecore PowerShell Extensions 5.0 uses new icons. This script is designed to update
your existing modules to use the new icon.
.DESCRIPTION
The SPE module changes the icon when you enable/disable the module. Only disabled modules
will automatically take the new icon. This is script helps by updating all of the icons
for enabled modules. Alternatively, you can go through and disable then enable the modules.
#>
@isaadansari
isaadansari / Install-Solr-6.6.2.ps1
Last active October 26, 2019 10:46 — forked from jermdavis/Install-Solr.ps1
A PowerShell script to help installing Solr as a service - See https://jermdavis.wordpress.com/2017/10/30/low-effort-solr-installs/ for details
Param(
$solrVersion = "6.6.2",
$installFolder = "c:\solr",
$solrPort = "8983",
$solrHost = "solr",
$solrSSL = $true,
$nssmVersion = "2.24",
$JREVersion = "9.0.1"
)