This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.alibaba.excel.EasyExcel | |
import com.alibaba.excel.context.AnalysisContext | |
import com.alibaba.excel.event.AnalysisEventListener | |
import org.springframework.batch.item.ExecutionContext | |
import org.springframework.batch.item.ItemStreamReader | |
import java.util.concurrent.Executors | |
import java.util.concurrent.Semaphore | |
class EasyExcelReader<T>( | |
private val file: String, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const rp = require('request-promise'); | |
const RSAKey = require('./WBPassword'); | |
const Promise = require('promise'); | |
// rp.debug = true; | |
/** | |
* 微博的预先登录,用来获取微博的公钥 | |
* @param username 用户名 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const RSAKey = function () { | |
function bt (a) { | |
var b = bp(a, this.n.bitLength() + 7 >> 3); | |
if (b == null) | |
return null; | |
var c = this.doPublic(b); | |
if (c == null) | |
return null; | |
var d = c.toString(16); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private static final List<String> PWD_CHARS; | |
static { | |
PWD_CHARS = new ArrayList<String>(); | |
PWD_CHARS.add("123456789"); | |
PWD_CHARS.add("qwertyuipkjhgfdsazxcvbnm"); | |
PWD_CHARS.add("QWERTYUPLKJHGFDSAZXCVBNM"); | |
} | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
TextInput, | |
View, | |
StyleSheet | |
} from 'react-native'; | |
import PropTypes from 'prop-types' | |
export default class LoginInput extends React.Component { | |
constructor (props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
TextInput, | |
View, | |
StyleSheet | |
} from 'react-native'; | |
import PropTypes from 'prop-types' | |
export default class LoginInput extends React.Component { | |
constructor (props) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import { | |
StyleSheet, | |
View, | |
Text | |
} from 'react-native'; | |
import { Modal, Progress } from 'antd-mobile'; | |
import PropTypes from 'prop-types'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
#include <v8.h> | |
#include <libplatform/libplatform.h> | |
using namespace v8; | |
using namespace std; | |
class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { | |
public: |