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
#!/usr/bin/env bash | |
# This script launches a Windows executable using Proton within a Linux environment. | |
# It requires exactly one argument: the path to the executable to run. | |
# It sets up a separate Proton prefix for each executable to avoid conflicts. | |
# Usage: proton <path-to-executable> | |
if [ "$#" -ne 1 ]; then | |
echo "Usage: $0 <executable-path>" | |
exit 1 |
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
// Learn more about F# at http://docs.microsoft.com/dotnet/fsharp | |
open System | |
[<EntryPoint>] | |
let main argv = | |
let addOne x = x + 1 //function that adds 1 to x | |
let Square x = x * x //function that multiplies x by x | |
let SubtractTen x = x - 10 //function that subtracts 10 from x | |
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 System; | |
namespace ConsoleApp1 | |
{ | |
static class Program | |
{ | |
public static string FullName(string first, string last) | |
{ | |
return $"{first} {last}"; | |
} |
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 System.Linq; | |
using ServiceStack; | |
using ServiceStack.Text; | |
using System; | |
using System.Collections.Generic; | |
public class GithubRepository | |
{ | |
public string Name { get; set; } | |
public string Description { get; set; } | |
public string Url { get; set; } |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | |
<PropertyGroup> | |
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | |
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | |
<ProjectGuid>{949FD636-F58E-43DE-AAAD-48FE0336F445}</ProjectGuid> | |
<OutputType>Exe</OutputType> | |
<RootNamespace>Suave</RootNamespace> | |
<AssemblyName>Suave</AssemblyName> |