Skip to content

Instantly share code, notes, and snippets.

View byronyi's full-sized avatar
:octocat:
Just for fun

Bairen Yi byronyi

:octocat:
Just for fun
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
rustc 1.0.0-dev (b2e65ee6e 2015-04-07) (built 2015-04-07)
Compiling racer v0.0.1 (file:///Users/byronyi/.vim/bundle/racer)
Compiling racer v0.0.1 (file:///Users/byronyi/.vim/bundle/racer)
src/racer/ast.rs:51:5: 53:7 error: mismatched types:
expected `syntax::ast::Crate`,
found `core::result::Result<syntax::ast::Crate, syntax::diagnostic::FatalError>`
(expected struct `syntax::ast::Crate`,
found enum `core::result::Result`) [E0308]
src/racer/ast.rs:51 with_error_checking_parse(source_str, |p| {
src/racer/ast.rs:52 p.parse_crate_mod()
src/racer/ast.rs:53 })
src/racer/snippets.rs:34:19: 34:30 error: attempted access of field `node` on type `&core::result::Result<syntax::ptr::P<syntax::ast::ImplItem>, syntax::diagnostic::FatalError>`, but no field with that name was found
Fresh rustc-serialize v0.3.12
Fresh toml v0.1.20
Compiling racer v0.0.1 (file:///Users/byronyi/.vim/bundle/racer)
Running `rustc src/main.rs --crate-name racer --crate-type bin -C opt-level=3 -g --out-dir /Users/byronyi/.vim/bundle/racer/target/release --emit=dep-info,link -L dependency=/Users/byronyi/.vim/bundle/racer/target/release -L dependency=/Users/byronyi/.vim/bundle/racer/target/release/deps --extern toml=/Users/byronyi/.vim/bundle/racer/target/release/deps/libtoml-e4d393d734aaa578.rlib`
src/racer/ast.rs:51:5: 53:7 error: mismatched types:
expected `syntax::ast::Crate`,
found `core::result::Result<syntax::ast::Crate, syntax::diagnostic::FatalError>`
(expected struct `syntax::ast::Crate`,
found enum `core::result::Result`) [E0308]
src/racer/ast.rs:51 with_error_checking_parse(source_str, |p| {
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>K-means 聚类分析</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
#!/usr/bin/env python
from __future__ import division, print_function, unicode_literals
import os
from datetime import datetime
from tempfile import mkdtemp
import joblib
import tempfile
from joblib import Memory