https://aka.ms/aspnetcore-makeover
- Intro (goals/non-goals/what you'll learn)
- Pick The Right Starting Template
- Web Application (no auth)
- Web API
- SPA
https://aka.ms/aspnetcore-makeover
sudo apt-get update | |
sudo apt-get install build-essential chrpath libssl-dev libxft-dev -y | |
sudo apt-get install libfreetype6 libfreetype6-dev -y | |
sudo apt-get install libfontconfig1 libfontconfig1-dev -y | |
cd ~ | |
export PHANTOM_JS="phantomjs-2.1.1-linux-x86_64" | |
wget https://github.com/Medium/phantomjs/releases/download/v2.1.1/$PHANTOM_JS.tar.bz2 | |
sudo tar xvjf $PHANTOM_JS.tar.bz2 | |
sudo mv $PHANTOM_JS /usr/local/share | |
sudo ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin |
// paket add nuget NEST | |
#I "../../packages" | |
#r "Elasticsearch.Net/lib/net46/Elasticsearch.Net.dll" | |
#r "NEST/lib/net46/Nest.dll" | |
open System | |
//open Elasticsearch.Net | |
open Nest |
// the two-track type | |
type Result<'TSuccess,'TFailure> = | |
| Success of 'TSuccess | |
| Failure of 'TFailure | |
type ResultInterop<'TSuccess, 'TFailure> = { | |
IsSuccess : bool | |
Success : 'TSuccess | |
Failure : 'TFailure | |
} |
We want to demonstrate how easy it is to model a domain as a graph and answer questions in almost natural language.
Graph Based Search and Discovery is prominent a use-case for graph databases like Neo4j.
import falcon | |
import falcon.testing as testing | |
QUOTE = (u"\nI've always been more interested in\n" | |
u'the future than in the past.\n' | |
u'\n' | |
u' ~ Grace Hopper\n\n') | |
class ThingsResource(object): | |
def on_get(self, req, resp): |
#!/usr/bin/env python | |
# -*- encoding: utf-8 -*- | |
from __future__ import print_function | |
import random | |
from time import time | |
from py2neo import Graph, GraphError |
// Let's send an email! |
In theory you should be able to install the mono-devel package from Debian, then grab the latest checkout of F#'s Github repository and build. Unfortunately, the most recent versions of Debian's (and Ubuntu's) mono-devel package (3.0.6) include a lovely bug that breaks the F# build (https://bugzilla.xamarin.com/show_bug.cgi?id=10884). Another alternative is installing Debian Sid (unstable branch), where there are currently working F# packages, but installing a whole system from unstable has the sorts of stability issues you might expect, and cherry-picking the right .deb packages from the Debian repositories is unpleasant. There's also the option of using an F# developer's personal repository (https://gist.github.com/tkellogg/5619461), but I don't like adding untrusted sources to my sources.list.
After discovering that Vagrant includes support for a version of Debian Wheezy with F#, I figured out a working, relatively uninvasive approach based on the package