Skip to content

Instantly share code, notes, and snippets.

View falfaddaghi's full-sized avatar

Faisal Alfaddaghi falfaddaghi

  • FoothillSolutions
View GitHub Profile
@falfaddaghi
falfaddaghi / proton
Created January 20, 2025 07:43 — forked from shmup/proton
easily run an .exe with proton on linux
#!/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
@falfaddaghi
falfaddaghi / program.fs
Created March 12, 2021 14:01
Functional Programming 5 (Function Composition) In Arabic in F#
// 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
using System;
namespace ConsoleApp1
{
static class Program
{
public static string FullName(string first, string last)
{
return $"{first} {last}";
}
@falfaddaghi
falfaddaghi / main.cs
Last active September 6, 2017 14:24
DateParsing in ServiceStack
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; }
@falfaddaghi
falfaddaghi / .fsproj
Created March 3, 2016 04:42
fsproj reference issue with Ionide
<?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>