Calculator App
依照提供的檔案進行修改 (https://github.com/web-seminar/calculator)
class Dir { | |
public static void main(String[] args) { | |
System.out.println("Directory: " + System.getProperty("user.dir")); | |
} | |
} |
// app/config/myenv/app.php | |
return array( | |
'debug' => true, | |
); |
package server | |
import( | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/", SayHelloWorld) | |
http.ListenAndServe(":8080", nil) | |
} |
<?php | |
use Illuminate\Hashing\HasherInterface; | |
class NoHasher implements HasherInterface { | |
public function make($value, array $options = array()) | |
{ | |
return $value; | |
} |
// 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); |
var _setT = setTimeout; | |
setTimeout = function() { | |
console.log('setTimeout'); | |
console.log(arguments); | |
_setT.apply(this, arguments); | |
}; | |
var _setI = setInterval; | |
setInterval = function() { | |
console.log('setInterval'); |
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 |
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 => |
Calculator App
依照提供的檔案進行修改 (https://github.com/web-seminar/calculator)