- version 3.6
Check those constraints:
$this->anything()
| {% paginate collection.products by 20 %} | |
| <!-- the top of your collections.liquid --> | |
| <!-- START PRODUCTS --> | |
| {% for product in collection.products %} | |
| <!-- START PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> | |
| <div class="product" id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
| {% include 'product' with product %} | |
| </div> | |
| <!-- END PRODUCT {{ forloop.index | plus:paginate.current_offset }} --> |
| function slugify(text) | |
| { | |
| return text.toString().toLowerCase() | |
| .replace(/\s+/g, '-') // Replace spaces with - | |
| .replace(/[^\w\-]+/g, '') // Remove all non-word chars | |
| .replace(/\-\-+/g, '-') // Replace multiple - with single - | |
| .replace(/^-+/, '') // Trim - from start of text | |
| .replace(/-+$/, ''); // Trim - from end of text | |
| } |
| {% paginate collection.products by 20 %} | |
| <ul class="collection-matrix"> | |
| {% for product in collection.products %} | |
| <li id="product-{{ forloop.index | plus:paginate.current_offset }}"> | |
| {% include 'product' with product %} | |
| </li> | |
| {% endfor %} | |
| <li class="top"><a href="#collectionpage">Back to Top</a> ↑</li> | |
| {% if paginate.next %} | |
| <li class="more">↓ <a href="{{ paginate.next.url }}">More</a></li> |
| 1) Open known_hosts file and look for the invalid host | |
| nano ~/.ssh/known_hosts | |
| 2) Remove the line that has the invalid host. Should be the same host in your .git/config of your repo | |
| ssh-keygen -R [dev.blahblah.com]:1234 | |
| 3) Pull from repo | |
| git pull | |
| 4) You should see something similar to this. Answer 'yes' when asked. |
| ;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY | |
| ;by doppelganger (doppelheathen@gmail.com) | |
| ;This file is provided for your own use as-is. It will require the character rom data | |
| ;and an iNES file header to get it to work. | |
| ;There are so many people I have to thank for this, that taking all the credit for | |
| ;myself would be an unforgivable act of arrogance. Without their help this would | |
| ;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into | |
| ;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no |
| <?php | |
| class PhotoApiTest extends TestCase { | |
| public function setUp() | |
| { | |
| parent::setUp(); | |
| Route::enableFilters(); |
While the following structure is not an absolute requirement or enforced by the tools, it is a recommendation based on what the JavaScript and in particular Node community at large have been following by convention.
Beyond a suggested structure, no tooling recommendations, or sub-module structure is outlined here.
lib/ is intended for code that can run as-issrc/ is intended for code that needs to be manipulated before it can be used| /** Returns a simple relative time string | |
| * @example | |
| * nicetime(new Date()-1e4) == 'Just now' // within the last minute | |
| * nicetime(Date.now()-1e6) == '16m' // within the last hour | |
| * nicetime(Date.now()-1e7) == '2h' // within the last hour | |
| * nicetime('Dec 31, 2014') == '4d' // within the last 7 days | |
| * nicetime('Dec 25, 2014') == 'Dec 25' // over 7 days ago gives a simple date | |
| * nicetime('July 4, 2014') == 'Jul 4, 2014' // over half a year ago adds the year | |
| */ | |
| function nicetime(text) { |