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
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
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
ResultsReceived data -> | |
( { model | data = data } | |
, Cmd.none | |
) | |
ResultsReceived (Failure err) -> | |
( { model | data = (Failure err)} | |
, systemError (toString err) | |
) |
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
RetrievedTenants result -> | |
case result of | |
Ok tenants -> | |
(tenants, Cmd.none) | |
Err error -> | |
let | |
msg = toString error | |
fx = Signal.send model.showErrorsAddress msg | |
|> Effects.task | |
|> Effects.map TaskDone |
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 Html exposing (..) | |
import Html.Attributes exposing(..) | |
import Html.Events exposing(..) | |
import Html.App as Html exposing(..) | |
--MODEL | |
type alias Model = { | |
blueClicks : Int, | |
redClicks : Int, | |
greenClicks : Int |
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
$http.get('url').then(notifications => { | |
return _.map(notifications, n => { | |
let templates = { | |
1 : `/desktop/${n.Name}/${n.SomeId}`, | |
2 : `/desktop/${n.Whatever}/${n.SomethingElse}` | |
}; | |
return { | |
text : n.Text, | |
route : templates[n.Type] | |
} |
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
(defn relative-to [prev next] | |
(if prev | |
(let [[pr pc] prev | |
[nr nc] next] | |
[(+ pr nr) (+ pc nc)]) | |
next)) | |
(defn tetrominos | |
"all tetrominos start at [0 0]" | |
([] (tetrominos [[0 0]])) |
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
Out of memory | |
Stacktrace: | |
at <unknown> <0xffffffff> | |
at (wrapper managed-to-native) object.__icall_wrapper_mono_gc_alloc_vector (intptr,intptr,intptr) <0xffffffff> | |
at (wrapper alloc) object.AllocVector (intptr,intptr) <0xffffffff> | |
at Mono.Security.X509.X509Store.Load (string) <0x00068> | |
at Mono.Security.X509.X509Store.LoadCertificate (string) <0x00037> | |
at Mono.Security.X509.X509Store.BuildCertificatesCollection (string) <0x00107> | |
at Mono.Security.X509.X509Store.get_Certificates () <0x00023> |
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
{ | |
"version": "0.1-alpha-*", | |
"dependencies": { | |
"Microsoft.AspNet.Diagnostics": "1.0.0-*", | |
"Microsoft.AspNet.Hosting": "1.0.0-*", | |
"Microsoft.AspNet.Mvc": "6.0.0-*", | |
"Microsoft.AspNet.Server.WebListener": "1.0.0-*", | |
"Kestrel": "1.0.0-*" | |
}, | |
"commands": { |
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
/home/julianj/.config/sublime-text-3/Packages/Kulture/build.sh: 354: /home/julianj/.kre/kvm/kvm.sh: Syntax error: "(" unexpected (expecting ";;") | |
[Finished in 0.0s with exit code 2] | |
[cmd: ['sh', '/home/julianj/.config/sublime-text-3/Packages/Kulture/build.sh']] | |
[dir: /home/julianj/Projects/vNext/Home/samples/HelloMvc] | |
[path: /home/julianj/Applications/leiningen:/home/julianj/Applications/mongodb/mongodb-linux-x86_64-2.6.4/bin:/home/julianj/Applications/sbt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games] |
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
Microsoft.Framework.Runtime.Roslyn.RoslynCompilationException: /home/julianj/Projects/vNext/Home/samples/HelloMvc/Startup.cs(9,31): error CS0246: The type or namespace name 'IBuilder' could not be found (are you missing a using directive or an assembly reference?) | |
at Microsoft.Framework.Runtime.Roslyn.RoslynProjectReference.Load (IAssemblyLoadContext loadContext) [0x00000] in <filename unknown>:0 | |
at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load (System.String name, IAssemblyLoadContext loadContext) [0x00000] in <filename unknown>:0 | |
at Microsoft.Framework.Runtime.Loader.ProjectAssemblyLoader.Load (System.String name) [0x00000] in <filename unknown>:0 | |
at klr.host.LoaderContainer.Load (System.String name) [0x00000] in <filename unknown>:0 | |
at klr.hosting.RuntimeBootstrapper+<>c__DisplayClasse.<ExecuteAsync>b__4 (System.Reflection.AssemblyName assemblyName) [0x00000] in <filename unknown>:0 | |
at klr.hosting.RuntimeBootstrapper+<>c__DisplayClasse.<ExecuteAsync>b__7 (System.Object send |