instruction
stringlengths
2
259
⌀
input
stringlengths
0
442
⌀
output
stringlengths
1
1.9k
⌀
text
stringlengths
273
2.08k
⌀
null
null
null
Skupenské teplo tání Skupenské teplo tání je (celkové) teplo, které přijme pevná látka při přechodu na kapalinu během tání. Teplo, které přijme 1 kilogram látky se nazývá měrné skupenské teplo tání. Značení Značka: Lt Jednotka SI: joule, značka: J Používané násobky: kilojoule kJ, megajoule MJ Výpočet Hodnotu skupenské...
Stručně shrň článek o tématu „Philly soul“ a uveď hlavní fakta.
**Philly soul** Philadelphia/Philly soul (někdy Sweet Philly, Philadelphia Sound) je odvozenina soulového žánru, která je charakteristická funkovým ovlivněním a bohatým aranžmá s důrazem na hudební pozadí. Philly soul představuje rozsáhlou orchestrální smyčcovou sekci (obvykle se nahrávek účastnily filharmonické orche...
null
Create a JavaScript function to check if an integer n is a perfect square.
function isPerfectSquare(n) { for (int i = 0; i <= n; i++) { if (i * i == n) { return true; } } return false; }
null
Create a class that implements a polygon using an array of Point objects.
// Define a polygon class public class Polygon { // An array of Points to represent the vertices of a polygon private Point[] vertices; // A constructor that takes an array of Points public Polygon(Point[] vertices) { this.vertices = vertices; } // A method that returns the area of the polygon public double getArea() {...
null
What is 14 - 5?
14 - 5 = 9
null
Summarize key facts about „Sinclair River“ clearly and accurately.
**Sinclair River** The Sinclair River is a river of the Canterbury region of New Zealand's South Island. It flows south from the Jollie Range and is one of the headwaters of the Clyde River, part of the upper Rangitata River system. See also List of rivers of New Zealand References Rivers of Canterbury, New Zealand Ri...
null
Modify the given code to multiply two n x n matrices.
def multiply(m1, m2, n): result = [[0 for x in range(n)] for y in range(n)] for i in range(n): for j in range(n): result[i][j] = 0
def multiply(m1, m2, n): result = [[0 for x in range(n)] for y in range(n)] for i in range(n): for j in range(n): for k in range(n): result[i][j] += m1[i][k] * m2[k][j] return result
null
Summarize key facts about „Ledge“ clearly and accurately.
**Ledge** Ledge or Ledges may refer to: Ridge, a geological feature Reef, an underwater feature Stratum, a layer of rock Ledge, in civil engineering, a type of earthmoving cut Slang for legend or legendary Window ledge Wisconsin Ledge AVA (American Viticultural Area) Ledges (album) Ledges State Park See also The Ledge...
null
Čau! tam?
Ahoj! Co potřebuješ vyřešit?
null
Stručně shrň článek o tématu „Alexandr Berkman“ a uveď hlavní fakta.
**Alexandr Berkman** Alexandr Berkman (rusky Александр Беркман, 21. listopadu 1870, Vilnius, Ruské impérium – 28. června 1936, Nice, Francie) byl anarchista židovského původu známý pro svůj politický aktivismus a psaní. Byl předním členem anarchistického hnutí na počátku 20. století. Život Berkman se narodil ve Vilniu...
null
null
null
null
USC Upstate Spartans The USC Upstate Spartans are the athletic teams that represent the University of South Carolina Upstate, located in Spartanburg, South Carolina, in intercollegiate sports at the Division I level of the National Collegiate Athletic Association (NCAA), primarily competing in the Big South Conference...
Stručně shrň článek o tématu „Bielovodské Žabie plesá“ a uveď hlavní fakta.
**Bielovodské Žabie plesá** Bielovodské Žabie plesá () je soubor dvou ledovcových jezer nacházejících se v horní části Žabí Bielovodské doliny ve Vysokých Tatrách na Slovensku. Plesa leží v nadmořské výšce 1675 m a 1699 m. Plesa Odkazy Poznámky Literatura Související články Žabia Bielovodská dolina Externí odkazy Wiel...
null
Stručně shrň článek o tématu „Hybnost“ a uveď hlavní fakta.
**Hybnost** Hybnost je fyzikální veličina, která je mírou posuvného pohybu tělesa a je součinem jeho hmotnosti a rychlosti. Hybnost ve své podstatě popisuje pohybový stav tělesa. Hybnost je vektorová veličina, stejně jako rychlost, a má stejný směr. Hybnost tělesa je rovná impulzu síly, který je potřeba na jeho uveden...
null
Delete the forth row from the following table using an SQL query.
Table: id | name ------------------- 1 | John 2 | Jane 3 | Jacob 4 | Jill
DELETE FROM Table WHERE id = 4;
null
In JavaScript, create a function that returns the length of a string.
function stringLength(str){ return str.length; }
null
Refactor the following code in C++ to incorporate dynamic memory allocation.
#include <stdio.h> int main() { int a[20]; int n = 20; for (int i=0; i<n; i++) scanf("%d", &a[i]); return 0; }
#include <stdio.h> #include <stdlib.h> int main() { int* a; int n = 20; a = (int *)malloc(n * sizeof(int)); for (int i=0; i<n; i++) scanf("%d", &a[i]); free(a); return 0; }
null
Summarize key facts about „Nahr-e Hoseyn“ clearly and accurately.
**Nahr-e Hoseyn** Nahr-e Hoseyn (, also Romanized as Nahr-e Ḩoseyn) is a village in Abshar Rural District, in the Central District of Shadegan County, Khuzestan Province, Iran. At the 2006 census, its population was 1,142, in 211 families. References Populated places in Shadegan County
null
Summarize key facts about „Abdus Shakoor (painter)“ clearly and accurately.
**Abdus Shakoor (painter)** Abdus Shakoor (born 31 December 1947) is a Bangladeshi painter and calligrapher. Early life and career Abdus Shakoor was born on 31 December 1947 in the Bogra district of Bangladesh. His work focuses on ancestral and historical themes, following in the folk-tradition of Quamrul Hassan and J...
null
Create a Java program to print out factorials from 1 to 10.
public class Factorial { public static void main(String[] args) { for (int i = 1; i <= 10; ++i) { System.out.println(i + "! = " + factorial(i)); } } public static long factorial(int n) { if (n == 0) return 1; else return n * factorial(n - 1); } }
null
Design an HTML page with a table of products and their prices.
Table with 5 products and their prices
<html> <head> <title>Product Prices</title> </head> <body> <h1>Product Prices</h1> <table> <tr> <th>Product Name</th><th>Price</th> </tr> <tr> <td>Laptop</td><td>1000</td> </tr> <tr> <td>Keyboard</td><td>50</td> </tr> <tr> <td>Monitor</td><td>200</td> </tr> <tr> <td>Mouse</td><td>30</td> </tr> <tr> <td>Headphones</td><...
null
Spočítej 20×8
20 × 8 = 160
null
null
null
null
Počítač Počítač je číslicový elektronický stroj, který lze naprogramovat tak, aby automaticky prováděl posloupnosti aritmetických nebo logických operací (výpočty). Moderní počítače dokáží provádět obecné množiny operací známé jako programy. Tyto programy umožňují počítačům provádět širokou škálu úloh. Počítačový systé...
Summarize key facts about „Horridipamera“ clearly and accurately.
**Horridipamera** Horridipamera is a genus of dirt-colored seed bugs in the family Rhyparochromidae. There are about 13 described species in Horridipamera. Species These 13 species belong to the genus Horridipamera: Horridipamera bergrothi (Horvath, 1892) Horridipamera cantrelli Malipatil, 1978 Horridipamera compacta ...
null
Edit the code to add an if statement that returns the string "even" if the value of the variable is even, or the string "odd" if the value of the variable is odd.
var number = 5 def even_odd(number): #TODO
def even_odd(number): if number % 2 == 0: return "even" else: return "odd"
null
JS: groupBy
```javascript function groupBy(arr, key) { return arr.reduce((m, x) => { (m[x[key]] ||= []).push(x); return m; }, {}); } ```
null
Summarize key facts about „Madhuca elmeri“ clearly and accurately.
**Madhuca elmeri** Madhuca elmeri is a plant in the family Sapotaceae. It is named for the American botanist and plant collector Adolph Elmer who worked extensively in the Philippines and Borneo. Description Madhuca elmeri grows as a tree up to tall, with a trunk diameter of up to . The bark is greyish brown. Inflores...
null
Update the following code so that it prints the numbers from 0-9 instead of 0-8.
for i in range(8): print(i)
for i in range(10): print(i)
null
Create a script in Python which takes a number as an argument and prints its corresponding nth Fibonacci number.
def fibonacci(n): if n == 1: return 0 elif n == 2: return 1 else: return fibonacci(n-1) + fibonacci(n-2)
null
Suggest a strategy to reduce the memory requirement of a given application.
""" Suggest a strategy to reduce the memory requirement of a given application """ # Suggested strategy One strategy to reduce the memory requirement of a given application is to identify the areas where the memory is used the most and to optimize the code for those areas. Additionally, use a memory profiling tool to i...
null
Write Haskell code for a hello world.
I don't cover Haskell. I can do Python, JavaScript, HTML, or PHP instead.
null
Create a MySQL query to find all orders in the last month.
Table: Order - Date
SELECT * FROM Order WHERE Date >= DATE_SUB(CURDATE(), INTERVAL 1 MONTH);
null
Stručně shrň článek o tématu „Neptun (planeta)“ a uveď hlavní fakta.
**Neptun (planeta)** Neptun (česky zastarale Vodopán) je osmá, od Slunce nejvzdálenější planeta sluneční soustavy; řadí se mezi plynné obry. S rovníkovým průměrem okolo 50 000 km spadá mezi menší plynné obry sluneční soustavy. Podobně jako u ostatních plynných obrů je možno přímo pozorovat pouze svrchní vrstvy atmosfé...
null
Summarize key facts about „Katrin Jäke“ clearly and accurately.
**Katrin Jäke** Katrin Jäke (born c. 1975) is a retired German butterfly swimmer who won three silver medals at the 1993 European Aquatics Championships and 2000 FINA World Swimming Championships (25 m). Between 1990 and 1999 she won 12 national titles in butterfly events. References 1975 births Living people German f...
null
Spočítej: 7 + 2 = ?
7 + 2 = 9
null
null
null
null
Nikolaj Chochlov Nikolaj Chochlov (1891–1953) byl ruský vrchní ekonom průmyslového trustu, později atašé v Záhřebu. Také byl esperantským básníkem. Dílo Vlastní dílo La Tajdo - sbírka básní La morto de la delegito de UEA - drama Překlady Krucumo - A. Drozdov Orientaj Fabelo - V. Doroševič Morto de Danton - Alexej Niko...
Develop a function in Java that prints out the squares of all numbers between 1 and 10.
public void printSquares(){ for(int i=1; i<=10; i++){ System.out.println(i*i); } }
null
HTML accessibility: button vs div onclick.
Použij `<button>` — má klávesnici, focus a sémantiku. `div` s onclick je pro screen readery a a11y horší, pokud nedoplníš role/tabindex/handlery.
null
Write a JavaScript program that creates an array with all the numbers from 1 to 10.
const a = []; for (let i = 1; i <= 10; i++) { a.push(i); } console.log(a);
null
Napiš HTML: image alt.
```html <img src="photo.jpg" alt="Popis fotky" width="800" height="600" /> ```
null
null
null
null
Gross operating surplus In the national accounts, gross operating surplus (GOS) is the portion of income derived from production by incorporated enterprises that are earned by the capital factor. It is calculated as a balancing item in the generation of income account of the national accounts. It differs from profits ...
Stručně shrň článek o tématu „Tlakový hrnec“ a uveď hlavní fakta.
**Tlakový hrnec** Tlakový hrnec (též Papinův hrnec, odtud hovorově papiňák) je silnostěnný hrnec sloužící k vaření za vyššího tlaku (280–300 kPa), než je běžný atmosférický tlak. Vyšším tlakem se dosáhne vyšší teploty vaření (120 °C až 130 °C, teplota varu vody za normálního tlaku je asi 100 °C), a tím i rychlejšího u...
null
null
null
null
Štěpán Leška Štěpán Leška, (* 21. října 1757 Vrbovce – 25. února 1818 Kiskőrös) byl evangelický duchovní, superintendent, filolog, spisovatel a žurnalista. Život Po studiích působil jako varhaník a učitel evangelického sboru v Bratislavě. Roku 1784 odešel do Čech, kde působil jako farář sboru augsburského vyznání v Če...
Summarize key facts about „Mr. Belvedere Goes to College“ clearly and accurately.
**Mr. Belvedere Goes to College** Mr. Belvedere Goes to College is a 1949 American comedy film directed by Elliott Nugent. The screenplay written by Mary Loos, Mary C. McCall, Jr., and Richard Sale was based on characters created by Gwen Davenport. It follows on from Sitting Pretty (1948), and had a sequel, Mr. Belved...
null
Edit the Python code to reverse a linked list.
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None
# Definition for singly-linked list. class ListNode: def __init__(self, x): self.val = x self.next = None def reverse_list(head): prev = None while head != None: next = head.next head.next = prev prev = head head = next return prev
null
null
null
null
The Least We Can Do Is Wave to Each Other The Least We Can Do Is Wave to Each Other je druhé studiové album britské progresivní rockové skupiny Van der Graaf Generator. Jeho nahrávání probíhalo od 11. do 14. prosince roku 1969 v londýnském studiu Trident Studios a album vyšlo v únoru roku následujícího u vydavatelství...
Summarize key facts about „Tauhoa River“ clearly and accurately.
**Tauhoa River** The Tauhoa River is an estuarial arm of the Kaipara Harbour in the Auckland Region of New Zealand's North Island. As part of the harbour's drowned valley system, it consists of narrow channels flowing south through expanses of mudflat to meet with the main waters of the Kaipara due east of the harbour...
null
Kolik je 18 × 3?
18 × 3 = 54
null
null
null
null
Spartak (stanice metra v Moskvě) Spartak () je stanice moskevského metra na Tagansko-Krasnopresněnské lince. Stavba stanice byla založena již v roce 1975, její stavba byla však pro údajnou zbytečnost zastavena a zakonzervována. Vzhledem k rozvoji infrastruktury na území bývalého Tušinského letiště bylo v roce 2013 roz...
null
null
null
Hardcore techno Hardcore je druh elektronické hudby, který začal vznikat v 90. letech v Nizozemsku; pod tento termín spadá několik specifických stylů. Je popisován jako nejrychlejší, nejtvrdší a nejagresivnější elektronická hudba. Historie Abychom pochopili vznik hardcoru, je potřeba se vrátit do doby kolem 1970 a naj...
null
null
null
The Thief and the Cobbler The Thief and the Cobbler is an unfinished animated fantasy film co-written and directed by Richard Williams. Originally devised in the 1960s, the film was in and out of production for nearly three decades due to independent funding and ambitiously complex animation. It was finally placed int...
Summarize key facts about „Burning the Future: Coal in America“ clearly and accurately.
**Burning the Future: Coal in America** Burning the Future: Coal in America is a 2008 documentary film produced and directed by David Novack. The film focuses on the impacts of mountaintop mining in the Appalachians, where mountain ridges are scraped away by heavy machinery to access coal seams below, a process that i...
null
null
null
null
Teresa Palmer Teresa Palmer (rozená Teresa Mary Palmer; * 26. února 1986, Adelaide, Jižní Austrálie) je australská filmová herečka, spisovatelka a modelka. Nejvíce se proslavila svými rolemi ve filmech Hacksaw Ridge: Zrození hrdiny, Zhasni a zemřeš a Jsem číslo čtyři. Život Teresa Palmerová se narodila 26. února 1986 ...
Stručně shrň článek o tématu „Příkaz (správní právo)“ a uveď hlavní fakta.
**Příkaz (správní právo)** Příkaz je formou rozhodnutí ve zkráceném správním řízení. Jeho obdobou je v občanském soudním řízení platební rozkaz a v trestním řízení trestní příkaz. Právní úprava příkazu je obsažena jak v obecném kodexu správního řízení, správním řádu (§ 150), tak je např. speciálně řešena v § 90 zákona...
null
null
null
null
X-Patent The X-Patents are all the patents issued by the United States Patent and Trademark Office from July 1790 (when the first U.S. patent was issued), to July 1836. The actual number is unknown, but the best estimate is 9,957. The records were burned in a fire, in December 1836, while in temporary storage. No copi...
null
null
null
Slovensko Slovensko, plným názvem Slovenská republika, je vnitrozemský stát ležící ve střední Evropě. Na východě sousedí s Ukrajinou, na jihu s Maďarskem, na jihozápadě s Rakouskem, na západě s Českem a na severu s Polskem. V roce 2021 zde žilo 5 441 899 lidí. Hlavním městem je Bratislava, úředním jazykem je slovenšti...
Stručně shrň článek o tématu „Kawasaki Zephyr 550“ a uveď hlavní fakta.
**Kawasaki Zephyr 550** Kawasaki Zephyr 550 je motocykl japonského výrobce Kawasaki kategorie nakedbike, vyráběný v letech 1991–1999. Silnější modely jsou Kawasaki Zephyr 750 a Kawasaki Zephyr 1100, pro Japonsko se vyráběl slabší Zephyr 400. Popis Nakedbike klasické koncepce se vzduchem chlazeným řadovým čtyřválcem z ...
null
Imagine you have an array with the following elements: [3, 7, 2, 8, 1, 4]. Sort the array so that the elements are in ascending order.
[1, 2, 3, 4, 7, 8]
null
Remove comments from a given HTML page.
def remove_comments(html_page): comment_start = "<!--" comment_end = "-->" output_page = "" while html_page: comment_start_index = html_page.find(comment_start) if comment_start_index == -1: output_page += html_page break output_page += html_page[:comment_start_index] html_page = html_page[comment_start_index:] comment...
null
Calculate the maximum product of two numbers in a list.
[4, -2, 3, -1]
max_product = 4 * -2 = -8
null
null
null
null
Julio Baghy Julio Baghy (13. ledna 1891, Segedín – 18. března 1967, Budapešť) byl maďarský herec, režisér a jeden z předních autorů esperantského hnutí. Je autorem několika novel, ale své mistrné zvládnutí esperanta dokázal především na poli poezie. Jeho verše jsou plné lyriky, humanismu a veselé nálady. Jeho první ve...
Construct a CSS class to set the font color of a paragraph to pink.
.pinktext { color: pink; }
null
How to create a new array from an existing array in JavaScript?
const newArray = oldArray.slice(); // creates a shallow copy of the array // OR const newArray = [...oldArray]; // creates a shallow copy of the array
null
Create a CSS style for a div element to have a width of 200px and a height of 50px.
div { width: 200px; height: 50px; }
null
Summarize key facts about „Władysław Giergiel“ clearly and accurately.
**Władysław Giergiel** Władysław Giergiel (29 September 1917 – 17 October 1991) was a Polish footballer. He played in one match for the Poland national football team in 1947. References External links 1917 births 1991 deaths Polish men's footballers Poland men's international footballers Place of birth missing Men's a...
null
Design a data structure to track the frequency of words in a given text.
A HashMap can be used to track the frequency of words in a given text. The keys of the map would represent the words in the text and the associated values would represent the frequency of that word. The time complexity for retrieving the frequency of a given word in hashmap will be O(1).
null
Create a loop in JavaScript to count from 1 to 10.
for (var i=1; i <= 10; i++) { console.log('Counting: ' + i); }
null
null
null
null
Jan Kašpar (rozcestník) Jméno a příjmení Jan Kašpar nese více známých osobností: Jan Kašpar (1883–1927) – český průkopník letectví Jan Kašpar (herec) (1952–2013) – český herec Divadla Járy Cimrmana Jan Kašpar (básník), vlastním jménem Jan Havel (* 1950) – český básník a pedagog Jan Václav Kašpar (1908–1984) – český ch...
Summarize key facts about „Satvasheela Samant“ clearly and accurately.
**Satvasheela Samant** Satvasheela Samant (née Satvasheela Parshuram Desai; 25 March 1945 – 1 May 2013) was an Indian linguist who compiled Sabdananda, a 3-language dictionary in English, Marathi and Hindi. She campaigned to reintroduce old-style Devanagari script for the Marathi language. She got a bachelor's degree ...
null
Write a SQL query to print all the data in a table "scoreboard" with columns "name", "score", and "category".
SELECT name, score, category FROM scoreboard;
null
Suggest a functional Node.js program to output the unique elements of an array.
let array = [2, 3, 4, 1, 3]
let array = [2, 3, 4, 1, 3]; let unique_elements = [...new Set(array)]; console.log(unique_elements); // [2, 3, 4, 1]
null
Summarize key facts about „Bà Rá mountain“ clearly and accurately.
**Bà Rá mountain** Bà Rá mountain or White Virgin Mountain (núi Bà Rá) is a mountain in the Bình Phước province of Vietnam. It is a twin with Núi Bà Đen, Black Virgin Mountain References Mountains of Vietnam Landforms of Bình Phước province
null
umíš česky?
Ano, umím česky. Můžeme psát jen česky, pokud chceš.
null
Co je branch?
Branch je větev historie — oddělená linka vývoje, kterou pak sloučíš do main.
null
Stručně shrň článek o tématu „Harry Halbreich“ a uveď hlavní fakta.
**Harry Halbreich** Harry Halbreich (9. února 1931, Berlín – 27. června 2016, Uccle) byl belgický muzikolog. Životopis Syn židovsko-německého otce a anglické matky studoval spolu s Arthurem Honeggerem a později s Olivierem Messiaenem na pařížské Konzervatoři, získal první cenu v hudební historii a analýze. Později se ...
null
Create a function that takes a string and checks if it's a valid email or not.
string = 'example[at]gmail.com'
import re def isValidEmail(string): # regex to check for valid email address regex = '^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$' if(re.search(regex,string)): return True else: return False
null
Summarize key facts about „Leila Benn Harris“ clearly and accurately.
**Leila Benn Harris** Leila Benn Harris (born 1983) is a British actress and soprano singer. She trained at Arts Educational School in London and graduated with a BA in Musical Theatre. Upon graduation, she was cast in the lead role of Carmen in the No.1 National Tour of Fame. She then made her West-End debut in the s...
null
Spočítej: 6 + 6 = ?
6 + 6 = 12
null
What is 22 - 4?
22 - 4 = 18
null
null
null
null
Yelahanka Yalahanka is a suburb and Taluk of Bangalore Urban district in the Indian state of Karnataka. One of the zones of BBMP. It is the oldest part of present Municipal Bengaluru (Bangalore) city and is in the north of the city. It is Nadaprabhu Kempegowda I, of the Yelahanka Prabhu clans, who laid the foundation ...
null
null
null
Johann Simon von Kerner Johann Simon von Kerner (25 February 1755 Kirchheim unter Teck , Baden-Württemberg – 13 June 1830 Stuttgart) was a German botanist and botanical illustrator, notable for his illustrations in Hortus sempervirens. Hortus sempervirens: exhibens icones plantarum selectiorum quotquot ad vivorum exem...
Spočítej: 15 + 12 = ?
15 + 12 = 27
null
null
null
null
Funkin' for Jamaica 'Funkin' For Jamaica je disco/funk/jazzový singl amerického jazzového trumpetisty Toma Browna. Singl je z jeho druhého alba, "Love Approach". Vokálně se na písni podílela i zpěvačka Tonni Smithová. Song se dostal na #1 příčku Billboard R&B hitparády a zůstal tam po dobu jednoho měsíce. "Funkin' for...
null
null
null
Jiří Vorlíček Jiří Vorlíček (* 24. října 1944 Havlíčkův Brod) je český lékař, přední onkolog. Profesní kariéra V letech 2008–2014 byl ředitelem brněnského Masarykova onkologického ústavu a předsedou České onkologické společnosti ČLS JEP. V minulosti byl přednostou Interní hematoonkologické kliniky, společného pracoviš...
null
null
null
Sumo at the 2009 World Games – Women's heavyweight The women's heavyweight competition in sumo at the 2009 World Games took place on 17 July 2009 at the Kaohsiung Senior High School Gymnasium in Kaohsiung, Taiwan. Competition format A total of 16 athletes entered the competition. They fought in the cup system with rep...
Implementuj v Pythonu chunk list.
```python def chunked(xs, n): return [xs[i:i+n] for i in range(0, len(xs), n)] ```
null
Implement `strip_ws` in Python (odstraní whitespace).
```python def strip_ws(s: str) -> str: return " ".join(s.split()) ```
null
null
null
null
From Across the Street From Across the Street is the sixth stand-up comedy album by Doug Stanhope, released on November 24, 2009 by Stand Up! Records. It was recorded live on August 11, 2009 at Level 5 at City Stage in Wilmington, North Carolina. Track listing "Funny Thing About Child Porn" - 1:18 "Blog This!" - 3:14 ...
Create a web page using HTML, CSS and JavaScript that displays a user's full name.
const fullName = "John Doe";
<!DOCTYPE html> <html> <head> <title>My First Webpage</title> </head> <body> <h1>My Full Name</h1> <p>My full name is <span id="name">John Doe</span>.</p> <script> const fullName = "John Doe"; document.getElementById('name').innerHTML = fullName; </script> </body> </html>
null
Write a Python program to find the closest number in a given array to a given number.
Array: [3, 6, 9, 12, 15], Number: 10
def closest_number(nums, number): min_diff = abs(nums[0] - number) min_num = nums[0] for num in nums: min_diff_temp = abs(num - number) if min_diff_temp < min_diff: min_diff = min_diff_temp min_num = num return min_num
null
Using Python, write a function to format a given date.
Date: "2021-02-14" Format: "dd/mm/yyyy"
def format_date(date, date_format): date = date.split('-') day = date[2] month = date[1] year = date[0] if date_format == "dd/mm/yyyy": formatted_date = day + "/" + month + "/" + year return formatted_date
null
Parse this string to extract the integer value.
value = 'The integer value is 12'
import re value = 'The integer value is 12' m = re.search(r'\d+', value) print(int(m.group(0)))
null
Stručně shrň článek o tématu „People's Choice“ a uveď hlavní fakta.
**People's Choice** The People's Choice je americká funková skupina založená v roce 1971 ve Philadelphii Frankem Brunsonem. Jejich největšími hity se staly především instrumentální kousky. Kapelníci Frank Brunson - klávesy, vokály David Thomson - bicí Darnell Jordan - kytara Johnnie Hightower - kytara Stanley Thomas -...
null
Write an SQL query to find the number of employees working in a company with a salary over 50000.
SELECT COUNT(*) FROM employees WHERE salary > 50000;
null
null
null
null
Neocoenyra fulleborni Neocoenyra fulleborni is a butterfly in the family Nymphalidae. It is found in southern Tanzania. The habitat consists of submontane and montane grassland and shrubland at altitudes between 1,500 and 1,800 meters. References Satyrini Butterflies described in 1903 Endemic fauna of Tanzania Butterf...
Spočítej: 28 + 2 = ?
28 + 2 = 30
null
Suggest an optimisation algorithm for a minimisation problem
A suitable optimisation algorithm for a minimisation problem is Gradient Descent. Gradient Descent works by calculating the gradient of the cost function with respect to the input variables. This gradient is then used to update the input variables in order to reduce the cost. The process is repeated until an optimum va...
null
Explain the use of regular expressions.
Regular expressions (also known as regex or regexp) are a powerful tool for matching patterns of text. They are commonly used for validating and extracting information from data, as well as for transforming and manipulating text. Regular expression can also be used to efficiently search, edit, and manipulate text.
null
Suggest a JavaScript code to generate a random alphanumeric string of 8 characters.
let randomString = Math.random().toString(36).substring(2, 10); console.log(randomString);
null
null
null
null
Per Lodenius Per Lodenius (born February 28, 1966 in Norrtälje) is a Swedish politician who was an MP for the Centre Party from 2006 to 2021. He is an educated Swedish teacher, and in the early 1990s, he was self-employed as a freelance dance educator. He was elected to the Center Party in Stockholm County constituenc...
null
null
null
Jillianne Code Jillianne Reay Code (born 1976) is a Canadian researcher and learning scientist. She is an associate professor in the faculty of Education at the University of British Columbia and director of the Assessment for Learning in Immersion and Virtual Environments (ALIVE) research lab. In addition to her acad...