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 Chart from 'chart.js'; | |
import moment from 'moment'; | |
const LineGraph = React.createClass({ | |
createChart: function() { | |
const data = this.props.data; | |
// Extracting data from properties | |
var val = data.map(a => a.score); |
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' | |
const Example = () => ( | |
<div> | |
<h2>Text</h2> | |
{/* | |
You just have to place your comment | |
between two curly braces | |
*/} | |
</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 Table from './Table'; | |
const Dashboard = React.createClass({ | |
// Function where the magic happens :D | |
sort_by: function(field, reverse, primer) { | |
var key = primer ? function(x) {return primer(x[field])} : | |
function(x) {return x[field]}; | |
reverse = !reverse ? 1 : -1; |
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'; | |
// Gamecard based on MDL Cards | |
const Gamecard = React.createClass({ | |
render: function() { | |
// JS object containing CSS like syntax | |
// We can use other variables in it (e.g. props) | |
const CardImage = { | |
height: '175px', | |
background: 'url("' + this.props.image + '") center / cover' | |
}; |
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
"build": { | |
"appId": "org.breta.MemoryKing", | |
"category": "public.app-category.education", | |
"files": [ | |
"dist/", | |
"node_modules/", | |
"static/", | |
"main.js", | |
"index.html", | |
"package.json" |
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
"directories": { | |
"output": "release" | |
}, |
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
os: unstable | |
cache: | |
- node_modules | |
environment: | |
GH_TOKEN: | |
secure: fK836CflhDBugnKO8/6bb/97NGIsR/E8Y3e | |
matrix: | |
- nodejs_version: 6 | |
install: | |
- ps: Install-Product node $env:nodejs_version |
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
sudo: required | |
dist: trusty | |
language: c | |
matrix: | |
include: | |
- os: osx | |
- os: linux | |
env: CC=clang CXX=clang++ npm_config_clang=1 |
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
"postinstall": "install-app-deps", | |
"dist": "npm run build && build --publish onTagOrDraft" |
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
\documentclass{article} | |
\begin{document} | |
\title{Example Page} | |
\author{Breta} | |
\maketitle | |
\begin{abstract} | |
This is the example page. | |
\end{abstract} |