This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/zq99/pgn2data/master/samples/caruana_carlsen_2018_moves.csv" AS row | |
MERGE (p:Position {fen:row.fen}) | |
CREATE (m:Move {move:row.move, colour:row.color, no:tointeger(row.move_no_pair), piece:row.piece}) | |
CREATE (m)-[:RESULTS_IN]->(p); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/fivethirtyeight/data/master/nba-elo/nbaallelo.csv" AS row | |
//skipping doubles, also Aura Free limit of 50k nodes, ~ 100 teams | |
WITH row LIMIT 99900 WHERE row._iscopy="0" | |
MERGE (ht:Team {code:row.team_id}) | |
ON CREATE SET ht.name = row.fran_id | |
MERGE (at:Team {code:row.opp_id}) | |
ON CREATE SET at.name = row.opp_fran | |
CREATE (m:Match {id:row.game_id, venue:right(row.game_id, 3), date:row.date_game}) | |
WITH ht, at, m, row.pts AS hpoints, row.opp_pts AS apoints, | |
row.elo_i AS hse, row.elo_n AS hee, row.opp_elo_i AS ase, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOAD CSV WITH HEADERS FROM "https://raw.githubusercontent.com/ThaWeatherman/scrapers/b8757711296703356891f8f4e7757de6698a6b5b/boardgamegeek/games.csv" AS ROW | |
WITH ROW WHERE tointeger(row.playingtime) > 9 | |
AND tointeger(row.playingtime) <61 | |
CREATE (g:Game {name:row.name, weight:tofloat(row.average_weight), | |
rating:tofloat(row.average_rating), | |
playingTime:tointeger(row.playingtime), id:row.id}) | |
MERGE (pmin:PlayerCount {value:tointeger(row.minplayers)}) | |
MERGE (pmax:PlayerCount {value:tointeger(row.maxplayers)}) | |
WITH g, pmin, pmax | |
CREATE (g)-[:HAS_MIN_PLAYERS]->(pmin) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
font-family: sans-serif; | |
text-align: center; | |
height: 100vh; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { App as SendbirdApp } from "sendbird-uikit"; | |
import "sendbird-uikit/dist/index.css"; | |
import "./styles.css"; | |
const APP_ID = "45612F31-4304-4FC4-9FD9-C35B5FCDCE30" | |
const USER_ID = "Demo User" | |
export default function App() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { App as SendbirdApp } from "sendbird-uikit"; | |
import "sendbird-uikit/dist/index.css"; | |
import "./styles.css"; | |
const APP_ID = "45612F31-4304-4FC4-9FD9-C35B5FCDCE30"; | |
const USER_ID = "Demo User"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import { App as SendbirdApp } from "sendbird-uikit"; | |
import "sendbird-uikit/dist/index.css"; | |
import "./styles.css"; | |
export default function App() { | |
return ( | |
<div className="App"> | |
<h1>Hello CodeSandbox</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.App { | |
font-family: sans-serif; | |
text-align: center; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import "./styles.css"; | |
export default function App() { | |
return ( | |
<div className="App"> | |
<h1>Hello CodeSandbox</h1> | |
<h2>Start editing to see some magic happen!</h2> | |
</div> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import App from "./App"; | |
const rootElement = document.getElementById("root"); | |
ReactDOM.render( | |
<React.StrictMode> | |
<App /> | |
</React.StrictMode>, |