Skip to content

Instantly share code, notes, and snippets.

View cnromaine's full-sized avatar

cn cnromaine

  • cn romaine & associates
View GitHub Profile
@bobbygrace
bobbygrace / trello-css-guide.md
Last active April 2, 2024 20:18
Trello CSS Guide

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


Trello CSS Guide

“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?

@imjasonh
imjasonh / markdown.css
Last active February 12, 2024 17:18
Render Markdown as unrendered Markdown (see http://jsbin.com/huwosomawo)
* {
font-size: 12pt;
font-family: monospace;
font-weight: normal;
font-style: normal;
text-decoration: none;
color: black;
cursor: default;
}
var keywords = new[] { "GET", "DELETE", "PATCH", "POST" };
var document =new HtmlDocument();
document .LoadHtml(
(new HtmlWeb()
.Load("https://developer.github.com/v3/")
.DocumentNode.SelectSingleNode("/html[1]/body[1]/div[3]/div[2]/div[1]").ChildNodes
.Select(cn => cn.InnerHtml)
.Where(cn => !string.IsNullOrEmpty(cn.Trim()))
.First()));
@scottheckel
scottheckel / parsehtmlwithcssandfizzlerex.cs
Created November 21, 2012 04:19
Parse HTML with CSS selectors using Fizzler and FizzlerEx
using Fizzler.Systems.HtmlAgilityPack;
using HtmlAgilityPack;
using System.Collections.Generic;
using System.Linq;
var web = new HtmlWeb();
var docNode = web.Load("http://dsc.discovery.com/tv-schedules/daily.html");
var shows =
from showRow in docNode.QuerySelectorAll("div.contentFrame tr")
select new