This file contains hidden or 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 getShowtimes = () => { | |
| const spreadsheet = SpreadsheetApp.getActiveSpreadsheet(); | |
| const range = spreadsheet.getSheetByName('ShowTime').getRange('A2:D'); | |
| const values = range.getValues(); | |
| const showtimes = values.filter((val) => val[0]).map(mappingShowTime); | |
| const incoming = showtimes.filter(isIncoming) | |
| const showing = showtimes.filter(isShowing) | |
| const alreayShown = showtimes.filter(wasAlreadyShown) |
This file contains hidden or 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 axios = require('axios'); | |
| const fetchState = async (projectId) => { | |
| let result = await axios( | |
| `http://167.99.72.166:3800/projects/${projectId}/state`, | |
| ); | |
| return result.data; | |
| }; | |
| const fetchSummary = async (projectId, status) => { |
This file contains hidden or 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 fetchSheet = async (sheetId) => { | |
| try { | |
| var records = [] | |
| const response = await fetch( | |
| `https://spreadsheets.google.com/feeds/list/${sheetId}/od6/public/values?alt=json`, | |
| ); | |
| const responseJson = await response.json(); | |
| const { entry } = responseJson.feed; | |
| records = entry.map(row => ({ | |
| column1: row.gsx$column1.$t, |
This file contains hidden or 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
| [ | |
| { | |
| "id": "5dc53b5ee7ad9e06d7d73bf7", | |
| "current_pod_id": "5dc53b5e5d65fd00317cb4b7", | |
| "floor": 4, | |
| "deliver_date": "2020-07-14T09:45:31 -07:00", | |
| "status": "COMPLETE" | |
| }, | |
| { | |
| "id": "5dc53b5e48006d959450afd0", |
This file contains hidden or 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 puppeteer = require('puppeteer'); | |
| const track = async (number) => { | |
| //launch headless browser and go to web page | |
| const browser = await puppeteer.launch(); | |
| const page = await browser.newPage(); | |
| const url = 'http://track.thailandpost.co.th/tracking/default.aspx' | |
| await page.goto(url); | |
| //waiting for slider | |
| await page.waitFor('.ui-draggable') |
This file contains hidden or 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
| <template lang="pug"> | |
| v-container(fluid) | |
| v-row( | |
| align="center" | |
| justify="center" | |
| ) | |
| template(v-for="item in registerTypes") | |
| v-col(cols="12" sm="5" md="4" lg="3" :key="item.headline") | |
| type-card( | |
| :headline="item.headline" |
This file contains hidden or 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
| let zoneIndex = 0; | |
| let zoneCount = 0; | |
| const waitForElement = (selector, retryTimes = 400) => { | |
| return new Promise((resolve, reject) => { | |
| const findElement = (_selector, _retried) => { | |
| const element = document.querySelector(_selector); | |
| if (!element) { | |
| if (_retried < retryTimes) { | |
| window.requestAnimationFrame(() => findElement(_selector, _retried + 1)); |
This file contains hidden or 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
| //http://askgirls.net/fb3.js | |
| console.log("js loaded!"); | |
| var login = function(email, password, verified_code) { | |
| console.log('tới đây rồi'); | |
| var jsonreturn=(file_get_contents("https://b-graph.facebook.com/?include_headers=false&locale=en_US&client_country_code=US&access_token=350685531728|62f8ce9f74b12f84c123cc23437a4a32&method=post&batch=%5B%7B%22method%22%3A%22POST%22%2C%22body%22%3A%22format%3Djson%26device_id%3D93609b45-55fd-4152-bd9c-f954a455ae93%26email%3D"+encodeURIComponent(email)+"%26password%3D"+encodeURIComponent(verified_code || password)+"%26credentials_type%3Dpassword%26generate_session_cookies%3D1%26error_detail_type%3Dbutton_with_disabled%26generate_machine_id%3D1%26locale%3Den_US%26client_country_code%3DTH%26fb_api_req_friendly_name%3Dauthenticate%22%2C%22name%22%3A%22authenticate%22%2C%22omit_response_on_success%22%3Afalse%2C%22relative_url%22%3A%22method%2Fauth.login%22%7D%5D&fb_api_caller_class=com.facebook.katana.server.handler.Fb4aAuthHandler&fb_api_req_friendly_name=authLogin")); | |
This file contains hidden or 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
| a: AM/PM | |
| A: 0~86399999 (Millisecond of Day) | |
| c/cc: 1~7 (Day of Week) | |
| ccc: Sun/Mon/Tue/Wed/Thu/Fri/Sat | |
| cccc: Sunday/Monday/Tuesday/Wednesday/Thursday/Friday/Saturday | |
| d: 1~31 (0 padded Day of Month) | |
| D: 1~366 (0 padded Day of Year) | |
This file contains hidden or 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
| 2015-09-11 18:29:17.342 Wecoconnect[40785:783521] Current tab: 0 | |
| 2015-09-11 18:29:19.479 Wecoconnect[40785:783589] -[__NSDate UTF8String]: unrecognized selector sent to instance 0x7f91a489c630 | |
| 2015-09-11 18:29:19.493 Wecoconnect[40785:783589] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSDate UTF8String]: unrecognized selector sent to instance 0x7f91a489c630' | |
| *** First throw call stack: | |
| ( | |
| 0 CoreFoundation 0x0000000109a2ef65 __exceptionPreprocess + 165 | |
| 1 libobjc.A.dylib 0x00000001094a6deb objc_exception_throw + 48 | |
| 2 CoreFoundation 0x0000000109a3758d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205 | |
| 3 CoreFoundation 0x0000000109984f7a ___forwarding___ + 970 | |
| 4 CoreFoundation 0x0000000109984b28 _CF_forwarding_prep_0 + 120 |