Skip to content

Instantly share code, notes, and snippets.

import fetch from 'dva/fetch';
import config from '../config';
import { Toast } from 'antd-mobile';
import { getAccessToken } from './authority';
const codeMessage = {
200: '数据获取成功',
201: '操作成功',
202: '已加入任务队列',
204: '删除成功',
@vontell068
vontell068 / point_in_polygon.rb
Created July 16, 2018 02:36
point_in_polygon
class Point
attr_accessor :x, :y
def initialize(x, y)
@x = x
@y = y
end
end
# >0 left
# =0 on line
module ExportServices
class QuestionnaireResponses
SIMPLE_QUESTION_HEADERS = [
"选项",
"值",
"提交人"
].freeze
DORPDOWN_GIRD_QUESTION_HEADERS = [
"行",
@vontell068
vontell068 / ResizableTable.js
Created April 24, 2018 06:18
ResizableTable.js
import React from 'react';
import ReactDOM from 'react-dom';
import { Table } from 'antd';
import uuidV4 from 'uuid/v4';
class ResizableTable extends React.Component {
constructor(props) {
super(props);
this.table = null;