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
| // Insert your shop name in here | |
| const shopName = "your-shop-name"; | |
| // Call this function from Apps Script (found in Extensions menu in Google Sheets) | |
| function updateSheetWithGraphQL() { | |
| // 1. Get your data (using the previous methods) | |
| const response = getFulfilments(); | |
| // 2. Navigate to the specific array in your JSON | |
| // Example path: response.data.repository.artifacts.nodes |
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
| MIT License | |
| Copyright (c) 2017 Jack Ukleja | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
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
| # cd into your offline installation directory and run this to delete any old package versions | |
| gci -Directory *version* | group -Property { $_.Name.Substring(0, $_.Name.IndexOf("version")) } | | |
| where {$_.Count -gt 1 } | % { $_.Group | sort -Property LastWriteTime | select -First 1 | rmdir -Force -Recurse } |
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 Microsoft.CodeAnalysis; | |
| // using Microsoft.CodeAnalysis.CSharp; | |
| var references = new [] { MetadataReference.CreateFromFile("My.dll") }; | |
| var compilation = CSharpCompilation.Create("_", null, references); | |
| ITypeSymbol myType = compilation.GetTypeByMetadataName("MyNamespace.MyType"); | |
| var props = myType.GetMembers().OfType<IPropertySymbol>(); |