#まず見るべき
以下のURLは、常に更新されているコンテンツです。
- ドキュメント日本語版
- 日本語版ドキュメントはVue.js日本語コミュニティによって常に更新されています。ミスがあれば、是非jp.vuejs.orgまでプルリクエストを頂けると助かります。
- 質問や議論は日本語コミュニティのSlackが活発です。
- はじめに読むものとしては、下記のコンテンツが良いでしょう。
- 概要
#まず見るべき
以下のURLは、常に更新されているコンテンツです。
import React from 'react'; | |
let lastScrollY = 0; | |
let ticking = false; | |
class App extends React.Component { | |
componentDidMount() { | |
window.addEventListener('scroll', this.handleScroll, true); | |
} |
var vm = require('vm'); | |
var fs = require('fs'); | |
var path = require('path'); | |
/** | |
* Helper for unit testing: | |
* - load module with mocked dependencies | |
* - allow accessing private state of the module | |
* | |
* @param {string} filePath Absolute path to module (file to load) |
## Lenguaje Go | |
set --export GOROOT /usr/local/go | |
set -gx PATH /usr/local/go/bin $PATH | |
#set -gx PATH GOROOT/bin $PATH | |
set --export GOPATH $HOME/GoProjects | |
set -gx PATH $GOPATH/bin $PATH | |
## AppEngine para GO | |
set -gx PATH $HOME/programs/go_appengine $PATH |
module.exports = function(grunt){ | |
var path = require('path'); | |
var matchdep = require('matchdep'); | |
matchdep.filterDev('grunt-*').forEach(grunt.loadNpmTasks); | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
compass: { | |
dev: { |
//this function composes functions like in Haskell (and most other functional languages) | |
//the final composed function can accept parameters dictated by the chain it creates | |
//you can pass it a list of functions and it shall apply them from RIGHT to LEFT (right associativeness?) | |
//eg., c0(fn1, fn2, fn3)(10) => return fn1(fn2(fn3(10))); | |
// out<---<----<----<=10 | |
function c0(f, g) { | |
var last; | |
if (!arguments.length) return; | |
if (arguments.length === 1) return f; | |
if (arguments.length === 2) { |
#!/bin/bash | |
# Escape code | |
esc=`echo -en "\033"` | |
# Set colors | |
cc_red="${esc}[0;31m" | |
cc_green="${esc}[0;32m" | |
cc_yellow="${esc}[0;33m" | |
cc_blue="${esc}[0;34m" |
Why Should I Care (For Developers)
"Dockerが面白いのはシンプルな環境に隔離性と再現性をもたらしてくれることだ.ランタイムの環境を一度作れば、パッケージにして別のマシンでも再利用することできる.さらに,すべてはホスト内の隔離された環境で行われる(VMのように).最も素晴らしい点は,シンプルかつ高速であることだ."
#!/bin/sh | |
# | |
# Enter arguments. | |
# | |
echo "Enter some arguments for installation." | |
while true; do | |
echo -n "Target directory? (e.g., /vagrant/www/foo) : " |
var srv = sinon.fakeServer.create(); | |
srv.autoRespond = true; // server should automatically respond after a timeout | |
srv.autoRespondAfter = 500; // response timeout in milliseconds | |
srv.xhr.useFitlers = true; // tell Sinon that some requests should not be faked | |
// add a filter that will tell Sinon to allowa all requests to access the server | |
// except fitlers defined when calling Server#fake. | |
srv.xhr.addFilter(function(method, url, async, username, password) { | |
var fakedRequest = _.find(Server.fakedRequests, function(request) { | |
return request.method === method && request.regex.test(url); |