- #21587 撰寫 新鑫寶 網站的爬蟲
- 363 headless(puppeteer)
- #21587 撰寫 新鑫寶 網站的爬蟲
- 363 headless(puppeteer)
| /** @type {import('tailwindcss').Config} */ | |
| // eslint-disable-next-line no-undef | |
| module.exports = { | |
| content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}'], | |
| theme: { | |
| extend: { | |
| colors: { | |
| 'regal-blue': '#243c5a', | |
| 'primary-1': 'var(--color-primary-1)', | |
| 'primary-2': 'var(--color-primary-2)', |
| if (window.location != 'https://aws.amazon.com/tw/ec2/pricing/on-demand/') { | |
| window.location = 'https://aws.amazon.com/tw/ec2/pricing/on-demand/' | |
| } | |
| var $item = $('.button.lb-dropdown-label:eq(0) li:eq(0)'), | |
| clicked = false, | |
| regions = []; | |
| var interval = setInterval(function() { | |
| if ($item.length == 0) { | |
| clearInterval(interval); | |
| console.log('Cheapest', regions.reduce((a, b) => b.price < a.price ? b : a, { |
| // https://aws.amazon.com/tw/ec2/pricing/on-demand/ | |
| var $item = $('.button.lb-dropdown-label:eq(0) li:eq(0)'), | |
| clicked = false, | |
| regions = []; | |
| var interval = setInterval(function() { | |
| if ($item.length == 0) { | |
| clearInterval(interval); | |
| console.log('Cheapest', regions.reduce((a, b) => b.price < a.price ? b : a, { price: 1000})); | |
| } |
| let resolveDialogClosePromise; | |
| const dialogClosePromise = new Promise(resolve => { | |
| resolveDialogClosePromise = resolve; | |
| }); | |
| this.page.on('dialog', async dialog => { | |
| await dialog.accept(); | |
| resolveDialogClosePromise(); | |
| }); | |
| await Promise.all([this.page.waitForNavigation(), this.page.click('#send')]); |
| class Command: | |
| def redo(self, **kwargs): | |
| abstract | |
| def undo(self, **kwargs); | |
| abstract | |
| class UploadImgurCommand extend Command: | |
| def redo(self, **kwargs): | |
| image = kwargs['image']; |
| do { | |
| var next; | |
| var promise = new Promise(resolve => { | |
| next = resolve; | |
| }); | |
| console.log('System Maintenance!') | |
| await sleep(3000) | |
| page.once('frameattached', ()=> { | |
| next(); |
| var dfc = {lat: 25.052404, lng: 121.515644} | |
| this.map = new google.maps.Map(this.$refs.map, { | |
| center: dfc, | |
| zoom: 17, | |
| streetViewControl: false, | |
| mapTypeControl: false, | |
| }); | |
| var marker = new google.maps.Marker({ |
| /* | |
| Q1.設計一個程式讓使用者可輸入一個字元,並且判斷使用者 | |
| 輸入的字元是否為英文字母大小寫,如果是大寫就轉成小寫 | |
| 輸出,小寫則轉成大寫輸出,不是英文字母則提醒使用者輸 | |
| 入錯誤。至少可以輸入3次。 | |
| */ | |
| // Example program | |
| #include <iostream> |
| 38. acss-overflow =auto | |
| 40. scss-line -> acss-line | |
| 46. acss-line > horizontal | |
| 48. .acss-border -> [acss-border] (border-style: solid) 移除.acss-border | |
| 51. 移除is-center | |
| (v) l-center | |
| l-col | |
| 1 | |
| 2 | |
| 3 |