View cell0.js
var canvas = document.createElement('canvas')
canvas.width = 700
canvas.height = 400
canvas.style.width = '100%'
var ctx = canvas.getContext('2d');
function drawTree(x1, y1, length, angle, n){
var x2 = x1 + length * Math.cos(angle*Math.PI/180);
var y2 = y1 - length * Math.sin(angle*Math.PI/180);
View Sorted.js
import React from 'react'
import ReactSort from 'react-sort-component';
const items = [{ name: "messi", age: 25}, { name: "nithin", age: 12 }];
export const Sorted = () => (<ReactSort
dataSource={items}
sortOptions={{ sortField: "age", sortDir: "des" }} >
{ (props) => <div>{props.name} - {props.age}</div> }
</ReactSort>);
View cell0.js
import Immutable from 'seamless-immutable'
console.clear()
var array = Immutable(["totally", "immutable", { hammer: "Can’t Touch This" }]);
try {
array[1] = "I'm going to mutate you!"
} catch (err) {
console.log(err)
View App.jsx
import React from 'react'
import firebase from 'firebase'
import {liveData, actions} from './storage.js'
import GroupsList from './GroupsList.jsx'
try { firebase.app() } catch (e){
firebase.initializeApp({
apiKey: "AIzaSyBm9oAcCktnQlaxNS1GvyraDGV7QtA6d78",
authDomain: "bastard-183be.firebaseapp.com",
databaseURL: "https://bastard-183be.firebaseio.com",
View untitled.carbide.md
View untitled.carbide.md
View untitled.carbide.md