instruction stringlengths 2 259 ⌀ | input stringlengths 0 442 ⌀ | output stringlengths 1 1.9k ⌀ | text stringlengths 273 2.08k ⌀ |
|---|---|---|---|
Find a way to get the size of a linked list without traversing it. | head: 1 -> 2 -> 3 -> 4 -> 5 -> null | def get_list_size(head): count = 0 temp = head while(temp): count += 1 temp = temp.next return count | null |
Write a Python snippet that prints out each item in a given list. | list = ["Apple", "Banana", "Cherry"] | for item in list: print(item) | null |
Stručně shrň článek o tématu „Square Jules-Ferry“ a uveď hlavní fakta. | **Square Jules-Ferry**
Square Jules-Ferry je square v Paříži v 11. obvodu. Historie Square bylo založeno v roce 1924 na ploše 5830 m2 uprostřed Boulevardu Jules-Ferry. Náměstí bylo pojmenováno po pařížském starostovi Julesovi Ferrym. V roce 1909 zde byla instalována kamenná socha, kterou vytvořil sochař Jean-Bernard D... | null | |
null | null | null | Břehová
Břehová ulice na Starém Městě v Praze spojuje Pařížskou ulici a Dvořákovo nábřeží a je součást čtvrtě Josefov. Historie a názvy Původně ve středověku ulice vedla od staronové synagogy k vltavskému břehu. Názvy ulice se měnily: jižní část původně měla název Schieselova, severní se nazývala "Břehová" nebo "Pobře... |
Stručně shrň článek o tématu „Halo of Blood“ a uveď hlavní fakta. | **Halo of Blood**
Halo of Blood je osmé studiové album finské melodic death metalové kapely Children of Bodom. Bylo vydáno 6. června 2013 v Evropě a 11. června v Severní Americe. V Japonsku bylo album vydáno 29. května 2013. Seznam skladeb Účinkující Children of Bodom Alexi Laiho – zpěv, sólová kytara Roope Latvala – ... | null | |
In Java, write a method that reverses an array of integers. | public static int[] reverseArray(int[] arr) { int[] reversed = new int[arr.length]; int j = 0; for (int i = arr.length - 1; i >= 0; i--) { reversed[j++] = arr[i]; } return reversed; } | null | |
null | null | null | Hypatopa vox
Hypatopa vox is a moth in the family Blastobasidae. It is found in Costa Rica. The length of the forewings is about 4.8 mm. The forewings are brown intermixed with pale-brown scales. The hindwings are translucent pale brown. Etymology The specific name is derived from Latin vox (meaning voice). References... |
Stručně shrň článek o tématu „Marcella Althaus-Reid“ a uveď hlavní fakta. | **Marcella Althaus-Reid**
Marcella Althaus-Reid (11. května 1952, Rosario – 20. února 2009, Edinburgh) byla profesorka kontextuální teologie na University of Edinburgh. Ve své době byla jedinou ženou zastávající post profesorky teologie na univerzitě ve Skotsku. Narodila se v Argentině, v provincii Santa Fe. Bakalářsk... | null | |
null | null | null | Apomorphine
Apomorphine, sold under the brand name Apokyn among others, is a type of aporphine having activity as a non-selective dopamine agonist which activates both D2-like and, to a much lesser extent, D1-like receptors. It also acts as an antagonist of 5-HT2 and α-adrenergic receptors with high affinity. The comp... |
null | null | null | Gen. Edward F. Jones House
Gen. Edward F. Jones House is a historic home located at Binghamton in Broome County, New York. It was constructed in 1872 and is a large -story, irregularly shaped building built of an eclectic combination of materials and textures. It was part of a large estate assembled by General Edward ... |
null | null | null | Asociace (psychologie)
Asociace (z lat. socius, společný) je spojení mezi jednotlivými psychickými vjemy, myšlenkami, pocity, náladami apod. Tímto spojením vysvětlovala myšlení asociační hypotéza. Význam pojmu „asociace“ je sdružení, spojení. Asociace je v psychologii termín označující spojení mezi koncepčními subjekt... |
Summarize key facts about „The Beast Is G Unit“ clearly and accurately. | **The Beast Is G Unit**
The Beast Is G Unit is the second and final extended play (EP) by American hip hop group G-Unit. The EP was released on March 3, 2015, by G-Unit Records. Critical reception The Beast Is G Unit received positive reviews from music critics. Homer Johnsen of HipHopDX said, "The G-Unit sound has ch... | null | |
Output a list of the elements that appear both in list a and list b. | list a: [1, 3, 5, 7, 9] list b: [2, 4, 6, 8] | [] | null |
Summarize key facts about „Waipekakoura River“ clearly and accurately. | **Waipekakoura River**
The Waipekakoura River is a river of the Northland Region of New Zealand's North Island. It flows east to reach the Kerikeri River five kilometres west of Kerikeri. See also List of rivers of New Zealand References Far North District Rivers of the Northland Region Rivers of New Zealand | null | |
Describe the feature of "promise" in JavaScript. | Promises in JavaScript are objects that represent the eventual completion or failure of an asynchronous operation. They allow us to structure contingencies within our code, and to take actions based on the eventual result of asynchronous tasks. | null | |
Stručně shrň článek o tématu „Slepé pleso“ a uveď hlavní fakta. | **Slepé pleso**
Slepé pleso je zanikající jezero v Mlynické dolině ve Vysokých Tatrách na Slovensku. Zarůstající vodní plocha má rozlohu 0,9651 ha. Je 152 m dlouhé a 101 m široké. Leží v nadmořské výšce 1375 m. Okolí Nachází se ve vzdálenosti 100 m severozápadně od Štrbského plesa přibližně o 30 m výše za úzkým moréno... | null | |
Suggest a code to execute when a condition is met. | if volume > 10: | if volume > 10: # Do something print("Volume is greater than 10") | null |
Spočítej: 29 + 10 = ? | 29 + 10 = 39 | null | |
null | null | null | Mexican Red Cross
The Mexican Red Cross (Spanish: Cruz Roja Mexicana) is a non-governmental humanitarian assistance organization affiliated with the International Federation of Red Cross and Red Crescent Societies to help those in dangerous situations, such as natural disasters, as well as providing human health servi... |
Kolik je 14 × 12? | 14 × 12 = 168 | null | |
Analyze and improve the following basic shell script. | #!/bin/bash # simple bash script echo "Hello World" | #!/bin/bash # Simple bash script # Store name in a variable name="World" # Print message echo "Hello $name" | null |
Spočítej 10×5 | 10 × 5 = 50 | null | |
null | null | null | Kostel svaté Kunhuty (Vedrovice)
Kostel svaté Kunhuty je farní kostel v římskokatolické farnosti Vedrovice, nachází se v centru obce Vedrovice uprostřed hřbitova. Kostel je jednolodní stavba s gotickým jádrem, později byla v 19. století přestavěna. Kostel je chráněn jako kulturní památka České republiky. Historie Kost... |
Write a code to reverse the order of a data structure such as array, list, or stack. | list1 = [1, 3, 5, 7, 9] | list1.reverse() # [9, 7, 5, 3, 1] | null |
Napiš SQL: top 5 nejprodávanějších produktů. | ```sql SELECT product_id, SUM(qty) AS total FROM order_items GROUP BY product_id ORDER BY total DESC LIMIT 5; ``` | null | |
Create a scatterplot of some toy dataset using a python library. | import numpy as np X_train = np.array([[1,2], [3,4], [5,6]]) Y_train = np.array([1,2,3]) | import matplotlib.pyplot as plt plt.scatter(X_train[:, 0], X_train[:, 1], c=Y_train) | null |
Summarize key facts about „Breaking News (TV series)“ clearly and accurately. | **Breaking News (TV series)**
Breaking News is an American drama television series about the fictional Milwaukee-based 24-hour cable news television network I-24, with the motto 'Around the Clock, Around the World'. The series premiered July 17, 2002, on Bravo. Cast and characters Main Tim Matheson as anchorman Bill D... | null | |
Stručně shrň článek o tématu „Doprovodná kytara“ a uveď hlavní fakta. | **Doprovodná kytara**
Doprovodná kytara (též rytmická kytara či slangově beglajt) je způsob použití kytary jako rytmického nástroje, který udává zejména tempo a rytmus (dobu), ale také harmonii či akcent (důraz) dané skladby. Je tedy část rytmické sekce. Používala se například ve 40. letech 20. století v big bandech. ... | null | |
Stručně shrň článek o tématu „Anton Gottstein“ a uveď hlavní fakta. | **Anton Gottstein**
Anton Gottstein (7. prosince 1893, Hořejší Vrchlabí – 22. srpna 1982, Vrchlabí) byl československý lyžař. Sportovní kariéra Na I. ZOH v Chamonix 1924 skončil v běhu na lyžích na 50 km na 14. místě a na 18 km na 18. místě. Závodil za ČKSS Jilemnice. Odkazy Reference Externí odkazy Olympic.cz Františ... | null | |
Using Java, access the value of the second dictionary key in "myDict". | myDict = {"key1": "value1", "key2": "value2", "key3": "value3"} | String value2 = myDict.get("key2"); | null |
How would you modify the following code to add a time delay of 1 second between each iteration of the loop? | for i in range(10): print(i) | import time for i in range(10): print(i) time.sleep(1) | null |
Napiš JS funkci debounce(fn, ms). | ```javascript function debounce(fn, ms) { let t; return (...args) => { clearTimeout(t); t = setTimeout(() => fn(...args), ms); }; } ``` | null | |
Edit this method to return an array of palindromes. | public static String[] findPalindromes(String[] words) { ArrayList<String> result = new ArrayList<>(); for (String word : words) { if (word.length() >= 2) { result.add(word); } } return result.toArray(new String[result.size()]); } | public static String[] findPalindromes(String[] words) { ArrayList<String> result = new ArrayList<>(); for (String word : words) { if (word.length() >= 2 && isPalindrome(word)) { result.add(word); } } return result.toArray(new String[result.size()]); } public static boolean isPalindrome(String str) { int left = 0; int ... | null |
null | null | null | College Tribune
The College Tribune is a student newspaper which serves Ireland's largest third level institution, University College Dublin. It was established in 1989 with the assistance of journalist and broadcaster Vincent Browne who was attending the university as an evening student at the time. Browne noted the ... |
Write a logic to obtain boolean output from a given comparison. | def compare(a, b): if a < b: return True else: return False | null | |
Summarize key facts about „Train (military)“ clearly and accurately. | **Train (military)**
In military contexts, a train is the logistical transport elements accompanying a military force. Often called a supply train or baggage train, it has the job of providing materiel for their associated combat forces when in the field. When focused on provision of field artillery and its ammunition... | null | |
Stručně shrň článek o tématu „Účinnost“ a uveď hlavní fakta. | **Účinnost**
Účinnost může označovat: účinnost (fyzika) – fyzikální veličina světelná účinnost termodynamická účinnost účinnost (právo) – vlastnost právního předpisu Související články Účinek Efektivnost Externí odkazy | null | |
Construct an algorithm to delete duplicate characters from a string | def delete_duplicates(string): letters = set() newstring = "" for char in string: if char in letters: continue else: letters.add(char) newstring += char return newstring | null | |
Create a shell script that will run a specified command every 5 minutes. | #!/bin/bash while true do command sleep 300 done | null | |
Change the following code snippet to convert a given string in lower case. | string = "HELLO WORLD" | string = string.lower() | null |
Oprav češtinu: zitra bude hezky | Zítra bude hezky. | null | |
null | null | null | Broken Saints
Broken Saints is a partially Flash-animated horror drama web series by Brooke Burgess, with technical direction from Ian Kirby and artwork by Andrew West. First released online from 2001 to 2003, it is one of the earliest examples of a motion comic. Characters for the most part remain in static poses and... |
Create a function to perform insertion sorting | list = [5, 3, 8, 7, 1] | def insertion_sort(list): for i in range(1, len(list)): key = list[i] j = i -1 while j >=0 and list[j] > key: list[j+1] = list[j] j -= 1 list[j+1] = key return list | null |
Write a JavaScript program that will console log the first 10 numbers of the Fibonacci sequence. | let x = 0; let y = 1; for (let i = 0; i < 10; i++) { let z = x + y; console.log(z); x = y; y = z; } | null | |
How do you remove the last item from a list in Python? | list.pop() | null | |
Summarize key facts about „Salvatore Valitutti“ clearly and accurately. | **Salvatore Valitutti**
Salvatore Valitutti (1907–1992) was an educator and liberal politician who served as the minister of public education in the cabinet led by Prime Minister Francesco Cossiga in the period 1979–1980. He was one of the proponents of the Montessori education movement. Early life and education Valit... | null | |
Create a CSS class for creating a two-column layout. | .column-layout{ display: flex; flex-direction: row; width: 100%; } .column-layout > * { flex: 1 1 50%; } | null | |
Stručně shrň článek o tématu „Jason Alexander“ a uveď hlavní fakta. | **Jason Alexander**
Jason Alexander, rodným jménem Jay Scott Greenspan (* 23. září 1959, Newark, New Jersey, USA) je americký herec, muzikálový zpěvák a tanečník, držitel americké divadelní ceny Tony. Vybraná filmografie 2005 – Chrise nemá rád nikdo (TV seriál) 2002 – 101 dalmatinů II: Flíčkova londýnská dobrodružství... | null | |
Napiš v Pythonu: csv avg. | ```python import csv def avg_col(path, col): with open(path, newline='', encoding='utf-8') as f: vals = [float(r[col]) for r in csv.DictReader(f)] return sum(vals)/len(vals) if vals else 0.0 ``` | null | |
null | null | null | Vorlíček
Příjmení Vorlíček nosí více osobností: František Vorlíček (* 1947) – český hokejista František Vorlíček (duchovní) (1913–1999) – český duchovní Jan Vorlíček (1842–1918) – český podnikatel a politik, poslanec zemského sněmu Jiří Vorlíček (* 1944) – český lékař, onkolog, profesor MU Václav Vorlíček (1930–2019) ... |
null | null | null | Cholic acid
Cholic acid, also known as 3α,7α,12α-trihydroxy-5β-cholan-24-oic acid is a primary bile acid that is insoluble in water (soluble in alcohol and acetic acid), it is a white crystalline substance. Salts of cholic acid are called cholates. Cholic acid, along with chenodeoxycholic acid, is one of the two major... |
Add a try-catch block around the code example that catches an exception if it is thrown. | with open("myfile.txt") as f: for line in f: print(line) | try: with open("myfile.txt") as f: for line in f: print(line) except: print("An exception has been thrown") | null |
Explain why this code doesn't work. | def celsius_to_fahrenheit(celsius): return celsius + 5 | This code doesn't work because it doesn't follow the formula for converting Celsius temperatures to Fahrenheit. The formula for converting Celsius to Fahrenheit is F = (C * 9/5) + 32, where F is the Fahrenheit temperature and C is the Celsius temperature. The code provided only adds 5 to the Celsius temperature, which ... | null |
Python: funkce is_palindrome(s) — True pokud je palindrom (ignoruj mezeru a velikost). | ```python
def is_palindrome(s: str) -> bool:
t = ''.join(c.lower() for c in s if not c.isspace())
return t == t[::-1]
``` | null | |
Create a PHP class to represent a student with the following data fields: first name, last name, age, GPA. | class Student { public $firstName; public $lastName; public $age; public $GPA; public function __construct($firstName, $lastName, $age, $GPA) { $this->firstName = $firstName; $this->lastName = $lastName; $this->age = $age; $this->GPA = $GPA; } } | null | |
null | null | null | Šun-č’
Šun-č’ (čínsky 順治帝, pinyin Shùnzhìdì) (15. března 1638 – 5. ledna 1661) byl v pořadí druhý císař mandžuské dynastie Čching. Stal se prvním císařem z této dynastie, který vládl nad celou vlastní Čínou (1644–1661). Na trůn nastoupil v pěti letech po smrti svého otce císaře Chung Tchaj-ťiho. Po jeho smrti se císař... |
Co je databáze? (stručně) | Databáze ukládá strukturovaná data tak, aby šla spolehlivě číst, zapisovat a dotazovat. | null | |
Summarize key facts about „Jamshed Madan“ clearly and accurately. | **Jamshed Madan**
Jamshed Burjor Madan (7 January 1915 — 15 September 1986) was an Indian cricketer. He was a right-handed batsman who played for Bengal. He was born in Karachi and died in Calcutta. Madan made a single first-class appearance for the side, during the 1942-43 Ranji Trophy. As an opener, he contributed f... | null | |
Summarize key facts about „Ciołek's Missal“ clearly and accurately. | **Ciołek's Missal**
Ciołek's Missal is one of the oldest relics of Polish literature. Made in 1515, in Kraków, for Erazm Ciołek, the Archbishop of Płock it was decorated with figural initials, rich borders with motives of crests of the owner (Sulima Coat of Arms). External links Mszał Erazma Ciołka 1515 books 1515 in ... | null | |
Summarize key facts about „Mieczysław Gracz“ clearly and accurately. | **Mieczysław Gracz**
Mieczysław Karol Gracz (3 August 1919 – 21 January 1991) was a Polish footballer who played as a forward for Wisła Kraków. He made 22 appearances for the Poland national team from 1947 to 1950. References External links 1919 births 1991 deaths Footballers from Kraków Polish men's footballers Men's... | null | |
Vysvětli IDE? | IDE je vývojové prostředí s editorem, debuggerem a nástroji (VS Code, PyCharm). | null | |
null | null | null | HD 40979 b
HD 40979 b is an extrasolar planet orbiting the star HD 40979, was detected from the Lick and Keck observatories and photometric observations at Fairborn Observatory reveal low-amplitude brightness variations in HD 40979. It is thought to be a large gas giant planet. It was discovered in 2002 by Debra Fisch... |
Kolik je 16 - 2? | 16 - 2 = 14 | null | |
Develop a function to replace all consecutive whitespaces in a given string with a single space. | def collapse_whitespace(str): return ' '.join([x for x in str.split(' ') if x != '']) | null | |
null | null | null | Netvařec
Netvařec je rod rostlin z čeledi bobovité (Fabaceae), zahrnující asi 15 druhů rostoucích v Severní Americe. Jsou to převážně keře se zpeřenými listy a hustými klasovitými květenstvími drobných kvítků s korunou redukovanou na jediný lístek. V Česku je pěstován jako okrasný keř netvařec křovitý (Amorpha frutico... |
Compose a SQL query to find the number of students whose GPA is greater than 3.5. | Student | SELECT COUNT(*) FROM Student WHERE GPA > 3.5; | null |
Summarize key facts about „Gavlimak“ clearly and accurately. | **Gavlimak**
Gavlimak (, also Romanized as Gāvlīmāk) is a village in Chehel Shahid Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 184, in 54 families. References Populated places in Ramsar County | null | |
null | null | null | Mausi Maa Temple
The Mausi Maa temple is situated at the mid-way of the Bada danda (Grand road) of Puri. It is a small temple dedicated to Goddess Ardhashini. As per Jagannath mythology, once Goddess Lakshmi Devi left Shri Mandira, and thus Jagannath and Balabhadra become poor and had to go out for begging. When Jagan... |
Generate Java code to display a message on a GUI. | import javax.swing.JOptionPane; public class DisplayMessage { public static void main(String[] args) { JOptionPane.showMessageDialog(null, "Hello world!", "Message", JOptionPane.INFORMATION_MESSAGE); } } | null | |
Summarize key facts about „Zaba“ clearly and accurately. | **Zaba**
Zaba may refer to: Places Zaba, a location given by Ptolemy in ancient Southeast Asia Zaba, Democratic Republic of the Congo Żaba, Opole Voivodeship, Poland Other Zaba (surname) Zaba, a Croatian contraction of the Zagreb Bank (Zagrebačka banka) Zabasearch.com, a personal-information search engine Zaba (album)... | null | |
Stručně shrň článek o tématu „Cihelenské rybníky“ a uveď hlavní fakta. | **Cihelenské rybníky**
Cihelenské rybníky jsou evropsky významná lokalita, která byla v červnu roku 2012 vyhlášena Libereckým krajem přírodní památkou. Ochrana se týká čtyř rybníků propojených Stružnickým potokem, mokřadů, luk a lesů v jejich okolí v katastrálním území obce Horní Libchavy. Území se nalézá severozápadn... | null | |
Kolik je 20 - 12? | 20 - 12 = 8 | null | |
Summarize key facts about „Shoaff“ clearly and accurately. | **Shoaff**
Shoaff is a surname. Notable people with the surname include: Benny Shoaff (1897–1960), American racing driver Carrie M. Shoaff (1849–1939), American artist, author, potter, playwright, correspondent John Earl Shoaff (1916–1965), American entrepreneur and philosopher See also Shoaf | null | |
Summarize key facts about „Oleg Alekseev“ clearly and accurately. | **Oleg Alekseev**
Oleg Aleksandrovich Alekseev (Russian:Олег Александрович Алексеев) (27 March 1953 – 30 July 2015) was a Soviet wrestler. An ethnic Buryat, he engaged in wrestling as a child under influence from his elder brother Vyacheslav, and progressed through national competitions. He became the first Buryat to ... | null | |
Given a sorted array of size n, create a program to return the kth smallest element. | def findKthSmallestElement(arr, n, k): # To return kth smallest element in # the given array return arr[k-1] | null | |
Summarize key facts about „Derya Erke“ clearly and accurately. | **Derya Erke**
Şadan Derya Erke (born November 11, 1983) is a Turkish former swimmer, who specialized in backstroke events. She is a two-time Olympian (2000 and 2004) and a member of Istanbul Swimming Club (). She previously held Turkish records in the 50, 100, and 200 m backstroke, until they were all broken by Hazal... | null | |
null | null | null | 99 Neighbors
99 Neighbors is an American music group formed in Burlington, Vermont. It consists of seven members: Connor "Swank" Stankevich, Hank "HANKNATIVE" Collins, Sam Paulino, Nadia Nygaard, Julian "Juju" Segar-Reid, Caleb "Somba" Hoh, and Jared Fier. The members comprise singers, rappers, and producers. Its musi... |
Hey tam? | Zdravím! Napiš úkol — rád pomůžu. | null | |
Create a JavaScript function that takes no more than two parameters and returns the larger of the two parameters. | function maxNumber(a, b) { return (a > b) ? a : b; } | null | |
Using a list comprehension, create a function to give only the even numbers in a given list. | arr = [1, 2, 3, 4, 5, 6, 7, 8] | def only_even(arr): return [ num for num in arr if num % 2 == 0 ] | null |
Write a C++ program to print a decimal number in reverse | #include<iostream> using namespace std; int main() { int num = 54321; int reversed = 0; while(num != 0) { reversed = reversed * 10 + num % 10; num /= 10; } cout << "Reversed Number: " << reversed << endl; return 0; } | null | |
Compare two strings and count the number of characters that are different. | str1 = 'hello' str2 = 'hallo' | def countTextDifference(str1, str2): # store length of both strings len1 = len(str1) len2 = len(str2) # store the number of characters # which are different count = 0 # compare and count the number # of characters which are different for i in range(0, len1): if (i >= len2): count += (len1 - len2) break if (str1[i] == s... | null |
Stručně shrň článek o tématu „Meze růstu (archetyp)“ a uveď hlavní fakta. | **Meze růstu (archetyp)**
Meze růstu (anglicky Limits to growth archetype) je jeden ze základních systémových archetypů (generických struktur, archetypů chování) v oblasti systémového myšlení, sociálních a dynamických systémů. Představuje situaci, kdy růst dříve či později narazí na meze vytvořené okolím a další pokus... | null | |
Write a JavaScript program to compute the value obtained by concatenating the three given strings. | str1 = "Hello " str2 = "World!" str3 = " How are you?" | let str1 = "Hello "; let str2 = "World!"; let str3 = " How are you?"; const concatString = str1.concat(str2, str3); console.log(concatString); // "Hello World! How are you?" | null |
Write a JavaScript code snippet to calculate percentage of an input number. | number = 50 | number = 50 percentage = (number/100)*100; console.log(percentage + '%'); | null |
Write a C# program to calculate the area of a triangle. | using System; public class Program { public static double AreaOfTriangle(double b, double h) { double area = (b * h) / 2; return area; } public static void Main(string[] args) { double b = 10.0; double h = 12.0; Console.WriteLine(AreaOfTriangle(b, h)); } } | null | |
Write a JavaScript function to determine if an array is sorted or not. | function isSorted(arr) { for (let i=1; i<arr.length; i++) { if (arr[i] < arr[i-1]) return false; } return true; } | null | |
null | null | null | West Moor SSSI
West Moor () is a 213.0 hectare (526.3 acre) biological Site of Special Scientific Interest on the River Parrett in Somerset, notified in 1985. West Moor lies south of Curry Rivel, Langport, and Drayton, and northwest of Kingsbury Episcopi and is part of the extensive grazing marsh grasslands and ditch ... |
Stručně shrň článek o tématu „Arnold Gingrich“ a uveď hlavní fakta. | **Arnold Gingrich**
Arnold Gingrich (5. prosince, 1903 – 9. července, 1976) byl zakladatel (spolu s Davidem Smartem) a editor časopisu Esquire. Časopis založil v roce 1933 a až do roku 1961 v něm pracoval jako editor. Název časopisu Esquire byl zvolen poté, co Gingrich obdržel dopis, na kterém byl adresát "Arnold Ging... | null | |
Edit the following code snippet to display the data in a structured table | data = {'name': ['John', 'Smith', 'Adam'], 'age' : [23, 45, 56]} | <table> <thead> <tr> <th>Name</th> <th>Age</th> </tr> </thead> <tbody> {% for item in data %} <tr> <td>{{ item.name }}</td> <td>{{ item.age }}</td> </tr> {% endfor %} </tbody> </table> | null |
Generate a matrix with 5 rows and 7 columns containing random numbers in it. | import numpy as np # Create a matrix with 5 rows and 7 columns matrix = np.random.rand(5,7) | null | |
Summarize key facts about „Heinrich Häser“ clearly and accurately. | **Heinrich Häser**
Heinrich Häser (15 October 1811 – 13 September 1885) was a German medical author. Biography He was born in Rome, the son of the musician August Ferdinand Häser (1779–1844). He studied medicine at the University of Jena, taught there from 1836 to 1849 (associate professor from 1839, full professor fr... | null | |
Ukaž JavaScript — sum array. | ```javascript const sum = arr => arr.reduce((a,b)=>a+b, 0); ``` | null | |
Write a function in Java to find the intersection of 2 arrays. | static int[] intersect(int[] array1, int[] array2){ int[] result = new int[array1.length]; int k = 0; for (int i = 0; i < array1.length; i++) { for (int j = 0; j < array2.length; j++) { if(array1[i] == array2[j]){ result[k] = array1[i]; k++; } } } // Return the result array return result; } | null | |
Create a function to check which HEX color can be generated from the given RGB value. | rgb: 253, 199, 1 | def rgb_to_hex(rgb): r, g, b = rgb hex_val = "#{:02x}{:02x}{:02x}".format(r, g, b) return hex_val # Output: #fdc701 | null |
Write a web page using HTML, CSS, and JavaScript that displays the following text: "Welcome to my website!". | <!doctype html> <html> <head> <title>My website</title> </head> <body> <div class="container"> <h1>Welcome to my website!</h1> </div> <script> console.log('Welcome to my website!'); </script> </body> </html> | null | |
Kolik je 10 × 8? | 10 × 8 = 80 | null | |
Kolik je 26 - 2? | 26 - 2 = 24 | null | |
Stručně shrň článek o tématu „Německá demokratická republika“ a uveď hlavní fakta. | **Německá demokratická republika**
Německá demokratická republika (NDR, v německy mluvících zemích i jinde běžně DDR, zkratka pro Deutsche Demokratische Republik, angl. zkratkou GDR), též (nepřesně) zvaná „Východní Německo“, byl středoevropský stát, který existoval mezi lety 1949 až 1990 v období během studené války, ... | null | |
Write a SQL query to find the name and occupation of all people older than 60. | SELECT name, occupation FROM people WHERE age > 60; | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.