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
"devDependencies": { | |
"eslint": "^6.7.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
"devDependencies": { | |
"eslint": "^6.7.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
I don't use your data in any way. Feel safe. |
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 requests | |
import json | |
response = requests.get("https://en.wikipedia.org/w/api.php?action=query&list=search&srsearch=Craig%20Noone&format=json") | |
data = json.loads(response.text) | |
print(type(data)) # To prove that JSON has been converted to Python Dict | |
print(data) |
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
btnAccept.setOnClickListener { | |
val builder = MaterialAlertDialogBuilder(this, R.style.ThemeOverlay_MaterialComponents_MaterialAlertDialog) | |
.setTitle(R.string.are_you_sure) | |
.setMessage(R.string.are_you_sure_accept) | |
.setPositiveButton(" ${getString(R.string.accept)}") { _, _ -> | |
requestDetailViewModel.acceptRequest(relationResponse.id) | |
} | |
.setNeutralButton(" ${getString(R.string.cancel)}") { _, _ -> | |
// Nothing to do |
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
@echo off | |
setlocal disableDelayedExpansion | |
set "string=;Init., 12, [email protected]" | |
setlocal enableDelayedExpansion | |
set ^"string=!string:, email/=^ | |
!^" | |
for /f delims^=^ eol^= %%A in ("!string!") do ( | |
endlocal | |
set "string=%%A" |
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
weight_lbs = float(input('What is your weight in pounds? ')) | |
weight_kg = weight_lbs * 0.45359237 | |
print('Your weight in kilograms is ' + str(weight_kg)) |
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 pandas as pd | |
# asking for team1 | |
list = pd.ExcelFile('M25_list.xlsx') | |
tlist = pd.read_excel(list, 'teamlist') | |
print("Here is a list of teams") | |
for teamlist in tlist['short']: | |
print(teamlist) | |
while True: | |
try: | |
teamnumber = int(input('Enter team id: ')) |
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
{ | |
"pending_relations_received_as_mentee": [], | |
"accepted_relations_received_as_mentee": [], | |
"rejected_relations_received_as_mentee": [], | |
"cancelled_relations_received_as_mentee": [], | |
"completed_relations_received_as_mentee": [], | |
"pending_relations_sent_as_mentee": [], | |
"accepted_relations_sent_as_mentee": [], | |
"rejected_relations_sent_as_mentee": [], | |
"cancelled_relations_sent_as_mentee": [], |
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
{"lastUpload":"2020-06-14T00:32:24.630Z","extensionVersion":"v3.4.3"} |
OlderNewer