Todo List Application
- Deadline: 3/10 中午 12:00
- 把檔案寄至 chentsulin@gmail.com,標題寫 [作業一/ 電機X XXX] (如果你已經會用 github 也可以寄 repo 連結過來)
// ---- | |
// Sass (v3.3.0.rc.1) | |
// Compass (v0.13.alpha.10) | |
// ---- | |
$users: amy annie eric | |
@each $u in $users | |
.user-#{$u} | |
background: url(#{$u}.jpg) |
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 => |
Todo List Application