Skip to content

Instantly share code, notes, and snippets.

View TheIncredibleHarsh's full-sized avatar
🎯
Focusing

TheIncredibleHarsh

🎯
Focusing
View GitHub Profile
@TheIncredibleHarsh
TheIncredibleHarsh / indian_state_names.rb
Last active October 7, 2023 16:00
Indian State Names and Abbreviations as ruby array
states = [
['Andhra Pradesh', 'AP'],
['Arunachal Pradesh', 'AR'],
['Assam', 'AS'],
['Bihar', 'BR'],
['Chhattisgarh', 'CG'],
['Goa', 'GA'],
['Gujarat', 'GJ'],
['Haryana', 'HR'],
['Himachal Pradesh', 'HP'],
return fetch('https://newsapi.org/v2/top-headlines?country=jp&apiKey=145cae52067945059c40a596650cb455')
.then((response) => response.json())
.then((responseJson) => {
this.setState({
isLoading: false,
dataSource: responseJson.articles,
}, function(){
});