Skip to content

Commit a8c9f89

Browse files
committed
Add LICENSE at root, fix license headers.
Closes reactjs#70
1 parent fd32db8 commit a8c9f89

File tree

9 files changed

+43
-16
lines changed

9 files changed

+43
-16
lines changed

LICENSE

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The examples provided by Facebook are for non-commercial testing and evaluation
2+
purposes only. Facebook reserves all rights not expressly granted.
3+
4+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7+
FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
8+
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
9+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Server.hs

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
-- This file provided by Facebook is for non-commercial testing and evaluation
2+
-- purposes only. Facebook reserves all rights not expressly granted.
3+
--
4+
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5+
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6+
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7+
-- FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
8+
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
9+
-- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
10+
111
{-# LANGUAGE OverloadedStrings #-}
212

313
module Main (main) where
@@ -32,7 +42,7 @@ instance ToJSON Comment where
3242

3343
main :: IO ()
3444
main = scotty 3000 $ do
35-
45+
3646
middleware $ staticPolicy (noDots >-> addBase "public")
3747
middleware logStdoutDev
3848

@@ -41,7 +51,7 @@ main = scotty 3000 $ do
4151
get "/comments.json" $ do
4252
comments <- liftIO $ readFile "comments.json"
4353
json $ fromJust $ (decode comments :: Maybe [Comment])
44-
54+
4555
post "/comments.json" $ do
4656
comments <- liftIO $ BS.readFile "comments.json"
4757
let jsonComments = fromJust $ (decode $ fromStrict comments :: Maybe [Comment])
@@ -50,5 +60,3 @@ main = scotty 3000 $ do
5060
let allComments = jsonComments ++ [Comment comment author]
5161
liftIO $ writeFile "comments.json" (encode allComments)
5262
json allComments
53-
54-

public/scripts/example.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* This file provided by Facebook is for non-commercial testing and evaluation purposes only.
3-
* Facebook reserves all rights not expressly granted.
2+
* This file provided by Facebook is for non-commercial testing and evaluation
3+
* purposes only. Facebook reserves all rights not expressly granted.
44
*
55
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

server.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* This file provided by Facebook is for non-commercial testing and evaluation purposes only.
3-
* Facebook reserves all rights not expressly granted.
2+
* This file provided by Facebook is for non-commercial testing and evaluation
3+
* purposes only. Facebook reserves all rights not expressly granted.
44
*
55
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

server.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
2-
* This file provided by Facebook is for non-commercial testing and evaluation purposes only.
3-
* Facebook reserves all rights not expressly granted.
2+
* This file provided by Facebook is for non-commercial testing and evaluation
3+
* purposes only. Facebook reserves all rights not expressly granted.
44
*
55
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
66
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

server.lua

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
-- This file provided by Facebook is for non-commercial testing and evaluation
2+
-- purposes only. Facebook reserves all rights not expressly granted.
3+
--
4+
-- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
5+
-- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
6+
-- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
7+
-- FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
8+
-- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
9+
-- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
10+
111
--
212
-- For use with Algernon / Lua
313
--

server.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* This file provided by Facebook is for non-commercial testing and evaluation purposes only.
4-
* Facebook reserves all rights not expressly granted.
3+
* This file provided by Facebook is for non-commercial testing and evaluation
4+
* purposes only. Facebook reserves all rights not expressly granted.
55
*
66
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
77
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

server.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This file provided by Facebook is for non-commercial testing and evaluation purposes only.
2-
# Facebook reserves all rights not expressly granted.
1+
# This file provided by Facebook is for non-commercial testing and evaluation
2+
# purposes only. Facebook reserves all rights not expressly granted.
33
#
44
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

server.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# This file provided by Facebook is for non-commercial testing and evaluation purposes only.
2-
# Facebook reserves all rights not expressly granted.
1+
# This file provided by Facebook is for non-commercial testing and evaluation
2+
# purposes only. Facebook reserves all rights not expressly granted.
33
#
44
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
55
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

0 commit comments

Comments
 (0)