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
JohnMayer:Server johnmayer$ pwd | |
/Users/johnmayer/Library/Application Support/Steam/steamapps/common/Eco/Eco.app/Contents/Server | |
JohnMayer:Server johnmayer$ cat Configs/Network.eco | |
{ | |
"PublicServer": false, | |
"Playtime": "", | |
"DiscordAddress": "", | |
"Password": "", | |
"Description": "", | |
"DetailedDescription": "", |
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
Mono path[0] = '/Users/johnmayer/Library/Application Support/Steam/steamapps/common/Eco/Eco.app/Contents/Resources/Data/Managed' | |
Mono config path = '/Users/johnmayer/Library/Application Support/Steam/steamapps/common/Eco/Eco.app/Contents/MonoBleedingEdge/etc' | |
Initialize engine version: 2019.4.9f1 (50fe8a171dd9) | |
[Subsystems] Discovering subsystems at path /Users/johnmayer/Library/Application Support/Steam/steamapps/common/Eco/Eco.app/Contents/Resources/Data/UnitySubsystems | |
GfxDevice: creating device client; threaded=1 | |
2020-09-15 21:50:24.012 Eco[38316:7725564] Color LCD preferred device: AMD Radeon Pro 5300M (high power) | |
2020-09-15 21:50:24.012 Eco[38316:7725564] Metal devices available: 2 | |
2020-09-15 21:50:24.012 Eco[38316:7725564] 0: AMD Radeon Pro 5300M (high power) | |
2020-09-15 21:50:24.012 Eco[38316:7725564] 1: Intel(R) UHD Graphics 630 (low power) | |
2020-09-15 21:50:24.012 Eco[38316:7725564] Using device AMD Radeon Pro 5300M (high power) |
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
[22:27:58.317] [1] [ Info] [Eco] >>> START EcoServer, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null | |
[22:27:58.334] [1] [ Info] [Eco] [Eco Server 0.9.0.2 beta] | |
[22:27:58.389] [5] [ Info] [Eco] [Starting [PerformancePlugin]]... | |
[22:27:58.389] [5] [ Info] [Eco] [Starting [PerformancePlugin]]... [Finished in 0.3ms] | |
[22:27:58.389] [5] [ Info] [Eco] [Server Initialization]... | |
[22:27:58.784] [5] [ Info] [Eco] Starting LocalizationPlugin... | |
[22:27:58.784] [5] [ Info] [Eco] Starting LocalizationPlugin... Finished in 0.4ms | |
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
# Assumes the following are available | |
# | |
# jq | |
curl https://api.github.com/users/johnpmayer/keys |
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
extern crate sync; | |
use sync::Arc; | |
use sync::Mutex; | |
static N : uint = 5; | |
fn philosopher(seat : uint, vec : &Arc<Vec<Mutex<()>>>) { | |
let leftFork = seat; | |
let rightFork = (seat + 1) % N; | |
println!("Philosopher {} {} {}", seat, leftFork, rightFork); |
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
[1 of 5] Compiling Vec2 ( Vec2.elm ) | |
Type error on line 31: | |
{x = v.x, y = v.y} | |
Expected Type: a | |
Actual Type: {} | |
Type error on line 34: |
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 Loop where | |
import Graphics.Input (checkbox) | |
-- compiler note, impossible to put a valid type signature here | |
-- check : Signal Element | |
-- power : Signal Bool | |
(check, power) = checkbox true | |
tick : Signal Time |
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
Mayer.John.Native.Loop = function(elm) { | |
// Various boilerplate stuff | |
'use strict'; | |
if (elm.Native.Loop) return elm.Native.Loop; | |
var Signal = Elm.Signal(elm); | |
// This is the unsafe loop construct | |
// loop : (b -> a) -> (Signal a -> Signal b) -> b -> Signal b | |
var loop = function(convert, transform, initial) { |
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
{- | |
- This is the loop function that I propose as an ehancement. | |
- I think it's better because the asychonous loopback signal | |
- is anonymous, rather than a top-level definition. | |
-} | |
loop : (b -> a) -> b -> (Signal a -> Signal b) -> Signal b | |
-- Here's how we're going to control our little demo | |
powerButton : Element | |
power : Signal Bool |
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 Bar where | |
type A = { x : Int, y : Int } |
NewerOlder