- Install
wine
. - Run
winecfg
and select the right version of windows. - Download
Steam
for Windows. - Run
wine SteamInstaller.exe
- Refer to this thread to change configuration for steam so it can download your library content as Windows: * https://steamcommunity.com/discussions/forum/1/2381701715716658433/ * In particular: https://www.reddit.com/r/wine_gaming/comments/8r0gh6/steam_in_winedevel_content_servers_unreachable/e0riqd9
- Run steam with
wine ~/.wine/c_drive/..../Steam.exe
. - Login/download game from library and play it.
This file contains 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
main = print x |
This file contains 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
module Url where | |
import Data.Text (Text) | |
import qualified Data.Text as T | |
import Data.Word (Word) | |
newtype Scheme = Scheme Text deriving (Eq, Ord, Show) | |
newtype Host = Host Text deriving (Eq, Ord, Show) | |
newtype Path = Path [Text] deriving (Eq, Ord, Show) | |
newtype Query = Query [(Text, Text)] deriving (Eq, Ord, Show) |
This file contains 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
{ lib, ... }: | |
let | |
inherit (lib) any attrValues concatStringsSep filterAttrs isAttrs isDerivation mapAttrs mapAttrsToList; | |
in rec { | |
internal = rec { | |
mapAttrsNestedRecursiveCond = pred: f: set: | |
let | |
recurse = path: set: | |
let | |
g = name: value: |
This file contains 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
import collections.abc as ABC | |
from itertools import islice, tee | |
class MutableIterator(ABC.Iterator): | |
def __init__(self, nexts=()): | |
self.nexts = list(nexts) | |
def __next__(self): | |
if self.nexts: | |
return self.nexts.pop() |
This file contains 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 nix-shell | |
#! nix-shell -i ghci -p "pkgs.haskellPackages.ghcWithPackages(p: [p.constraints])" | |
{-# LANGUAGE GADTs #-} | |
{-# LANGUAGE TypeOperators #-} | |
{-# LANGUAGE ConstraintKinds #-} | |
{-# LANGUAGE ScopedTypeVariables #-} | |
{-# LANGUAGE TypeFamilies #-} | |
{-# LANGUAGE DataKinds #-} | |
{-# LANGUAGE PolyKinds #-} | |
{-# LANGUAGE RankNTypes #-} |
This file contains 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
Short code block: | |
So if you run `this silly command` it does that. | |
Long code block: | |
So if you run ```this | |
large thing | |
of many lines of text | |
that is like code``` |
This file contains 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
{-# LANGUAGE FlexibleInstances #-} | |
{-# LANGUAGE GeneralizedNewtypeDeriving #-} | |
{-# LANGUAGE MultiParamTypeClasses #-} | |
{-# LANGUAGE StandaloneDeriving #-} | |
{-# LANGUAGE UndecidableInstances #-} | |
module IsMap where | |
import qualified Data.AppendMap as AppendMap | |
import Data.IntervalMap.Generic.Interval (Interval) |
This file contains 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
re = /"to": "([^"]+)"/; pres = document.getElementsByTagName("pre"); for (i = 0; i < pres.length; i++) { matches = re.exec(pres[i].innerHTML); console.log(matches[1]); } |
This file contains 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
{-# LANGUAGE CPP #-} | |
{-# LANGUAGE ForeignFunctionInterface #-} | |
{-# LANGUAGE JavaScriptFFI #-} | |
module App.Front.Lib.Location where | |
import Data.Text (Text) | |
import GHC.Generics (Generic) | |
import GHCJS.DOM (currentWindowUnchecked) | |
import GHCJS.DOM.EventTarget (dispatchEvent_) |