This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'benchmark' | |
# Solution 1 | |
def solution_1(list_of_inputs) | |
list_of_inputs | |
.sort { |x, y| x<=>y } | |
.first(3) | |
.reduce(&:*) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule URL do | |
def to_query(input, namespace) do | |
Enum.map(input, fn({key, value}) -> parse("#{namespace}[#{key}]",value)end) | |
|> Enum.join("&") | |
end | |
def to_query(input) do | |
Enum.map(input, fn({key, value}) -> parse(key,value) end) | |
|> Enum.join("&") | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function curl_download($Url){ | |
$ch = curl_init(); | |
curl_setopt($ch, CURLOPT_URL, $Url); | |
curl_setopt($ch, CURLOPT_REFERER, "http://www.example.org/yay.htm"); | |
curl_setopt($ch, CURLOPT_USERAGENT, "MozillaXYZ/1.0"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/bin/make all-recursive | |
Making all in include | |
Making all in libxml | |
make[3]: Nothing to be done for `all'. | |
make[3]: Nothing to be done for `all-am'. | |
Making all in . | |
CC entities.lo | |
CC encoding.lo | |
CC SAX.lo | |
CC error.lo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<a href="">Scopri<span></span></a> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Tests</title> | |
<style> | |
.badge { | |
background: green; | |
width: 200px; |