(1) = exists in preview state (2) = planned next (3) = planned
- completely free and open source
- convention over configuration
- simple to use
- reliable
void slowTask(){ | |
Console.WriteLine("Prints after"); | |
} | |
void Main() | |
{ | |
Task.Run(()=>slowTask()); | |
Console.WriteLine("Prints immediately"); | |
} |
function flt(fieldName) { | |
var parsedValue = parseFloat($('#' + fieldName).val().replace(",", ".")); | |
if (isNaN(parsedValue)) parsedValue = 0; | |
$('#' + fieldName).val(parsedValue); | |
return parsedValue; | |
} | |
function recalculate(reset) { | |
var r1 = (flt("i1") * 1000 - 2 * flt("i4")); | |
$("#r1").val(Math.round(r1)); |
using System; | |
using Microsoft.VisualStudio.TestTools.UnitTesting; | |
using OrigoDB.Core; | |
using System.Collections.Generic; | |
using System.Linq; | |
namespace PlayingWithOrigoDB | |
{ | |
[TestClass] | |
public class QuickStartGuide |
/* Lock dictionary between read and write */ | |
public T Do(string key, Func<T,T> func){ | |
lock (_dictionary) { | |
var originalValue = get<T>(key); | |
var newValue = func(originalValue); | |
set(key, newValue); | |
return newValue; | |
} | |
} |
using System; | |
using System.Web; | |
using Microsoft.AspNet.SignalR; | |
using System.Collections.Generic; | |
namespace SignalRChat | |
{ | |
public class ChatHub : Hub | |
{ | |
var express = require('express'), | |
app = express.createServer(), | |
request = require('request'); | |
app.listen(process.env.PORT || 1235); | |
app.use('/hello',function (req, res) { | |
res.send('This comes from node w express'); | |
}); |
Foo.BarBas | |
Project | |
Foo:string | |
Id:key | |
Name | |
Write project name :label | |
You need to state the project name:err | |
Address |
// do not use result cache, nor line and column tracking | |
/* sample: | |
Project | |
Id :key | |
Name | |
Write project name:label | |
You need to state the project name:err | |
Address | |
SomeValue :num |
start = (fullname:fullname "\n"? {return fullname})* | |
name = | |
char:[A-Za-z]+ { return char.join(""); } | |
fullname = | |
firstName:name " " secondName:name {return {fn:firstName, sn:secondName}} | |
/* foo bar | |
baz bang */ |