Skip to content

Instantly share code, notes, and snippets.

@craigcook
craigcook / twitter-styles.css
Last active August 24, 2018 22:19
Make twitter.com tolerable with user styles.
@-moz-document domain("twitter.com") {
/* Collapse media in tweets and show an arrow to indicate their existence, but only at the top level. */
li.stream-item .has-content .AdaptiveMedia,
li.stream-item .has-cards .card2 {
display: none;
}
li.stream-item .has-content:after,
li.stream-item .has-cards:after,
li.stream-item .js-pinned .user-pinned:after {
@craigcook
craigcook / moz_custom.php
Created August 10, 2017 22:12
moz_custom.php
<?php
/*
Plugin Name: Mozilla Custom Plugins
Plugin URI: https://blog.mozilla.org
Description: Does custom things that we need
Version: .2
Author: Jeremiah Orem, Craig Cook
*/
function moz_ob_handler($buffer) {
@craigcook
craigcook / _typography.scss
Created July 14, 2017 17:19
New Pebbles type scale
// Consistent font sizes. Avoid sizing text arbitrarily and use this
// set of predefined sizes. Sizes adapt at common breakpoints, and
// there's some redundancy at smaller sizes because we don't want things
// getting too tiny.
// Usage:
// .foo { @include font-size-level1; }
@mixin font-size-huge { // For especially huge titles
@include font-size(48px);
@craigcook
craigcook / countries.txt
Created August 5, 2015 21:56
List of countries
Afghanistan
Albania
Algeria
American Samoa
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
@craigcook
craigcook / keybase.md
Created December 19, 2014 20:20
keybase proof

Keybase proof

I hereby claim:

  • I am craigcook on github.
  • I am craigcook (https://keybase.io/craigcook) on keybase.
  • I have a public key whose fingerprint is D7C2 C080 C207 C33F 4DAC E6CC 5295 CD74 282D 00B1

To claim this, I am signing this object:

@craigcook
craigcook / cornbread.txt
Created October 8, 2013 18:32
the Cook family corn bread recipe
3/4 cup corn meal
1 cup all-purpose flour
1/3 cup sugar
3 tsp. baking powder
3/4 tsp. salt
1 cup milk
1 egg, well beaten
2 tbsp. shortening, melted
Mix and sift dry ingredients together. Add other ingredients and mix well.