This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> |
This file contains hidden or 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
{ | |
this.openDrawer ? ( | |
<VSideDrawer | |
title="Edit User" | |
close={this.toggleDrawer} | |
okText="Save" | |
okCallback={this.saveUser} | |
> | |
Body of drawer | |
</VSideDrawer> |
This file contains hidden or 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
/** | |
* Initialize your data structure here. | |
*/ | |
var MyLinkedList = { | |
head: null, | |
length: 0, | |
Node: function (val){ | |
return { |
This file contains hidden or 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, {Component} from 'react'; | |
import logo from './logo.svg'; | |
import './App.css'; | |
class App extends Component { | |
state = {notes: []}; | |
componentDidMount() { | |
fetch('/api/notes') |
This file contains hidden or 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
'use strict'; | |
const express = require('express'); | |
const router = express.Router(); | |
router.get('/', function(req, res) { | |
res.json([ | |
{ | |
id: 1, | |
title: 'First note', |
This file contains hidden or 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
'use strict'; | |
const express = require('express'), | |
notes = require('./routes/rs_notes'); | |
const app = express(); | |
const router = express.Router(); | |
// route middleware that will happen on every request | |
router.use((req, res, next) => { |
This file contains hidden or 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.controller('MainController', ['$scope', function($scope) { | |
$scope.apps = [ | |
{ | |
icon: 'img/move.jpg', | |
title: 'MOVE', | |
developer: 'MOVE, Inc.', | |
price: 0.99 | |
}, | |
{ | |
icon: 'img/shutterbugg.jpg', |
NewerOlder