Skip to content

Instantly share code, notes, and snippets.

View brikis98's full-sized avatar

Yevgeniy Brikman brikis98

View GitHub Profile
val l1 = 1 :#: 2 :#: 3 :#: VNil
\s ->std.out;
"Hello, World!" ->s;
s = [string\];
"Hello, World!" ->std.out
"Goodbye, World!" ->std.out
"Hello, World!" ->std.out
s = [string\];
"Hello, World!" ->s;
\s ->std.out;
sort_list(Input, Output) :-
permutation(Input, Output),
check_order(Output).
check_order([]).
check_order([Head]).
check_order([First, Second | Tail]) :-
First =< Second,
check_order([Second | Tail]).
@brikis98
brikis98 / gist:10233051
Last active August 29, 2015 13:58
parallel
A;
B;
C;
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('hello world');
});
app.listen(3000);
app → Application sources
└ controllers → Application controllers
└ Application.scala → An example controller
└ models → Application business layer
└ views → Templates
build.sbt → Application build script
conf → Configurations files and other non-compiled resources (on classpath)
└ application.conf → Main configuration file
└ routes → Routes definition
public → Public assets
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');