Calculator App
依照提供的檔案進行修改 (https://github.com/web-seminar/calculator)
Chat Room Application
- Deadline: 10/22 中午 12:00
- 把檔案寄至 chentsulin@gmail.com,標題寫 [作業三/ 電機X XXX] (如果你已經會用 github 也可以寄 repo 連結過來)
- Deadline: 3/17 中午 12:00
- 把檔案寄至 chentsulin@gmail.com,標題寫 [作業二/ 電機X XXX] (如果你已經會用 github 也可以寄 repo 連結過來)
Todo List Application
- Deadline: 3/10 中午 12:00
- 把檔案寄至 chentsulin@gmail.com,標題寫 [作業一/ 電機X XXX] (如果你已經會用 github 也可以寄 repo 連結過來)
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 { mapValues, pick, compose } from 'lodash'; | |
function bindActionCreator(actionCreator, dispatch) { | |
return (...args) => dispatch(actionCreator(...args)); | |
} | |
export function bindActionCreators(actionCreators, dispatch) { | |
return typeof actionCreators === 'function' ? | |
bindActionCreator(actionCreators, dispatch) : | |
mapValues(actionCreators, actionCreator => |
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 { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; | |
export default function createDevToolsWindow(store) { | |
// give it a name so it reuses the same window | |
const win = window.open(null, 'redux-devtools', 'menubar=no,location=no,resizable=yes,scrollbars=no,status=no'); | |
// reload in case it's reusing the same window with the old content |
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
var _setT = setTimeout; | |
setTimeout = function() { | |
console.log('setTimeout'); | |
console.log(arguments); | |
_setT.apply(this, arguments); | |
}; | |
var _setI = setInterval; | |
setInterval = function() { | |
console.log('setInterval'); |
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
// require() some stuff from npm (like you were using browserify) | |
// and then hit Run Code to run it on the right | |
var qs = require('qs'); | |
var obj = qs.stringify({ a: [ 'a', 'b', 'c' ] }); | |
console.log(obj); |