The following give a thorough introduction to datamic.
- [Datomic Homepage][1]
- [Datamic Documentation][2]
- [Datomic YouTube channel][3]
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; | |
font-size: 200%; | |
font-family: sans-serif; |
I have the following ideas about contributing to an open source project.
"use strict"; | |
(function(){ | |
var db = openDatabase("demo", "1.0", "demonstration of webSQL", 2 * 1024 * 1024); | |
db.transaction(function(tx){ | |
tx.executeSql("create table if not exists entries (timestamp, description, value)"); | |
}); | |
db.transaction(function(tx){ |
// return list of pairs of [1 .. 2*n] where every pair sums to a prime. | |
function prime_pairs(n) | |
if n eq 0 then | |
return []; | |
else | |
N := 2 * n; | |
p := NextPrime(N); | |
m := p - N; | |
result := [ <m + i, N - i> : i in [0 .. ((N - m) div 2)]]; | |
return prime_pairs(m div 2) cat result; |
var express = require("express"); | |
var app = express(); | |
app.use("/static", express.static(__dirname + '/public')); | |
var port = process.env.PORT || 3000; | |
app.listen(port); | |
console.log("Listening on port " + port); |
(function(Pouch){ | |
if (!Pouch) { throw "No Pouch found!"; } | |
var dbName = "experiment"; | |
var ResponseLogger = function(loggerName){ | |
return function logResponse(err, response){ | |
if (err) { throw err; } | |
console.log(loggerName + ":"); | |
console.log(response); |
(function(undefined){ | |
var pico = function(template){ | |
var _regexp = /\{\{(\w*)\}\}/g; | |
return function(data) { | |
return template.replace(_regexp, function(str, key){ | |
return data[key]; | |
}); | |
} | |
}; |
Go to magma calculator and paste the binary-look-and-say.magma
code in the textarea.