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
2024-07-27 22:07:52,209 - INFO - Making request to https://starwars.fandom.com/api.php?action=parse&page=Aaricetri&format=json&prop=sections%7Cproperties | |
2024-07-27 22:07:52,427 - INFO - Making request to https://starwars.fandom.com/api.php?action=parse&page=Aaricetri&format=json&prop=categories | |
2024-07-27 22:07:52,641 - INFO - { | |
"title": "Aaricetri", | |
"sections": [ | |
"Overview [ ] Two types of planets existed in the galaxy : gas giants and terrestrial rocky worlds. Moons orbiting gas giants and other rocky worlds were usually not considered planets, even though they could be larger or more populated than other planets. However, Zonama Sekot was considered to be both at different time periods due to its unique mobile nature. Some planets, like Balnab , were still going through stages of organic development Depending on the tilt of its axis, a planet might have had varied seasons with changing temperatures and weather, affecting its habitability. Planets were extremely varied in terms of environmental con |
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
class Program | |
{ | |
private static readonly HttpClient client = new HttpClient(); | |
static async Task Main(string[] args) | |
{ | |
string category = "Category:Locations_by_grid_square"; | |
List<string> allPages = await GetAllPagesInCategoryAndSubcategories(category); | |
foreach (string page in allPages) |
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
#Requires -Version 7.0 | |
Param ( | |
[Parameter(Mandatory = $false)][System.Management.Automation.SemanticVersion]$DaggerVersion, | |
[Parameter(Mandatory = $false)][string][ValidatePattern("^[0-9a-fA-F]{40}$")]$DaggerCommit, | |
[Parameter(Mandatory = $false)][string]$DownloadPath = [System.IO.Path]::GetTempFileName(), | |
[Parameter(Mandatory = $false)][string]$InstallPath = "$env:USERPROFILE\dagger", | |
[Parameter(Mandatory = $false)][System.Boolean]$AddToPath = $false, | |
[Parameter(Mandatory = $false)][switch]$Interactive = $false | |
) |
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
#Requires -Version 7.0 | |
Param ( | |
[Parameter(Mandatory = $false)][System.Management.Automation.SemanticVersion]$DaggerVersion, | |
[Parameter(Mandatory = $false)][string]$MainGitCommit, | |
[Parameter(Mandatory = $false)][string]$DownloadPath = [System.IO.Path]::GetTempFileName(), | |
[Parameter(Mandatory = $false)][string]$InstallPath = "$env:HOMEPATH\dagger", | |
[Parameter(Mandatory = $false)][System.Boolean]$AddToPath = $false, | |
[Parameter(Mandatory = $false)][switch]$Interactive = $false | |
) |
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
package main | |
import ( | |
"context" | |
) | |
type DaggerTerraformAwsLocalstack struct{} | |
func (m *DaggerTerraformAwsLocalstack) localStackService() *Service { |
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
<# | |
.SYNOPSIS | |
Generates code using the Kiota generator in the specified languages for defined OpenAPI specs. | |
.DESCRIPTION | |
This script generates code using the Kiota generator in the specified languages for defined OpenAPI specs. | |
Each subfolder in the examples folder is named after the language and the output is placed in a subfolder named after the namespace. | |
The generated code is then expanded to include additional functionality. | |
The additional functionality includes: |
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
type DsgIcisOpenapiKiota struct{} | |
type Language string | |
const ( | |
CSharp Language = "CSharp" | |
Go Language = "Go" | |
Java Language = "Java" | |
Python Language = "Python" |
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
void Main() | |
{ | |
string[] formats = | |
{ | |
"yyyy-MM-dd'T'HH:mm:ss.fffffffK", | |
"yyyy-MM-dd'T'HH:mm:ss.ffffffK", | |
"yyyy-MM-dd'T'HH:mm:ss.fffffK", | |
"yyyy-MM-dd'T'HH:mm:ss.ffffK", | |
"yyyy-MM-dd'T'HH:mm:ss.fffK", | |
"yyyy-MM-dd'T'HH:mm:ss.ffK", |
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
class Spec { | |
[string]$url | |
[string]$product | |
Spec([string]$url, [string]$product) { | |
$this.url = $url | |
$this.product = $product | |
} | |
} |
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
function Open-Exercise { | |
param( | |
[Parameter(ValueFromPipeline = $true, Mandatory = $false)] | |
[string]$outputFromCommand | |
) | |
Process { | |
$goLandPath = "goland" | |
Write-Host $outputFromCommand | |
$path = $outputFromCommand -split "`n" | Select-Object -Last 1 |