- Intro: https://www.youtube.com/playlist?list=PL697D36B35F92E9E4 (1)
- JS:
- Single page: https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript (2)
- Video: http://video.ch9.ms/ch9/DF01/97ECAC6F-5413-486A-B9D5-9EB60082DF01/MIX11HTM06_high_ch9.mp4 (5)
- Intermediate: http://ejohn.org/apps/learn (6)
- Philip Roberts: What the heck is the event loop anyway? https://www.youtube.com/watch?v=8aGhZQkoFbQ
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 socket | |
import sys | |
from contextlib import contextmanager | |
import click | |
so_reuseport = socket.SO_REUSEPORT | |
@contextmanager |
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
FROM mono:latest | |
MAINTAINER Akim Boyko "akim dot boyko at gmail.com" version: 0.1 | |
ENV AKKADIR /akka | |
RUN mkdir -p $AKKADIR | |
WORKDIR $AKKADIR | |
RUN mozroots --import --sync |
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
# How to build | |
# docker build -t textretrieval-001 . | |
# #run and name it | |
# docker run --name meta -i -t textretrieval-001 | |
# #run and mount directory | |
# docker run -it -v /mnt/programming:/mnt/programming textretrieval-001:latest | |
FROM ubuntu:latest | |
MAINTAINER Akim Boyko "akim dot boyko at gmail.com" version: 0.1 |
- Use 64-bit configuration. At Visual Studio switch 'Tools/Options/F# tools/F# Interactive/64-bit F# Interactive' should be "true"
- Tune
Fsi.exe
andFsiAnyCPU.exe
configuration in “c:\Program Files (x86)\Microsoft SDKs\F#<version>\Framework<version>\” ** — specifies whether the common language runtime runs server garbage collection. ** — specifies whether the common language runtime runs garbage collection on a separate thread. ** — on 64-bit platforms, enables arrays that are greater than 2 gigabytes (GB) in total size.
Including The Task In Your Project's Project File Afterwards you will get following build error:
The "FSharpLintTask" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'FSharpLint.Application, Version=0.1.11.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'FSharpLint.Application, Version=0.1.11.0, Culture=neutral, PublicKeyToken=null'
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
// Decompiled with JetBrains decompiler | |
// Type: FSharpParts.FSharpParts | |
// Assembly: FSharpParts, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null | |
// MVID: 54894392-FF35-398D-A745-038392438954 | |
// Assembly location: D:\temp\SharpExperiments\FSharpParts\bin\Debug\FSharpParts.dll | |
using CSharpParts; | |
using Microsoft.FSharp.Core; | |
namespace FSharpParts |
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
let (|SpaceKey|) (keyboard:KeyboardInput) = | |
keyboard.KeyPressed(Key.Space) | |
let (|Hold100ms|) (keyboard:KeyboardInput) = | |
keyboard.KeyPressedFor(Key.I, 100) | |
match DualityApp.Keyboard with | |
| SpaceKey true & Hold100ms false -> playerGo Jump | |
| SpaceKey true & Hold100ms true -> playerGo DoubleJump |
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
#time "on" | |
#load "Bootstrap.fsx" | |
open System | |
open Akka.Actor | |
open Akka.Configuration | |
open Akka.FSharp | |
open Akka.TestKit | |
// #Using Actor |
- Real: 00:00:32.700, CPU: 00:02:01.165, GC gen0: 285, gen1: 80, gen2: 5
- Real: 00:00:31.421, CPU: 00:01:59.621, GC gen0: 234, gen1: 65, gen2: 4
- Real: 00:00:32.865, CPU: 00:02:02.335, GC gen0: 250, gen1: 70, gen2: 5
- Average 32328.7ms
- Real: 00:00:34.108, CPU: 00:02:06.470, GC gen0: 203, gen1: 58, gen2: 5
- Real: 00:00:33.386, CPU: 00:02:06.392, GC gen0: 224, gen1: 63, gen2: 5
- Real: 00:00:33.720, CPU: 00:02:07.764, GC gen0: 218, gen1: 63, gen2: 5
NewerOlder