instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Stručně shrň článek o tématu „Slepičák“ a uveď hlavní fakta.
**Slepičák** Slepičák je zástupce plemene holuba domácího, které je charakteristické zvětšením hrudi ptáka až do té míry, že se tvarem těla podobá slepici. Plemenná skupina slepičáků je nepočetná, avšak vyhraněná a jednotlivá plemena jsou si značně podobná. Jsou podobní užitkovým plemenům a stejně jako oni mají kořeny...
null
null
null
null
Měrná tepelná kapacita Měrná tepelná kapacita (ve starší literatuře též měrné teplo nebo specifické teplo) je množství tepla potřebného k ohřátí 1 kilogramu látky o 1 teplotní stupeň (1 kelvin nebo 1 stupeň Celsia), respektive představuje množství tepla vyvolávající u kilogramů hmotnosti látky změnu teploty : . Měrná ...
Create a loop in Python that prints the integers between 1 and 10 (including 1 and 10).
for i in range(1, 11): print(i)
null
Spočítej 20×4
20 × 4 = 80
null
Odpovídej jen česky. Co je smyčka while?
While opakuje blok, dokud platí podmínka. Hodí se, když neznáš předem počet opakování.
null
Fix the syntax error in the following Java code.
String[] x = {"a", "b", "c"} for (int i=0; i<x.lenght; i++) { System.out.println(x[i]); }
String[] x = {"a", "b", "c"}; for (int i=0; i<x.length; i++) { System.out.println(x[i]); }
null
Write a function in JavaScript to extract the Kth highest digit from a given number.
Number = 192 K = 2
function extractKthHighestDigit(num, k) { let numStr = num.toString(); let numArr = numStr.split(""); numArr.sort((a, b) => b - a); return +numArr[k-1]; }
null
Rewrite this code to make it shorter.
int x=10; int result=0; while(x>0){ result+=x; x--; }
int x = 10, result = 0; while (x > 0) result += x--;
null
null
null
null
Uniwersytet Śląski Uniwersytet Śląski w Katowicach (česky Slezská univerzita v Katovicích) je významná polská vysoká škola sídlící v Katovicích, jedna z nejdůležitějších polských univerzit. Uniwersytet Śląski w Katowicach tvoří 12 fakult a nabízí 34 studijních oborů. Celkem zde studuje přes 45 tisíc studentů. Tato uni...
Spočítej: 10 + 11 = ?
10 + 11 = 21
null
How would you optimize a loop which runs over an array?
Loop optimization techniques can be applied in order to improve the efficiency of a loop which runs over an array. The most common techniques include avoiding unnecessary computations, using pre-computation, using memoization to store intermediate results, using loop unrolling and different ways of loop indexing. In ad...
null
Implement a class to represent a vector, with initial vector and a scaler. Include methods to add, subtract and multiply two vectors.
class Vector(): def __init__(self, vector, scaler): self.vector = vector self.scaler = scaler def add_vector(self, other_vector): result_vector = [] for i in range(len(self.vector)): result_vector.append(self.vector[i] + other_vector.vector[i]) return Vector(result_vector, self.scaler) def sub_vector(self, other_vector...
null
PHP PDO connect MySQL.
```php <?php $pdo = new PDO( "mysql:host=127.0.0.1;dbname=app;charset=utf8mb4", "user", "pass", [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION] ); ```
null
null
null
null
1851 in Denmark Events from the year 1851 in Denmark. Incumbents Monarch – Frederick VII Prime minister – Adam Wilhelm Moltke Events February Danish troops return to Copenhagen from the First Schleswig War. 1 May Natalie Zahle launches a programme for the training of female private teachers, an initiative which will e...
Generate a web page with a form that takes a user's name and age, and outputs a greeting based on the age.
# Program to generate a simple web page from flask import Flask, request app = Flask(__name__) # Render the web page @app.route('/', methods = ['GET']) def show_index_page(): return ''' <html> <head> <title>Greeting Form</title> </head> <body> <h1>Greeting Form</h1> <form method="POST"> <input type="text" name="user_na...
null
null
null
null
Jan Karafiát Jan Karafiát (4. ledna 1846, Jimramov – 31. ledna 1929, Praha<ref>Národní listy, 1.2.1929, s.2, Autor "Broučků" farář Jan Karafiát zemřel]</ref>) byl český reformovaný, po roce 1918 českobratrský evangelický farář. Patřil k neformálnímu hnutí, jehož ideálem byla krásná církev Kristova. Život Dětství Rodin...
Create a script in HTML to output a horizontal line.
<html> <head> <title>Horizontal Line</title> </head> <body> <hr> </body> </html>
null
Create a regular expression that matches any URL.
Regex: ^(http:\/\/www\.|https:\/\/www\.|http:\/\/|https:\/\/)?[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(:[0-9]{1,5})?(\/.*)?$
null
Summarize key facts about „Nitrite“ clearly and accurately.
**Nitrite** The nitrite ion has the chemical formula . Nitrite (mostly sodium nitrite) is widely used throughout chemical and pharmaceutical industries. The nitrite anion is a pervasive intermediate in the nitrogen cycle in nature. The name nitrite also refers to organic compounds having the –ONO group, which are este...
null
null
null
null
Sophiina volba Sophiina volba (1979) je psychologický román a je to nejznámější dílo Williama Styrona. Jde o román, který zpracovává složitým a neobvyklým způsobem téma vlivu nacismu na průměrně silného jedince. Obsah Základní dějovou osu příběhu tvoří výpověď vyprávěče Stinga (W. Styron) o tom, jak se učil psát. Pásm...
Spočítej: 24 + 3 = ?
24 + 3 = 27
null
Create a dictionary using comprehension technique in Python.
original_dict = {'a':1, 'b':2, 'c':3, 'd':4}
new_dict = {key: value ** 2 for key, value in original_dict.items()}
null
null
null
null
Philip John Brooks Philip John Brooks, who also performs as Phil Brooks, is an English folk and rock musician. They grew up in Fleetwood, Lancashire, England, but now lives in the United States. They sing, play guitar, and write folk music in both American and British styles. They have produced four solo albums, Fishe...
Summarize key facts about „Joshua James (lifesaver)“ clearly and accurately.
**Joshua James (lifesaver)** Joshua James (November 22, 1826March 19, 1902) was an American sea captain and a U.S. Life–Saving Station keeper. He was a famous and celebrated commander of civilian life-saving crews in the 19th century, credited with saving over 500 lives from the age of about 15 when he first associate...
null
Stručně shrň článek o tématu „Jakub Kresa“ a uveď hlavní fakta.
**Jakub Kresa** Jakub Kresa, častěji psáno Jakub Kreza, španělsky Jacob Kresa, latinsky Jacobo Kreysa (19. července 1648 Smržice – 28. července 1715 Brno), byl český jezuitský matematik doby baroka. Život Jakub Kresa studoval na gymnáziu v Brně a v 19 letech se stal příslušníkem jezuitského řádu. V letech 1669-70 vyuč...
null
null
null
null
Academia for Equality Academia for Equality (A4E; ) is a members' organization working to promote democratization, equality and access to higher education for all communities living in Israel. The organization numbers more than 600 Israeli members, from universities and colleges both in Israel and abroad, including st...
Stručně shrň článek o tématu „16. století“ a uveď hlavní fakta.
**16. století** Šestnácté století je období mezi 1. lednem 1501 a 31. prosincem 1600 našeho letopočtu. Jedná se o šesté století druhého tisíciletí. Významné události 1501 až 1510 1500 přistál portugalský mořeplavec Pedro Álvares Cabral v Brazílii. 1502 vstoupilo v Českém království v platnost Vladislavské zřízení zems...
null
Generate a summary of an article containing more than 500 words.
The article is about _____. It discusses the subject in depth, exploring various aspects of the topic. It provides a comprehensive overview of different perspectives on the topic and presents evidence to support its conclusions. In conclusion, the article provides a comprehensive evaluation of _____ by offering a balan...
null
Create a function to remove specified nodes from a linked list.
Linked List: 10 -> 21 -> 14 -> 35 -> 19 -> 63 -> null Node: 14
def deleteNode(head, node): prev = None current = head # traverse the list until node is found while current is not None: if current.data == node: break prev = current current = current.next # if the node is the first node if prev is None: head = current.next else: prev.next = current.next return head head = { data: 10...
null
Write a Python function that takes in a string and outputs a dictionary where the keys are the characters in the string and the values are the frequency of the characters in the string.
def freq_dict(string): freq = {} for c in string: if c in freq: freq[c] += 1 else: freq[c] = 1 return freq
null
null
null
null
Nürnberger Versicherungscup 2013 – ženská čtyřhra Do soutěže ženské čtyřhry na tenisovém turnaji Nürnberger Versicherungscup 2013 nastoupilo šestnáct dvojic. Jednalo se o premiérový ročník ženské profesionální události hraný na antukových dvorcích v německém Norimberku. Deblový titul si připsala nenasazená rumunsko-ru...
null
null
null
Kjokušin karate Kjokušin karate (známé též jako Kjokušin kaikan, japonsky 極真会館, v anglickém přepisu do latinky Kyokushin) je styl karate, založen roku 1964 japonským mistrem karate korejského původu Masutacu Ójamou. Zápasy zde probíhají bez jakýchkoliv chráničů a techniky jsou vedeny plnou silou na tělo soupeře. Zakáz...
Summarize key facts about „Franz Klein (sculptor)“ clearly and accurately.
**Franz Klein (sculptor)** Franz Klein (1779–1840) was an Austrian sculptor; he was born and died in Vienna. He is known particularly for his bust of Ludwig van Beethoven, made in 1812. The life mask Johann Andreas Streicher, pianist and piano-maker, and friend of Beethoven, supervised a private concert hall in Vienna...
null
Summarize key facts about „The Secret Life of J. Eddy Fink“ clearly and accurately.
**The Secret Life of J. Eddy Fink** The Secret Life of J. Eddy Fink is the third studio album by American singer/songwriter Janis Ian, released in 1968. It was named after Janis Ian’s birth name, and was purportedly a concept album about Janis’ teenage life. Like her first two albums, it was produced by Shadow Morton,...
null
Create a simple HTML webpage now
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>My page</title> <style>body{font-family:system-ui;max-width:40rem;margin:2rem auto;padding:0 1rem;line-height:1.5}</style> </head> <body> <header><h1>Welcome</h1></header> <main><p>...
null
null
null
null
DFI DFI (Diamond Flower Inc) is a Taiwanese industrial computer company with headquarters in Taipei. It designs, develops, manufactures, and sells industrial motherboard, industrial PCs, System-on-Module, industrial displays, and ODM/OEM services. DFI was founded by Y.C Lu on July 14, 1981, developing and selling elec...
null
null
null
Věnec (rozcestník) Věnec může být: smuteční věnec – pietní předmět užívaný ke vzpomínce na zemřelé osoby adventní věnec – tradiční adventní ozdoba a křesťanský církevní symbol věnec (stavebnictví) – vodorovný stavební prvek věnec (strojařství) – specializovaná strojní součást, kupříkladu ozubený věnec věnec (zvonařstv...
Design a CSS class that will set the font family of an HTML element to ‘Arial’, font size to 12 pts and font weight to bold.
.arial-12-pt { font-family: Arial; font-size: 12pt; font-weight: bold; }
null
Ahoj
Ahoj! Co potřebuješ vyřešit?
null
Write a function to generate a random password based on the given parameters.
Parameters: Length of password must be 8 characters, must contain at least one uppercase letter, contain at least one lowercase letter and must include at least one number
import random import string def generate_password(min_length, max_length, upper_case, lower_case, number): password = [] for _ in range(min_length, max_length + 1): password.append(random.choice(string.ascii_lowercase if lower_case else '') + random.choice(string.ascii_uppercase if upper_case else '') + random.choice(s...
null
Create a function in Java that takes an integer n and prints the first n Fibonacci numbers.
public void printFibonacci(int n) { int a = 0, b = 1, c; if (n == 0) return; for (int i = 1; i <= n; i++) { c = a + b; System.out.print(a + " "); a = b; b = c; } }
null
null
null
null
Salle des Traditions de la Garde Républicaine Salle des Traditions de la Garde Républicaine (Sál tradic Republikánské gardy) je muzeum v Paříži. Nachází se ve 4. obvodu na Boulevardu Henri-IV. Muzeum se zaměřuje na dějiny francouzské Republikánské gardy. Historie Muzeum je umístěno v kasárnách na místě bývalého celest...
null
null
null
Godbluff Godbluff je páté studiové album britské progresivní rockové skupiny Van der Graaf Generator, první po obnovení skupiny. Jeho nahrávání probíhalo mezi 9. a 29. červnem 1975 ve studiu Rockfield Studios v Monmouthu. Na rozdíl od předrozpadových alb skupiny toto neprodukoval John Anthony, ale skupina sama. Vyšlo ...
Stručně shrň článek o tématu „Universal“ a uveď hlavní fakta.
**Universal** Slovo Universal může znamenat: Universal Studios, firma patřící firmě Universal Universal Newsreel, série 7–10 minutových týdeníků vydávaná v letech 1929 až 1967 dvakrát týdně společností Universal Studios. Universal Music Group, firma patřící firmě Universal NBC Universal, firma patřící firmě Vivendi Un...
null
Implement `group_by` in Python (seskupí list dictů podle klíče).
```python from collections import defaultdict def group_by(rows, key): g = defaultdict(list) for r in rows: g[r[key]].append(r) return dict(g) ```
null
null
null
null
Henry Addington Henry Addington, 1. vikomt ze Sidmouthu (30. května 1757 – 15. února 1844) byl britský státník a premiér v letech 1801 až 1804. Mládí Henry Addington byl synem Anthonyho Addingtona, lékaře Williama Pitta staršího, a Mary Addingtonové, dcery Havilanda Johna Hileyho, ředitele školy v Readingu. Z pozice s...
null
null
null
Male Rao Holkar Shrimant Subhedar Male Rao Holkar II Bahadur (1745 – 5 April 1767), belonging to the Holkar dynasty of the Marathas was the Maharaja of Indore (r.1766 – 1767). He was the only son of Khande Rao Holkar Bahadur, and his mother was Ahilya Bai Holkar. Male Rao Holkar was Heir apparent to his grand father M...
How do you print the first parameter passed to a bash script?
echo $1
null
Summarize key facts about „List of 1912 Summer Olympics medal winners“ clearly and accurately.
**List of 1912 Summer Olympics medal winners** The 1912 Summer Olympics (Swedish: Olympiska sommarspelen 1912), officially known as the Games of the V Olympiad, were an international multi-sport event held in Stockholm, Sweden, between 5 May and 22 July 1912. Twenty-eight nations and 2,408 competitors, including 48 wo...
null
null
null
null
Tuskegee Tuskegee je město ve státě Alabama (USA). V roce 2005 populace města přesáhla 11 590 osob. 20. června 1949 se zde narodil americký zpěvák Lionel Richie. Jeho rozloha činí celkově 40,7 km², z nichž 1,53% je voda. Byli zde vycvičeni první bojoví piloti černé pleti, sloužící v americkém vojenském letectvu, během...
null
null
null
Nabi Tadžimová Nabi Tadžimová (田島 ナ ビ, Tadžima Nabi; 4. srpna 1900 – 21. dubna 2018) byla japonská žena, která se stala 16. září 2017 ve věku 117 let 232 dní nejstarším žijícím člověkem světa. Byla posledním člověkem, který se narodil v 19. století. Je také druhou nejstarší potvrzenou japonskou a asijskou osobou vůbec...
Napiš Dockerfile pro jednoduchou Python FastAPI app.
```dockerfile FROM python:3.12-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"] ```
null
Stručně shrň článek o tématu „Recep Tayyip Erdoğan“ a uveď hlavní fakta.
**Recep Tayyip Erdoğan** Recep Tayyip Erdoğan (tureckou výslovností ; * 26. února 1954 Istanbul) je prezident Turecké republiky, bývalý starosta Istanbulu a v letech 2003 až 2014 turecký premiér. Život Erdoğan se narodil na předměstí Istanbulu ve čtvrti Kasımpaşa, v rodině, která se sem přestěhovala z provincie Rize. ...
null
Write a jQuery script to display a popup box when a web page is loaded.
$(document).ready(function(){ alert("Popup box!"); });
null
Stručně shrň článek o tématu „Červená (film)“ a uveď hlavní fakta.
**Červená (film)** Červená je český celovečerní dokumentární film režisérky Olgy Sommerové o světově známé operní pěvkyni a herečce Soně Červené. Dne 7. září 2017, u příležitosti 92. narozenin pěvkyně, jej uvedla do kin distribuční společnost Aerofilms. Předběžně byl promítán již 24. května v rámci hudebního festivalu...
null
Generate a list of all words in the input string longer than 4 characters.
my_string = "This is a sentence"
word_list = [word for word in my_string.split() if len(word)>4]
null
null
null
null
Mercedes-Benz třídy GLK Mercedes-Benz GLK je kompaktní SUV značky Mercedes-Benz (G značí souvislost s původním modelem G; L jako Limuzína; K jako Kompaktní) představené v roce 2008 v Pekingu. Vyrábí a prodává se od roku 2009 po celém světě, kromě Severní Ameriky, kde se začal prodávat až v roce 2010. Svou velikostí jd...
Stručně shrň článek o tématu „Serie A 2015/2016“ a uveď hlavní fakta.
**Serie A 2015/2016** Soutěžní ročník Serie A 2015/16 byl 114. ročník nejvyšší italské fotbalové ligy a 84. ročník od založení Serie A. Soutěž začala 22. srpna 2015 a skončila 15. května 2016. Účastnilo se jí opět 20 týmů z toho 17 se kvalifikovalo z minulého ročníku. Poslední tři týmy předchozího ročníku, jimiž byli ...
null
Stručně shrň článek o tématu „Liptovská Teplička“ a uveď hlavní fakta.
**Liptovská Teplička** Liptovská Teplička (něm. Zeplitschke, maď. Teplicska) je liptovská obec na Slovensku, která leží na území Prešovského kraje v okresu Poprad. V roce 2007 měla 2340 obyvatel. Území obce má rozlohu 98,69 km². Poloha Liptovská Teplička leží asi 8 km jižně od Štrby a 22 km JZ od Popradu na Černém Váh...
null
Write a JavaScript code snippet to find the greatest of three given numbers.
let a = 10; let b = 20; let c = 23; // greatest of three numbers let greatest = 0; if(a >= b && a >= c) { greatest = a; } else if(b >= a && b >= c) { greatest = b; } else { greatest = c; } console.log('The greatest number among the given numbers is ' + greatest);
null
Jen česky: k čemu je pip?
pip je správce balíčků pro Python — instaluje knihovny z PyPI (`pip install název`).
null
Suggest a way to sort a list of strings alphabetically in JavaScript.
A way to sort a list of strings alphabetically in JavaScript is to use the ``Array.sort()`` method. The ``Array.sort()`` method takes a comparison function as an optional argument. The comparison function takes two arguments (``a`` and ``b``) and must return a value less than or equal to 0 if ``a`` should come before `...
null
Summarize key facts about „Timothy Pont“ clearly and accurately.
**Timothy Pont** Rev Timothy Pont () was a Scottish minister, cartographer and topographer. He was the first to produce a detailed map of Scotland. Pont's maps are among the earliest surviving to show a European country in minute detail, from an actual survey. Life He was the elder son of Robert Pont, a Church of Scot...
null
Summarize key facts about „Illinois Department of Commerce and Economic Opportunity“ clearly and accurately.
**Illinois Department of Commerce and Economic Opportunity** The Illinois Department of Commerce and Economic Opportunity (DCEO) is the code department of the Illinois state government that sponsors statewide economic development, with special emphases on increasing minority entrepreneurship, promoting the tourism ind...
null
Summarize key facts about „John Elwyn“ clearly and accurately.
**John Elwyn** William John Elwyn Davies (20 November 1916 – 13 November 1997), professionally known as John Elwyn, was a Welsh painter, illustrator and educator. Early life Davies was born in Adpar, Newcastle Emlyn in rural south Cardiganshire on 20 November 1916. He attended Carmarthen School of Art from 1935 to 193...
null
Stručně shrň článek o tématu „Římskokatolická farnost Ševětín“ a uveď hlavní fakta.
**Římskokatolická farnost Ševětín** Římskokatolická farnost Ševětín je územním společenstvím římských katolíků v rámci vikariátu České Budějovice - venkov českobudějovické diecéze. O farnosti Historie V Ševětíně je doložena plebánie v roce 1356. Ta později zanikla a v letech 1575–1720 byl Ševětín filiálkou farnosti v ...
null
Summarize key facts about „Popular Front of the Canary Islands“ clearly and accurately.
**Popular Front of the Canary Islands** The Popular Front of the Canary Islands () or FREPIC-AWAÑAK is a marginal leftist political party seeking independence from Spain for the Canary Islands. FREPIC-AWAÑAK was formed by merging minority Canarian political organizations such as Organización para los Comunistas Canari...
null
Write an SQL statement that returns the salary of the employee with the highest salary of the "Employees" table.
SELECT MAX(salary) FROM Employees;
null
What is 16 - 4?
16 - 4 = 12
null
null
null
null
C.D. FAS Club Deportivo Futbolistas Asociados Santanecos, commonly known as FAS (pronounced "fas"), is a professional Salvadoran football club based in Santa Ana. It competes in Primera División de Fútbol de El Salvador, the country's top professional league. The team's nickname is Los Tigres (The Tigers). FAS was fou...
Summarize key facts about „Jack McGarity“ clearly and accurately.
**Jack McGarity** Jack Melville Francis McGarity (16 January 1897 – 16 March 1974) was an Australian rules footballer who played with Essendon in the Victorian Football League (VFL). McGarity was born Jack Melville Francis to the unmarried Ellen Francis in Carlton Women's Hospital in 1897. In 1898 Ellen married Willia...
null
Stručně shrň článek o tématu „Outdoor“ a uveď hlavní fakta.
**Outdoor** Outdoor jsou veškeré aktivity, které probíhají mimo uzavřené prostory (z angl. out – mimo, za; door – dveře). Dnes je tento termín všeobecně chápán jako označení oboru „pobyt v přírodě“, především jako způsob trávení volného času. Nejběžnější outdoorové aktivity Horolezectví Cyklistika Jízda na koni Pěší t...
null
Edit the following HTML tag to make the link open in a new tab.
<a href="https://www.example.com">Example</a>
<a href="https://www.example.com" target="_blank">Example</a>
null
null
null
null
Pinoy M.D. Pinoy M.D. is a Philippine television informative show broadcast by GMA Network. Hosted by Connie Sison, David Ampil II, Raul Quillamor, Oyie Balburias and Jean Marquez, it premiered on June 12, 2010. Premise The show provides information on diseases and medical concerns of the people nowadays. It also prov...
Return true or false for checking if a character is alphanumeric or not.
A character '&'
False
null
Summarize key facts about „The Adventures of Sherlock Holmes (disambiguation)“ clearly and accurately.
**The Adventures of Sherlock Holmes (disambiguation)** The Adventures of Sherlock Holmes is a collection of short stories by Sir Arthur Conan Doyle. The Adventures of Sherlock Holmes may also refer to: Film Adventures of Sherlock Holmes; or, Held for Ransom, a 1905 silent film The Adventures of Sherlock Holmes, a 1921...
null
Design an algorithm to check if a number is a palindrome.
7337
def is_palindrome(num): num_str = str(num) # compare the first and last characters if num_str[0] != num_str[-1]: return False # go to the next pair of characters if len(num_str) >= 3: return is_palindrome(num_str[1:-1]) # all characters have been compared, number is a palindrome return True
null
Stručně shrň článek o tématu „Joinville (Brazílie)“ a uveď hlavní fakta.
**Joinville (Brazílie)** Joinville je město ve státě Santa Catarina na jihu Brazílie. Žije v něm 577 000 obyvatel (odhad z roku 2017) a je tak větší než hlavní město státu Florianópolis. Leží na řece Cachoeira nedaleko jejího ústí do zálivu Babitonga. Město bylo založeno v roce 1851 a pojmenováno podle knížete z Joinv...
null
Summarize key facts about „Blackpink Arena Tour 2018“ clearly and accurately.
**Blackpink Arena Tour 2018** Blackpink Arena Tour 2018 was the first Japanese concert tour by South Korean girl group Blackpink. The tour was held in Japan, from July 24 to December 24, 2018, to promote their first Japanese extended play Blackpink. Background Six shows were initially scheduled. An extra show was late...
null
null
null
null
Otjinene Constituency Otjinene Constituency is an electoral constituency in the Omaheke Region of Namibia. It had 7,400 inhabitants in 2011 and 5,619 registered voters . Its district capital is the village of Otjinene. Villages and settlements in Otjinene Constituency include: Otjiuaneho, Ehungiro, Okahungu, Goreses, ...
null
null
null
Stephen McNally (disambiguation) Stephen McNally (1911–1994) was an American actor. Stephen McNally may also refer to: Stephen McNally (footballer) (born 1984), Scottish football (soccer) player Stephen McNally (musician) (born 1978), English singer / songwriter Steve McNally (doctor), British sports doctor for Manche...
Stručně shrň článek o tématu „Cyklohexenon“ a uveď hlavní fakta.
**Cyklohexenon** Cyklohexenon (cyklohex-2-en-1-on) je organická sloučenina, která patří mezi ketony, konkrétně mezi enony. Jedná se o užitečný meziprodukt při syntéze různých látek jako jsou léčiva a vůně. V čisté podobě to je čirá bezbarvá kapalina, ovšem komerční produkty jsou zpravidla nažloutlé. Průmyslově se vyrá...
null
null
null
null
Ilir Dibra Ilir Dibra (born 16 August 1977) is an Albanian retired footballer who won a league title with Vllaznia Shkodër. International career He made his debut for Albania in a February 2000 Malta International Football Tournament match against Azerbaijan and earned a total of 2 caps, scoring no goals. His final in...
Convert a given number from base 10 to base 16.
Number: 245
def base10_to_base16(num): return hex(num).upper()[2:] if __name__ == '__main__': print(base10_to_base16(245))
null
null
null
null
Vůz WRmee814 ČD {{DISPLAYTITLE:Vůz WRmee814 ČD}} Vozy WRmee814, číslované v intervalu 61 54 88-81, v 90. letech označené WRRm, jsou jídelní vozy z vozového parku Českých drah. Všechny tři vozy (016–018) vznikly v roce 1994 modernizací původních vozů WRRm v ŽOS České Velenice. Další modernizace vozů proběhla v letech 2...
Suggest a way to display an alert message with the text "Hello, World!".
alert("Hello, World!");
null
Explain the differences between the list, set, and dictionary data structures in Python.
List is an ordered sequence of data that can hold duplicate values. It is one of the most widely used data structures in Python, and is created by placing all the items in a square bracket and separating them by commas. Set is an unordered collection of data that cannot hold duplicate values. Set is created by enclosin...
null
null
null
null
Ophthalmology in the medieval Islamic world Ophthalmology was one of the foremost branches in medieval Islamic medicine. The oculist or kahhal (کحال), a somewhat despised professional in Galen’s time, was an honored member of the medical profession by the Abbasid period, occupying a unique place in royal households. M...
Summarize key facts about „People's Union of Estonia“ clearly and accurately.
**People's Union of Estonia** The People's Union of Estonia () was a political party in Estonia. Its last leader was Margo Miljand. In the 2003 parliamentary election, the party collected 64,463 votes, which made 13.0% share of all votes and 13 mandates out of 101. In 2007's election, this dropped to 39,211 votes (7.1...
null
Design an algorithm to check if a given string can be converted to a palindrome.
We can use a two pointer approach to traverse the string and compare the leftmost and rightmost characters. If the characters are not equal, then the string cannot be a palindrome. We can move the left pointer one character to the right, and move the right pointer one character to the left, and compare the characters a...
null
Using a Node.js code, create an HTTP request to get the response status code of a given URL.
let url = 'http://example.com';
const http = require('http'); http.get(url, (response) => { console.log('status code:', response.statusCode); });
null
Write a code to implement quicksort.
arr = [6, 1, 8, 4, 9, 5]
""" Implement quicksort """ def quicksort(arr): if len(arr) < 2: return arr else: pivot = arr[0] less = [i for i in arr[1:] if i <= pivot] greater = [i for i in arr[1:] if i > pivot] return quicksort(less) + [pivot] + quicksort(greater) if __name__ == '__main__': arr = [6, 1, 8, 4, 9, 5] result = quicksort(arr) print(r...
null
Create a C++ algorithm to compute the Fibonacci sequence.
#include <iostream> int fibonacci(int n) { if (n <= 1) return n; return fibonacci(n - 1) + fibonacci(n - 2); } int main() { int n = 10; std::cout << "The Fibonacci number at position " << n << " is " << fibonacci(n); return 0; }
null
null
null
null
Garnett College Garnett College was a higher education college in London which trained lecturers in further and higher education colleges between 1946 and 1988. Its main focus was on teaching towards post-graduate qualifications awarded by the Council for National Academic Awards (CNAA). Students had to be at least 25...
Stručně shrň článek o tématu „Ferdinand Lassalle“ a uveď hlavní fakta.
**Ferdinand Lassalle** Ferdinand Lassalle (pův. jménem Ferdinand Johann Gottlieb Lassal, 11. dubna 1825, Vratislav – 31. srpna 1864, Carouge u Ženevy) byl německo-židovský právník a socialistický politik. Zakladatel spolku V roce 1863 založil v Lipsku Všeobecný německý dělnický spolek. Podle něj byly vzápětí zakládány...
null
null
null
null
Breaking the Silence (Firewind song) "Breaking the Silence" is the fifth track off Greek power metal band Firewind's fourth studio album Allegiance. It was released as a single to the market of Greece on 2 July 2007. Tara Teresa's vocal performance on the song has been described as "more characteristic of gothic metal...
Python solution: Valid parentheses.
```python def valid_parens(s: str) -> bool: pairs = {')':'(', ']':'[', '}':'{'} st = [] for ch in s: if ch in '([{': st.append(ch) elif ch in pairs: if not st or st[-1] != pairs[ch]: return False st.pop() return not st ```
null
Stručně shrň článek o tématu „RC Zlín“ a uveď hlavní fakta.
**RC Zlín** RC Zlín (RUGBY CLUB Zlín) je český ragbyový klub, založený v roce 1944 jako "odbor ragby při SK Baťa Zlín". K přeměně na samostatný oddíl a legalizaci došlo v roce 1947, kdy bylo sehráno také první utkání. Rugby Club Zlín je členem Sportovních klubů Zlín. Klubové barvy jsou modrá a žlutá. Předsedou klubu j...
null
Generate a dictionary out of two lists by matching each element in the two lists
list_a =[2, 3, 4] list_b = ["a", "b", "c"]
def make_dict(list_a, list_b): dict = {} for a, b in zip(list_a, list_b): dict[a] = b return dict
null
Spočítej: 2 + 7 = ?
2 + 7 = 9
null