Skip to content

Instantly share code, notes, and snippets.

View ecoffman's full-sized avatar

Eric Coffman ecoffman

  • The Nature Conservancy
  • Arlington, VA
View GitHub Profile
Information from:
https://egghead.io/lessons/react-react-fundamentals-development-environment-setup
Install and Create React App:
> sudo npm i create-react-app -g
> create-react-app <appname>
To start app:
> cd <appname>
{
"nodes": [
{ "x": 150, "y": 410, "recordtype": "a", "id": 0, "name": "Lands" },
{"x": 325, "y": 248, "recordtype": "e", "id": 3, "name": "My Project", "relationshipType": 1, "dataFile": "data.json"},
{ "x": 200, "y": 364, "recordtype": "b", "id": 1, "relationshipType": 0, "name": "Climate and Energy" },
{ "x": 75, "y": 207, "recordtype": "a", "id": 2, "relationshipType": 0, "name": "Africa Lands Strategy" },
{ "x": 350, "y": 148, "recordtype": "c", "id": 4, "relationshipType": 0, "name": "Atlantic Coast" },
{ "x": 298, "y": 185, "recordtype": "a", "id": 2, "relationshipType": 1, "name": "AP Fisheries" },
{ "x": 350, "y": 148, "recordtype": "c", "id": 4, "relationshipType": 0, "name": "Gulf of Mexico" },
{ "x": 594, "y": 235, "recordtype": "d", "id": 5, "relationshipType": 0, "name": "Colorado Energy" }
@ecoffman
ecoffman / gist:6901323
Created October 9, 2013 13:31
How to Ignore SPSite Root
param([string]$spSiteUrl)
$spSite = Get-SPSite -Identity $spSiteUrl
if($SPSite -eq $null)
{
Write-Host "`nSPSite at '$($spSiteUrl)' is null.";
return;
}
$siteRootWeb = $spSite.RootWeb