Skip to content

Instantly share code, notes, and snippets.

✈️
🇪🇺 🇮🇹

Samuele Resca samueleresca

✈️
🇪🇺 🇮🇹
Block or report user

Report or block samueleresca

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View spark\api\dotnet\DotnetBackend.scala
/*
* Licensed to the .NET Foundation under one or more agreements.
* The .NET Foundation licenses this file to you under the MIT license.
* See the LICENSE file in the project root for more information.
*/
package org.apache.spark.api.dotnet
import java.io.DataOutputStream
View output.txt
19/09/12 08:31:44 INFO DAGScheduler: Job 1 finished: showString at NativeMethodAccessorImpl.java:0, took 0.122436 s
+--------------------+--------------+
| Name| Phone|
+--------------------+--------------+
| 18th & Union|(206) 937-6499|
|4Culture in Tashi...|(206) 296-7580|
| 5th Avenue Theatre|(206) 625-1900|
|7 Point Studio an...|(206) 284-5277|
|826 Seattle/ The ...|(206) 725-2625|
| 91.3 KBCS|(425) 564-2427|
View Program.cs
using Microsoft.Spark.Sql;
namespace blog.apachesparkgettingstarted
{
class Program
{
static void Main(string[] args)
{
SparkSession spark = SparkSession
View Program.cs
using Microsoft.Spark.Sql;
namespace blog.apachesparkgettingstarted
{
class Program
{
static void Main(string[] args)
{
SparkSession spark = SparkSession
View Program.cs
using Microsoft.Spark.Sql;
namespace blog.apachesparkgettingstarted
{
class Program
{
static void Main(string[] args)
{
SparkSession spark = SparkSession
View Program.cs
using Microsoft.Spark.Sql;
namespace blog.apachesparkgettingstarted
{
class Program
{
static void Main(string[] args)
{
var spark = SparkSession
.Builder()
View ServerSide\Startup.cs
namespace HandsOn.Blazor
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
...
services.AddServerSideBlazor();
...
}
View ServerSide\Program.cs
public class Program
{
...
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
View ClientSide\Program.cs
public class Program
{
...
public static IWebAssemblyHostBuilder CreateHostBuilder(string[] args) =>
BlazorWebAssemblyHost.CreateDefaultBuilder()
.UseBlazorStartup<Startup>();
}
View Pages\FetchData.razor
@functions {
WeatherForecast[] forecasts;
protected override async Task OnInitAsync()
{
forecasts = await Http.GetJsonAsync<WeatherForecast[]>("sample-data/weather.json");
}
class WeatherForecast
{
You can’t perform that action at this time.