Skip to content

Instantly share code, notes, and snippets.

Avatar
🚣‍♂️
划水中|Surfing Watering...

Shengming Yuan ssysm

🚣‍♂️
划水中|Surfing Watering...
View GitHub Profile
View DistinctPowers.java
import java.util.ArrayList;
public class DistinctPowers{
//Check if number exist in array
private static boolean isNumberExist(ArrayList<Double> arr, double cmp){
for(double d: arr){
if(d == cmp){
return true;
}
View PD_CPP.cpp
#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
bool isNumExist(vector < double > & vec, double num);
int getDistinctPower(int a_min_base, int a_max_base, int b_min_power, int b_max_power);
void main() {
View niconico_keepalive.js
const axios = require('axios');
const cherrio = require('cheerio');
const WebSocket = require('ws');
//请求生放链接
axios.get('http://live2.nicovideo.jp/watch/lv316496097')
.then(res => res.data)
.then(data => {
//parse HTML
const $ = cherrio.load(data);
You can’t perform that action at this time.