Skip to content

Instantly share code, notes, and snippets.

View pfulton's full-sized avatar

Patrick Fulton pfulton

View GitHub Profile
@pfulton
pfulton / ublock-twitterneue.txt
Last active July 22, 2019 21:22 — forked from beep/ublock-twitterneue.txt
uBlock Origin rules for new twitter website
# hides engage-y modules from the rightmost sidebar
twitter.com##.r-m611by > .r-t23y2h
# hides promoted tweets
twitter.com##article :has(svg[d="M20.75 2H3.25C2.007 2 1 3.007 1 4.25v15.5C1 20.993 2.007 22 3.25 22h17.5c1.243 0 2.25-1.007 2.25-2.25V4.25C23 3.007 21.993 2 20.75 2zM17.5 13.504c0 .483-.392.875-.875.875s-.875-.393-.875-.876V9.967l-7.547 7.546c-.17.17-.395.256-.62.256s-.447-.086-.618-.257c-.342-.342-.342-.896 0-1.237l7.547-7.547h-3.54c-.482 0-.874-.393-.874-.876s.392-.875.875-.875h5.65c.483 0 .875.39.875.874v5.65z"])
# hides likes from other users in the main feed
twitter.com##article :has(svg[d="M12 21.638h-.014C9.403 21.59 1.95 14.856 1.95 8.478c0-3.064 2.525-5.754 5.403-5.754 2.29 0 3.83 1.58 4.646 2.73.814-1.148 2.354-2.73 4.645-2.73 2.88 0 5.404 2.69 5.404 5.755 0 6.376-7.454 13.11-10.037 13.157H12z"]

Keybase proof

I hereby claim:

  • I am pfulton on github.
  • I am pfulton (https://keybase.io/pfulton) on keybase.
  • I have a public key ASCcLPnk5dZFhLv9hgkhojeth8TvZoqfznRSLeqzLPt1hQo

To claim this, I am signing this object:

@pfulton
pfulton / SassMeister-input.scss
Last active January 6, 2016 18:41
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
@mixin bg-color($color) {
background-color: $color;
}
.my-thing {
&.theme-red {
@pfulton
pfulton / question.hbs
Created November 24, 2015 15:06
Limiting results from a "local" JSON file in Ember. In my 2.5 weeks of fast Ember learning, I found a quick and (probably) dirty way to limit results from this JSON file that I'm working with.
{{!-- component --}}
{{#each questions as |question|}}
<li class="question">
<header class="question-header">
<div class="question-status">
{{#if question.correct}}
<span class="icon-correct"></span>
<span class="visually-hidden">correct</span>
{{else}}
@pfulton
pfulton / SassMeister-input.scss
Created September 14, 2015 19:18
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
@mixin icon-base {
background-size: contain;
display: inline-block;
height: 18px;
width: 18px;
@pfulton
pfulton / pattern-library-helper.hbs
Last active August 29, 2015 14:05
gray-matter + Assemble to output front matter in pattern library partials
/**
* Handlebars Helpers for Pattern Lab
* Copyright (c) 2014 Jon Schlinkert
* Licensed under the MIT License (MIT).
*/
'use strict';
var path = require('path');
var file = require('fs-utils');
var _ = require('lodash');
@pfulton
pfulton / SassMeister-input-HTML.haml
Created March 26, 2014 17:50
Generated by SassMeister.com.
.container
%h1 Better Media Queries in Sass
%section.primary
%h2 Primary Content Here!
%p Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse adipiscing lacinia mi eget aliquet. Nunc non hendrerit lectus. Vestibulum nulla quam, consectetur nec condimentum eget, adipiscing lacinia dui. Suspendisse faucibus semper diam, id accumsan nunc lobortis ac. Morbi ut luctus eros, et posuere mauris. Mauris aliquam, est in bibendum lacinia, nisi diam fringilla eros, ac porttitor nisi massa sed lorem.
%p Ut vel est nisl. Donec laoreet laoreet felis, ac imperdiet ligula faucibus eget. Vivamus nec sem ornare, cursus nisi eu, molestie nisi. Ut pretium arcu in tincidunt cursus. Proin vehicula magna urna, eu auctor nisl rhoncus viverra. Phasellus eu justo non urna sollicitudin aliquam.
%h3 Yet Another Heading
%p Nullam consectetur et nisi at aliquam. Nullam tempor lacinia aliquet. Aenean luctus ipsum a congue interdum. Etiam rutrum lorem at magna dignissim, non eleifend libero hendrer
@pfulton
pfulton / SassMeister-input.scss
Created October 24, 2013 17:47
An example of compiling options available in Sass & Compass
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@import "compass";
.content-wrap {
width: 95%;
margin-left: 2.5%;
@pfulton
pfulton / SassMeister-input.scss
Created October 24, 2013 15:15
An example of using the placeholder selector and @extend in Sass & Compass
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
%module {
background: #fff;
color: #444;
}
@pfulton
pfulton / SassMeister-input.scss
Created October 24, 2013 15:11
An example of using @extend in Sass & Compass.
// ----
// Sass (v3.3.0.rc.1)
// Compass (v0.13.alpha.7)
// ----
@import "compass";
.module {
background: #fff;
color: #444;