Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset=utf-8 /> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <h2>Original CSS</h2> | |
| <style style="display: block; white-space: pre; font-family: monospace"> | |
| h2 { margin:0; } |
| @import "compass/css3/images"; | |
| // CSS-only multi-line ellipsis with generated content | |
| // yields `position:relative`, so remember to declare an eventual `position:absolute/fixed` *after* including this mixin | |
| @mixin limitLines( | |
| $maxLinesPortrait, // Mandatory: The number of lines after which the clipping should take action. | |
| $maxLinesLandscape: $maxLinesPortrait, // You may provide a different line limit for landscape orientation. | |
| // Note that 'portrait' is our default orientation. However, if you omit $maxLinesLandscape, | |
| // the value of $maxLinesPortrait is used for whatever orientation (that is, without a media query). |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # encoding: utf-8 | |
| xml.instruct! | |
| # Drop this file in your source directory | |
| # | |
| # Uses the builder gem. | |
| # Add | |
| # gem 'builder', '~> 2.0' | |
| # to the Gemfile, and run builder install | |
| # |
| <% pages = sitemap.resources.find_all{|p| p.source_file.match(/\.html/) } %> | |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
| <% pages.each do |p| %> | |
| <url> | |
| <loc>http://youdomain.com/<%=p.destination_path.gsub('/index.html','')%></loc> | |
| <priority>0.7</priority> | |
| </url> | |
| <% end %> | |
| </urlset> |
http://guides.rubyonrails.org/migrations.html
| /** | |
| * Masking with equilateral triangles in CSS | |
| */ | |
| body{ | |
| background: #fff; | |
| min-height: 100%; | |
| } | |
| /* |
| var parser = document.createElement('a'); | |
| parser.href = "http://example.com:3000/pathname/?search=test#hash"; | |
| parser.protocol; // => "http:" | |
| parser.hostname; // => "example.com" | |
| parser.port; // => "3000" | |
| parser.pathname; // => "/pathname/" | |
| parser.search; // => "?search=test" | |
| parser.hash; // => "#hash" | |
| parser.host; // => "example.com:3000" |
| $(function() { | |
| /* Convenience for forms or links that return HTML from a remote ajax call. | |
| The returned markup will be inserted into the element id specified. | |
| */ | |
| $('form[data-update-target]').live('ajax:success', function(evt, data) { | |
| var target = $(this).data('update-target'); | |
| $('#' + target).html(data); | |
| }); | |
| }); |