A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
| // Here are some variables, then a mixin and then an application of the mixin - this will only compile using Sass 3.2 | |
| //variables | |
| $XS: 12.5em; // 200px; | |
| $S: 18.75em; // 300px | |
| $SM: 35em; // 560px | |
| $M: 47.5em; // 760px | |
| $L: 63em; // 1008px | |
| $XL: 110em; // 1760px | |
| $XXL: 180em; // 2880px |
A very basic starter template with fundamental HTML5 markup -- only the basics.
Based on HTML5 Bones | http://html5bones.com
| ''' | |
| 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 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", |
| #!/usr/bin/env ruby | |
| def each(array) | |
| array.length.times do |i| | |
| yield array[i] | |
| end | |
| end | |
| def select(array) | |
| result = [] |
| #!/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 |