A Pen by Vishal Sakaria on CodePen.
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
{ | |
"options":[ | |
{ | |
"selected":true, | |
"type":"PRICE", | |
"name":"Precio", | |
"orders":[ | |
{ | |
"name":"ASC", | |
"type":"ASC", |
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
export M2_HOME=/usr/local/apache-maven-3.3.1 | |
export M2=$M2_HOME/bin | |
export JAVA_HOME=$(/usr/libexec/java_home -v 1.8) | |
export CLOSURE_COMPILER_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-compiler" | |
export CLOSURE_LIBRARY_HOME="/Users/vishalsakaria/code/ose/google-closure/app/bower_components/closure-library" | |
export PATH=$M2_HOME/bin:$PATH | |
export PATH=$JAVA_HOME/bin:$PATH | |
export PATH=/usr/local/apache-maven-3.3.1/bin:$PATH |
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
''' | |
Spider for IMDb | |
- Retrieve most popular movies & TV series with rating of 8.0 and above | |
- Crawl next pages recursively | |
''' | |
from scrapy.contrib.spiders import CrawlSpider, Rule | |
from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor | |
from scrapy.selector import Selector |
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
https://babs-ui.qa1.elab.lastminute.com/babs-ui/responsive/paymentPage/216CA5140A0E0154017F43CC3AB97EE0?id=216CA5140A0E0154017F43CC3AB97EE0&handback_url=/?skin=engb.lastminute.com&configId=S72722479 |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<!-- Always force latest IE rendering engine (even in intranet) & Chrome Frame | |
Remove this if you use the .htaccess --> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title></title> |
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
Show hidden characters
{ | |
// This is the ruby default | |
"tab_size": 2, | |
// Set to true to insert spaces when tab is pressed | |
"translate_tabs_to_spaces": true, | |
// This shows all your whitespace, including spaces and tabs | |
// helps keep code clean and properly indented! | |
"draw_white_space": "all", |
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/env ruby | |
def each(array) | |
array.length.times do |i| | |
yield array[i] | |
end | |
end | |
def select(array) | |
result = [] |
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/env ruby | |
class Manager | |
def pick_a_team(squad) | |
team = Team.new | |
# get the best players for every position from the squad | |
# and add them to the team | |
# for every position (goalkeeper etc) | |
# get the best player(s) from the squad |
NewerOlder