Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
| # NOTE - I do not support this code anymore. | |
| # You should use plambjet version @ https://gist.github.com/pjambet/5229322 | |
| # | |
| # Based on https://gist.github.com/1182136 and https://gist.github.com/1586384 | |
| # Make the will_paginate generate markup for Zurb Foundation | |
| # Put this in config/initializers/foundation_paginate.rb | |
| module WillPaginate | |
| module ViewHelpers | |
| class LinkRenderer < LinkRendererBase | |
| protected |
| { | |
| "@context": { | |
| "rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
| "schema": "http://schema.org/", | |
| "xsd": "http://www.w3.org/2001/XMLSchema#", | |
| "rdfs:subClassOf": { | |
| "@type": "@id" | |
| }, | |
| "name": "rdfs:label", | |
| "description": "rdfs:comment", |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?
| .factory("injectCSS", ['$q', '$http', 'MeasurementsService', function($q, $http, MeasurementsService){ | |
| var injectCSS = {}; | |
| var createLink = function(id, url) { | |
| var link = document.createElement('link'); | |
| link.id = id; | |
| link.rel = "stylesheet"; | |
| link.type = "text/css"; | |
| link.href = url; | |
| return link; |
| // A Mobx friendly utility to ease the late dereference of | |
| // objects' observable properties. | |
| // Using Ramda here but you can use your own version of these functions | |
| import { path, init, last, mapObjIndexed } from 'ramda'; | |
| // This is the supporting class, see `late` and `deref` later for actual use | |
| class LateDeref { | |
| constructor(obj, field) { | |
| this.obj = obj; |