const JsonArray=[
{
"Name": "Hatuwagadhi",
"Nepali": "हतुवागढी",
"Districts": "Bhojpur",
"Population (2011)": "20,404",
"Area (KM2)": "142.61",
"Density": "143",
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 fs = require('fs'); | |
| async function fetchData() { | |
| const data = []; | |
| for (let i = 1; i < 8; i++) { | |
| const response = await axios.get(`https://result.election.gov.np/JSONFiles/JSONMap/geojson/District/STATE_C_${i}.json`); | |
| const features = response.data.features; | |
| await Promise.all(features.map(async i => { | |
| const { DCODE } = i.properties; |
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
| { | |
| "t": [ | |
| 1609372800, | |
| 1609632000, | |
| 1609718400, | |
| 1609804800, | |
| 1609891200, | |
| 1609977600, | |
| 1610236800, | |
| 1610323200, |
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 close = [ | |
| "234", | |
| "237", | |
| "239", | |
| "241", | |
| "239", | |
| "240", | |
| "248", | |
| "250", | |
| "254", |
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 close = [ | |
| "217", | |
| "220", | |
| "220", | |
| "218", | |
| "221", | |
| "219", | |
| "228", | |
| "239", | |
| "237", |
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 data = [ | |
| { | |
| date:"2019-11-18", | |
| gender:"male", | |
| count:5 | |
| }, | |
| { | |
| date:"2019-11-18", | |
| gender:"female", | |
| count:10 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| process.env["NTBA_FIX_319"] = 1; | |
| const TelegramBot = require('node-telegram-bot-api'); | |
| const config = require('../config/key') | |
| const bot = new TelegramBot(config.TOKEN, { | |
| polling: true, | |
| onlyFirstMatch: true | |
| }); | |
| module.exports = { |
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
| async CallAxios(){ | |
| const options = { | |
| method: 'GET', | |
| url: `https://api.spotify.com/v1/search?q=${this.state.query}&type=track`, | |
| headers: { | |
| 'Authorization': `Bearer ${config.Bearer}`, | |
| "Accept": "application/json", | |
| "Content-Type": "application/json", | |
| } | |
| } |
NewerOlder