instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
Kolik je 28 - 6?
28 - 6 = 22
null
Summarize key facts about „Steve Owen“ clearly and accurately.
**Steve Owen** Steve or Stephen Owen may refer to: Steve Owen (American football) (1898–1964), American football player and longtime coach of the New York Giants Steve Owen (racing driver) (born 1974), Australian V8 Supercar racing driver Steve Owen (EastEnders), fictional character in EastEnders Stephen Owen (sinolog...
null
Spočítej: 29 + 13 = ?
29 + 13 = 42
null
Summarize key facts about „Quan Bray“ clearly and accurately.
**Quan Bray** Jaquan Tyreke Bray (born April 28, 1993) is an American gridiron football wide receiver who is a free agent. He most recently played for the Ottawa Redblacks of the Canadian Football League (CFL). He played college football at Auburn, and signed with the Indianapolis Colts as an undrafted free agent in 2...
null
null
null
null
Zemské volby v Čechách 1901 Zemské volby v Čechách 1901 byly volby konané v Českém království od 8. do 15. října 1901 (užší volby, tj. druhá kola volebních klání v některých obvodech, se konaly ještě 16. a 17. října), kterými byli zvoleni poslanci Českého zemského sněmu coby zákonodárného sboru zemské samosprávy v rám...
null
null
null
Tíhové zrychlení Tíhové zrychlení je zrychlení volného pádu těles zanedbatelných rozměrů (hmotných bodů) v dané vztažné soustavě a představuje superpozici gravitačních a setrvačných zrychlení působících na tělesa v této soustavě. Nejčastěji se tíhovým zrychlením míní speciální případ zrychlení volného pádu v soustavě ...
Multiply two vectors of size 5 and return the output.
a = [1, 2, 3, 4, 5] b = [5, 4, 3, 2, 1]
[5, 8, 9, 8, 5]
null
Summarize key facts about „Pierre Fakhoury“ clearly and accurately.
**Pierre Fakhoury** Pierre Fakhoury (born 1943 in Dabou) is a Lebanese/Ivorian architect. He graduated at the School of Architecture at Tournai, Belgium. His notable work includes the Basilica of Our Lady of Peace in Yamoussoukro, Côte d'Ivoire. The Palais du bord de mer of Gabon was designed by him. Since 1983, Fakho...
null
Summarize key facts about „Austin Bluffs, Colorado“ clearly and accurately.
**Austin Bluffs, Colorado** Austin Bluffs is a summit in the Pikeview area of Colorado Springs in El Paso County, Colorado, at in elevation. It is also a residential area, that was once a settlement and the site of a tuberculosis sanatorium. The University of Colorado Colorado Springs campus was moved there in 1965. T...
null
Stručně shrň článek o tématu „Římskokatolická farnost Trhové Sviny“ a uveď hlavní fakta.
**Římskokatolická farnost Trhové Sviny** Římskokatolická farnost Trhové Sviny 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 Trhové Sviny jsou prvně písemně doloženy v roce 1260, kdy zde zřejmě již byla duchovní správa. Místní farnos...
null
What is the best approach to solve this problem?
Given an array of integers, find the longest continuous increasing subarray within the array.
The best approach to solve this problem is to use the sliding window technique. This involves iterating through the array and keeping track of the start and end points of a window. We check to see if the elements of the window are increasing and update the start and end points accordingly. When the window becomes longe...
null
Create a class in Java for a student and define variables for name, date of birth and grade.
public class Student { private String name; private Date dob; private int grade; public Student(String name, Date dob, int grade) { this.name = name; this.dob = dob; this.grade = grade; } // Additional methods/Getters and Setters }
null
null
null
null
Leland T. Powers Leland Todd Powers (January 28, 1857 – November 27, 1920) was an American performing arts educator, author, and actor. The founder of the Leland Powers School, he was once renowned as "the highest paid man in the Lyceum field." Biography Born in Pultneyville, New York, Powers attended the Phillips Aca...
Write a SQL query to delete data from a table named 'customers'.
DELETE FROM customers;
null
Stručně shrň článek o tématu „Římskokatolická farnost Spálov“ a uveď hlavní fakta.
**Římskokatolická farnost Spálov** Římskokatolická farnost Spálov je farnost Římskokatolické církve v děkanátu Bílovec ostravsko-opavské diecéze. Farnost ve Spálově je poprvé připomínána roku 1408, následně však o ní chybějí zprávy. Za reformace byla evangelická a v letech 1598 až 1624 jsou zde doloženi evangeličtí ka...
null
Spočítej: 10 + 2 = ?
10 + 2 = 12
null
Stručně shrň článek o tématu „Římskokatolická farnost Čakov“ a uveď hlavní fakta.
**Římskokatolická farnost Čakov** Římskokatolická farnost Čakov je zaniklé územní společenství římských katolíků v rámci vikariátu České Budějovice - venkov českobudějovické diecéze. O farnosti Historie Plebánie v Čakově je doložena v roce 1384, po roce 1620 však zanikla a její území bylo přifařeno k farám v okolních ...
null
Implement a sequence to sequence model for translation.
from tensorflow.keras.layers import Input, LSTM, Dense def seq2seq_model(src_length, trg_length, embedding_dim, num_enc_tokens, num_dec_tokens): # Define an input layer. encoder_inputs = Input(shape=(None, num_enc_tokens)) # Add an LSTM layer with `src_length` number of units encoder_lstm = LSTM(src_length, return_stat...
null
Kolik je 16 - 6?
16 - 6 = 10
null
Summarize key facts about „Shad Mansur Mahalleh“ clearly and accurately.
**Shad Mansur Mahalleh** Shad Mansur Mahalleh (, also Romanized as Shād Manşūr Maḩalleh; also known as Shāh Manşūr Maḩalleh) is a village in Sakht Sar Rural District, in the Central District of Ramsar County, Mazandaran Province, Iran. At the 2006 census, its population was 466, in 127 families. References Populated p...
null
What is 15 - 3?
15 - 3 = 12
null
Create a Ruby method that takes two strings and concatenates them.
def concat(str1, str2) return str1 + str2 end
null
What is 13 - 10?
13 - 10 = 3
null
Give an example input to the following instruction.
Write a JavaScript code snippet that calculates the sum of the squares of two numbers.
let x = 3; let y = 2; let sum = x * x + y * y; console.log(sum); // prints 13
null
Create a function that takes a sentence as a string and returns a string containing the sentence in reverse order.
"I am learning to code"
public String reverse(String sentence) { StringBuilder reversedSentence = new StringBuilder(); String[] words = sentence.split(" "); for (int i = words.length - 1; i >= 0; i--) { reversedSentence.append(words[i]); reversedSentence.append(" "); } return reversedSentence.toString().trim(); }
null
null
null
null
Grace Andrews Grace Andrews may refer to: Grace Andrews (mathematician) (1869–1951), American mathematician Grace Andrews, a schooner wrecked on Dog Island, Florida Grace Andrews (TOWIE), in The Only Way is Essex Grace Andrews, a character in the film The Hitcher and the remake Andrews, Grace
Summarize key facts about „Assemblin“ clearly and accurately.
**Assemblin** Assemblin () is an enzyme with systematic name. This enzyme catalyses the following chemical reaction Cleaves -Ala-Ser- and -Ala-Ala- bonds in the scaffold protein This enzyme is coded by the herpes-virus virion. References External links EC 3.4.21
null
Stručně shrň článek o tématu „Stade Olympique de Chamonix“ a uveď hlavní fakta.
**Stade Olympique de Chamonix** Stade Olympique de Chamonix byl stadion v Chamonix-Mont-Blanc ve Francii. Pojal 45 000 diváků. Byl hlavním centrem dění při Zimních olympijských hrách v roce 1924. Kromě zahajovacího a závěrečného ceremoniálu se zde i soutěžilo v běhu na lyžích, curlingu, krasobruslení, závodě vojenskýc...
null
Compare two strings and remove all letters from the first string which are present in the second string and vice versa.
string1 = "Hello World!" string2 = "Bye World!"
def compare_and_remove_letters(string1, string2): result = "" for i in string1: if i not in string2: result += i for i in string2: if i not in string1: result += i return result # example print(compare_and_remove_letters("Hello World!", "Bye World!")) # output: Byelo!
null
null
null
null
Indian Revenue Service The Indian Revenue Service (IAST: ), often abbreviated as IRS, is an Indian government agency that is primarily responsible for collecting and administering direct and indirect taxes. As a central civil service under Group A of the executive branch of the Government of India, it functions under ...
What is the difference between a programming language and a scripting language?
The main difference between a programming language and a scripting language is that a programming language generally requires compiling or interpreting the source code before it can be used, while a scripting language is interpreted on the fly without pre-compilation. Another difference is that programming languages ar...
null
Change the variable "str" below to upper case.
let str = 'hello world!';
let str = 'HELLO WORLD!';
null
In Bash, write a command line to create a directory called `myFolder` in the current working directory.
mkdir myFolder
null
null
null
null
Paralejurus Paralejurus is a genus of trilobite from the Late Silurian to the Middle Devonian of Africa and Europe. Features These animals, up to nine centimeters long, had an oval outline and a strongly arched exoskeleton. The cephalon has a smooth, detail-poor surface and an almost inconspicuous occipital bone behin...
null
null
null
Carnosauria {{Taxobox | jméno = Carnosauria | výskyt = Střední jura až svrchní křída (před 170 až 93 miliony let) | obrázek = Bałtów Park Jurajski 002.jpg | popisek = Model rodu Allosaurus v polském Bałtowie | velikost obrázku = 258px | říše = živočichové (Animalia) | kmen = strunatci (Chordata) | třída = plazi (Sauro...
Create a function in JavaScript for validating a given a string for all required special characters.
ExampleString: "This string should contain at least 1 digit, one special character and one capital letter."
function checkRegex(string) { if (/[A-Z]/.test(string) && /[!@#$%^&*]/.test(string) && /[0-9]/.test(string)) { return true; } else { return false; } }
null
Create a SQL query that gets the list of names of all employees who work at the company 'ABC'.
SELECT name FROM employees WHERE company = 'ABC';
null
Napiš JS: vrať pole čísel 1..20.
```javascript const nums = Array.from({length: 20}, (_, i) => i + 1); ```
null
Summarize key facts about „Marnes Irisees Superieures Formation“ clearly and accurately.
**Marnes Irisees Superieures Formation** The Marnes Irisees Superieures Formation is a geological formation in France. It dates back to the Late Triassic . Vertebrate fauna See also List of dinosaur-bearing rock formations References Triassic System of Europe Norian Stage
null
Summarize key facts about „Bachiru“ clearly and accurately.
**Bachiru** is the Japanese art technique and Japanese craft of engraving dyed ivory. Bachiru originated in Tang dynasty China, and was introduced to Japan in the 8th century C.E. The ivory pieces to be decorated are first stained with pigment (usually red, green or blue). Ivory does not take colour easily and has to ...
null
What is 20 - 8?
20 - 8 = 12
null
Umíš Rust?
Ne. Specializuju se na Python, JavaScript, HTML a PHP. S Rustem ti spolehlivě nepomůžu — zkus oficiální docs nebo někoho, kdo Rust umí.
null
Using the comment as a guide, complete the code to reverse an array in-place.
def reverse_arr(arr): """Reverses an array in-place. This means the existing array will be modified!""" # TODO: write the code here
def reverse_arr(arr): """Reverses an array in-place. This means the existing array will be modified!""" # reverse the array in-place for i in range(len(arr)//2): arr[i], arr[len(arr)-i-1] = arr[len(arr)-i-1], arr[i]
null
Clone the content of the following Github repository: https://github.com/shreya23/Coding-Challenges
git clone https://github.com/shreya23/Coding-Challenges.git
null
Suggest a better algorithm than Bubble sort for sorting a large array.
Merge sort is an efficient sorting algorithm that uses divide and conquer approach. It divides the array into two halves, recursively sorts them and then merges them. Merge sort has a time complexity of O(nlog(n)) and is efficient for large arrays.
null
Kolik je 2 × 5?
2 × 5 = 10
null
What is the syntax of an if-else block in Java?
The syntax of an if-else block in Java is: if (condition) { // execute this code if the condition is true } else { // execute this code if the condition is false }
null
Summarize key facts about „Ratnayake“ clearly and accurately.
**Ratnayake** Ratnayake, Rathnayake, Ratnayeke or Rathnayaka (රත්නායක) is a Sinhalese name originating from the words ratna (gem) and nayake (leader). Notable people with the name include: Given name Ratnayake Nissanka (Prabath Nissanka) (born 1980), a Sri Lankan cricketer Patrick Ratnayake,Senior Professor, Universit...
null
Kolik je 22 × 5?
22 × 5 = 110
null
Predict the sentiment of a given sentence.
This movie was fairly dull.
The sentiment of the statement is negative.
null
Summarize key facts about „Jagtial Assembly constituency“ clearly and accurately.
**Jagtial Assembly constituency** Jagtial Assembly constituency is a constituency of the Telangana Legislative Assembly, India. It is one among the 3 constituencies in Jagtial district. It is part of Nizamabad Lok Sabha constituency. M. Sanjay Kumar of Telangana Rashtra Samithi is currently representing the constituen...
null
Summarize key facts about „Piave“ clearly and accurately.
**Piave** Piave can refer to: Francesco Maria Piave (1810–1876), Italian librettist, journalist and theater impresario Piave cheese Piave (river), in north Italy Battle of Piave River (1809), a May 1809 battle of the Napoleonic Wars Battle of the Piave River, a June 1918 battle of World War I 10 Motorised Division Pia...
null
Generate a regular expression to match a UK phone number
import re pattern = re.compile("^[+]*[(]{0,1}[0-9]{1,4}[)]{0,1}[-\s\./0-9]*$")
null
null
null
null
Walter Boas Medal The Walter Boas Medal is awarded by the Australian Institute of Physics for research in Physics in Australia. It is named in memory of is named in memory of Walter Boas (1904-1982) — an eminent scientist and metallurgist who worked on the physics of metals. Recipients Source: Australian Institute of ...
Hey tam?
Ahoj! Jsem tu pro kód, vysvětlení i češtinu.
null
null
null
null
Harries Harries is a surname. For the meaning and origins of the name refer to Harris (surname). Notable people with the surname include: Carl Dietrich Harries (1866–1923), German chemist Douglas Harries (1893–1972), Royal Air Force officer and cricketer Finn Harries (born 1993), YouTube personality, brother of Jack H...
Stručně shrň článek o tématu „Černá díra“ a uveď hlavní fakta.
**Černá díra** Černá díra je natolik hmotný objekt, že jeho gravitační pole je v jisté oblasti časoprostoru natolik silné, že žádná hmota – částice a ani elektromagnetické záření (například světlo) tuto oblast nemůže opustit. Černé díry byly teoreticky předpovězeny obecnou teorií relativity publikovanou v roce 1915 Al...
null
Summarize key facts about „Stone duality“ clearly and accurately.
**Stone duality** In mathematics, there is an ample supply of categorical dualities between certain categories of topological spaces and categories of partially ordered sets. Today, these dualities are usually collected under the label Stone duality, since they form a natural generalization of Stone's representation t...
null
Summarize key facts about „Joy Golden“ clearly and accurately.
**Joy Golden** Joy Golden (June 13, 1930 – August 29, 2015; born Joy Rena Man) was an advertising executive. She was well known for creating the radio spots for The Laughing Cow cheese. She was among the first generation of women in advertising. Golden was born in Manhattan and raised in Forest Hills, Queens, New York...
null
Write an expression to calculate the average of the values in the following list
lst = [3, 8, 13, 5, 9]
average = sum(lst) / len(lst)
null
null
null
null
Goulandris Natural History Museum The Goulandris Museum of Natural History is a museum in Kifisia, a northeastern suburb of Athens, Greece. It was founded by Angelos Goulandris and Niki Goulandris in 1965 in order to promote interest in the natural sciences, to raise the awareness of the public, in general, and in par...
Implement a sorting algorithm for a given array in Python.
[3, 2, 1, 4]
sorted_array = [1, 2, 3, 4] def SortArray(array): for i in range(len(array)): for j in range(len(array) - i - 1): if array[j] > array[j + 1]: array[j], array[j + 1] = array[j + 1], array[j] return array sorted_array = SortArray(array)
null
Create a function in Python to split a given string into a list of strings using a space as a delimiter.
string = "This is a string to split"
def split_string(string): return string.split(" ") print(split_string(string))
null
null
null
null
Whanganui Rugby Football Union The Whanganui Rugby Football Union (WRFU) is the governing body for rugby union in the Whanganui region of New Zealand. The Whanganui Rugby Football Union was formed in 1888. The Whanganui team play from Cooks Gardens, Whanganui, and have enjoyed much success on the playing field through...
null
null
null
Pseudoleucania luteomaculata Pseudoleucania luteomaculata is a moth of the family Noctuidae. It is found in the Biobío and Maule Regions of Chile. The wingspan is 31–36 mm. Adults are on wing from February to March. External links Noctuinae of Chile Noctuinae Endemic fauna of Chile
Stručně shrň článek o tématu „Agfa Box“ a uveď hlavní fakta.
**Agfa Box** Agfa Box je série fotografických kamer, především formátu negativu 6×9 cm. Byly vyráběny v letech 1930 až 1957 (případně až do roku 1965, pokud se počítá verze Clack) společností Agfa Gevaert v různých variantách. Agfa Clack Agfa Clack vyráběla společnost v letech 1954 – 1965. V Severní Americe se fotoapa...
null
Find the values of a, b and c in this equation.
7a + 5b + 4c = 70
a = 5; b = 4; c = 2;
null
Implement a factorial function in Python.
def factorial(n): if n == 0: return 1 else: return n * factorial(n-1)
null
Stručně shrň článek o tématu „Netta Barzilai“ a uveď hlavní fakta.
**Netta Barzilai** Netta Barzilai (také jen Netta, ; * 22. ledna 1993 Hod ha-Šaron, Izrael) je izraelská zpěvačka. S písní Toy reprezentovala Izrael na Eurovision Song Contest 2018 v portugalském Lisabonu, ve finále se ziskem 529 bodů zvítězila. Biografie Narodila se 22. ledna 1993 v izraelském městě Hod ha-Šaron, kde...
null
Stručně shrň článek o tématu „Jiří Lexa“ a uveď hlavní fakta.
**Jiří Lexa** Jiří Lexa (* 29. května 1953) je český politik, bývalý zastupitel města Třeboně, od února 2013 do ledna 2014 místopředseda Věcí veřejných a člen této strany. Život V letech 1968 až 1972 navštěvoval Střední průmyslovou školu strojní v Českých Budějovicích. Následně v letech 1972 až 1977 vystudoval obor ek...
null
Summarize key facts about „The Scorching Adventures of the Screaming Jets“ clearly and accurately.
**The Scorching Adventures of the Screaming Jets** The Scorching Adventures of the Screaming Jets EP is the debut release by Australian pub rock band The Screaming Jets, released in December 1990. The Screaming Jets won a national Battle of the Bands contest run by the Triple J network in 1989 and won time in a record...
null
Stručně shrň článek o tématu „Kostel svatého Ondřeje (Teixido)“ a uveď hlavní fakta.
**Kostel svatého Ondřeje (Teixido)** Kostel svatého Ondřeje (Santuario de Santo André de Teixido) byl postaven blízko mořských útesů v Teixido, které se nachází v severní Galicii. Jedná se o známé poutní místo. Historie Výstavba kostela se datuje do doby budování kláštera, jehož existence pod patronátem rodu Travů je ...
null
Create a Java program that prints out the Fibonacci series within a given range
Range = (5, 15)
public class FibonacciRange { public static void main(String args[]) { // Set the range int lowerLimit=5, upperLimit=15; // Print the fibonacci series for (int number = lowerLimit; number <= upperLimit; number++) { System.out.print(fibonacciSeries(number) +" "); } } // Generates the fibonacci series public static int f...
null
Stručně shrň článek o tématu „Komedie“ a uveď hlavní fakta.
**Komedie** Komedie neboli veselohra je literární nebo dramatický útvar, který vždy skončí šťastně (stejně jako pohádka). Opakem komedie je tragédie. Od komedie se očekává humorný nadhled nad lidskými slabostmi a lidskou nedostatečností. Humor spolu s vkusnou komikou jsou zpravidla základními aspekty tohoto útvaru. Pr...
null
Stručně shrň článek o tématu „Anderson Paak“ a uveď hlavní fakta.
**Anderson Paak** Anderson Paak, rodným jménem Brandon Paak Anderson, (* 8. února 1986) je americký rapper a zpěvák. Hudbu začal produkovat ze svého domova v době, kdy docházel na střední školu. Později hrál na bicí v kostele, kde potkal svou budoucí manželku. Jejich manželství se po několika letech rozpadlo a Anderso...
null
Write an HTML code snippet to create an unordered list with three list items.
<ul> <li>List item 1</li> <li>List item 2</li> <li>List item 3</li> </ul>
null
Summarize key facts about „Philippa Mohun“ clearly and accurately.
**Philippa Mohun** Philippa de Mohun (c. 1367 – 17 July 1431) was Duchess of York, as a result of her third marriage to Edward of Norwich, 2nd Duke of York (c.1373–1415), Lord of the Isle of Wight, a grandson of King Edward III (1327–1377). She succeeded her third husband as Lady of the Isle of Wight (1415–1431). Orig...
null
Stručně shrň článek o tématu „Trnava“ a uveď hlavní fakta.
**Trnava** Trnava (, , ) je krajské a okresní město v Trnavském kraji na západním Slovensku, 44 km severovýchodně od Bratislavy, v centru Trnavské pahorkatiny na řece Trnávce, ve výšce 146 m n. m. Trnava je důležité historické a kulturní centrum, je sídlem dvou univerzit a arcibiskupství. V roce 2014 zde žilo 65 713 o...
null
Extract the unique elements from a given list of numbers
list_of_nums = [5, 2, 5, 3, 7, 8, 2]
unique_nums = set(list_of_nums) # {2, 3, 5, 7, 8}
null
Identify the type of a variable in a Python program.
x = [1, 2, 3]
type(x) # List
null
Create a function in JavaScript to check if an array is empty.
function isArrayEmpty(arr) { return arr.length === 0; }
null
Arrange the following functions in order of complexity from least complex to most complex. A) linearSearch B) binarySearch C) insertionSort D) quickSort
A) linearSearch C) insertionSort B) binarySearch D) quickSort
null
What is 8 - 5?
8 - 5 = 3
null
Stručně shrň článek o tématu „Tlak“ a uveď hlavní fakta.
**Tlak** Tlak je fyzikální veličina, obvykle označovaná symbolem p nebo P (z anglického pressure), vyjadřující poměr velikosti síly F, působící kolmo na rovinnou plochu a rovnoměrně spojitě rozloženou po této ploše, a obsahu této plochy S, tedy . Pokud není tato síla F rozložena na dané ploše rovnoměrně, pak veličinu ...
null
Summarize key facts about „Mina Loy“ clearly and accurately.
**Mina Loy** Mina Loy (born Mina Gertrude Löwy; 27 December 1882 – 25 September 1966) was a British-born artist, writer, poet, playwright, novelist, painter, designer of lamps, and bohemian. She was one of the last of the first-generation modernists to achieve posthumous recognition. Her poetry was admired by T. S. El...
null
What is the output of this Java program?
public class Main { public static void main(String [] args) { String name = "John"; int age = 34; System.out.println("My name is " + name + " and I am " + age + " years old."); } }
My name is John and I am 34 years old.
null
Summarize key facts about „Spline“ clearly and accurately.
**Spline** Spline may refer to: Mathematics Spline (mathematics), a mathematical function used for interpolation or smoothing Smoothing spline, a method of smoothing using a spline function Devices Spline (mechanical), a mating feature for rotating elements Flat spline, a device to draw curves Spline drive, a type of ...
null
Summarize key facts about „Terrence Magee“ clearly and accurately.
**Terrence Magee** Terrence Tyler Magee (born March 16, 1993) is a former American football running back. He was signed by the Baltimore Ravens as an undrafted free agent following the 2015 NFL Draft. He played college football at LSU. Professional career Baltimore Ravens Following the 2015 NFL Draft, Magee was signed...
null
Code a function to clamp a given number between a minimum value and maximum value.
Number: 8, Minimum: 3, Maximum: 10
def clamp_number(num, min_value, max_value): if num < min_value: return min_value elif num > max_value: return max_value else: return num
null
Translate to English: Potřebuju pomoct s bugem.
I need help with a bug.
null
Write a JavaScript program to generate random alphanumeric characters of length 10.
function generateAlphaNum() { let length = 10; let characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" let result = ''; for (let i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * characters.length)); } return result; }
null
Write an R code to return the first 10 rows of a data frame.
states-data.csv
# Load the data states_data <- read.csv("states-data.csv") # Get the first 10 rows head(states_data, 10)
null
Parse the HTML page to extract all anchor elements
from bs4 import BeautifulSoup # HTML page html = '<html><a href="https://example.com">Link 1</a><a href="https://example2.com">Link 2</a></html>' soup = BeautifulSoup(html, 'html.parser') # Extracting all anchor elements in a list anchor_elements = soup.findAll('a') # Printing anchor elements for anchor in anchor_eleme...
null
null
null
null
Once Upon a Time (Earl Hines album) Once Upon a Time is a 1966 studio album by Earl Hines, accompanied by members of the Duke Ellington orchestra. Track listing "Once Upon a Time" (Johnny Hodges) – 7:57 "Black and Tan Fantasy" (Duke Ellington, James "Bubber" Miley) – 5:13 "Fantastic, That's You" (George Cates, Bob Thi...
Compile a given C program and link it with a shared library.
// program code given #include <stdio.h> int main() { printf("Hello World"); return 0; } //Shared Library libfoo.so
gcc -c yourprogram.c gcc -o yourprogram yourprogram.o -L/path/to/shared/library -lfoo
null
Vysvětli API?
API je rozhraní, přes které spolu programy komunikují — často přes HTTP a JSON.
null
null
null
null
Ghana Institute of Management and Public Administration The Ghana Institute of Management and Public Administration (GIMPA) is a public co-educational university spread over four campuses (Accra, Tema, Kumasi and Takoradi) and made up of six schools, ten research centers located at Greenhill in Accra, Ghana. The locat...
Using the Jest JavaScript test framework, write a test that checks if a given number is divisible by 2.
n = 6
test('divisible by 2', () => { expect(n % 2).toBe(0); });
null
Summarize key facts about „Aberglaslyn Hall“ clearly and accurately.
**Aberglaslyn Hall** Aberglaslyn Hall is an outdoor learning centre near Beddgelert, North Wales on the edge of the Snowdonia National Park. The hall was purchased by Leicestershire County Council in 1962. It offers dormitory style accommodation for up to 48 people and serves as a residential centre for groups wishing...
null
null
null
null
Hutt (surname) Hutt is a surname. Notable people with it include: John Hutt (1795–1880), Governor of Western Australia from 1839 to 1846 Joan Hutt (1913–1985), English painter Mark Hutt, known for the murder of Donna Jones Michael Hutt (disambiguation), multiple people William Hutt (disambiguation), multiple people