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 fs from 'fs'; | |
import fetch from 'node-fetch'; | |
var res = {}; | |
async function run(page) { | |
console.log("PAGE: " + page); | |
let f = await fetch("https://app.snapp.taxi/api/api-base/v2/passenger/ride/history?page=" + page, { | |
"headers": { | |
"accept": "*/*", | |
"accept-language": "en-GB,en;q=0.9,fr-FR;q=0.8,fr;q=0.7,de-DE;q=0.6,de;q=0.5,ar-SA;q=0.4,ar;q=0.3,nb-NO;q=0.2,nb;q=0.1,fa-IR;q=0.1,fa;q=0.1,tr-TR;q=0.1,tr;q=0.1,ru-RU;q=0.1,ru;q=0.1,pt-PT;q=0.1,pt;q=0.1,es-ES;q=0.1,es;q=0.1,cs-CZ;q=0.1,cs;q=0.1,nl-NL;q=0.1,nl;q=0.1,en-US;q=0.1", |
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 json | |
import os | |
def folder(path: str): | |
global root | |
children = list() | |
try: | |
mass = os.listdir(path) | |
except PermissionError: |
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 os | |
import dict2xml | |
def folder(path): | |
global root | |
children = dict() | |
try: | |
mass = os.listdir(path) |
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 matplotlib.pyplot as plt | |
import os.path | |
import re | |
import sys | |
from bs4 import BeautifulSoup | |
from datetime import datetime | |
from persiantools.jdatetime import JalaliDateTime | |
from pytz import timezone | |
from typing import List |
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
@file:Suppress("unused") | |
package com.example.android | |
import androidx.documentfile.provider.DocumentFile | |
import java.io.IOException | |
import java.util.* | |
class DocFileTreeWalk private constructor( | |
private val start: DocumentFile, |
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 sys | |
from datetime import datetime | |
from typing import Dict, List, Optional | |
import matplotlib.pyplot as plt | |
from persiantools.jdatetime import JalaliDate | |
class Luna: | |
diebus: List[Optional[float]] |
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
@file:Suppress("MemberVisibilityCanBePrivate", "unused") | |
package <COM.EXAMPLE.APP> | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.core.view.children | |
import com.google.gson.GsonBuilder | |
class ViewGroupWalk(vg: ViewGroup) { |
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 html | |
import json | |
import os.path | |
import sys | |
from time import sleep | |
from typing import Dict, Optional | |
import requests | |
import requests.adapters | |
from requests.exceptions import ChunkedEncodingError, ConnectionError, ProxyError, SSLError |
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
package <COM.MY.APPLICATION>; | |
import android.icu.util.Calendar; | |
import android.icu.util.TimeZone; | |
import android.icu.util.ULocale; | |
import android.icu.util.ULocale.Category; | |
import java.util.Date; | |
import java.util.Locale; | |
/** |
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
package <COM.MY.APPLICATION> | |
import android.content.Context | |
import android.util.AttributeSet | |
import android.view.View | |
import android.view.ViewGroup | |
import android.widget.EditText | |
import android.widget.NumberPicker | |
class PrettyNumberPicker( |
OlderNewer