Skip to content

Instantly share code, notes, and snippets.

@kentcdodds
kentcdodds / styles.css
Created August 23, 2016 16:14
Editor adjustments for workshops/talks
/* workshop/talk adjustments */
.list-group .icon::before,
.list-tree .icon::before,
.list-tree.has-collapsable-children .list-nested-item.collapsed > .list-item::before,
.list-tree.has-collapsable-children .list-nested-item > .list-item::before,
.tree-view {
font-size: 21px;
min-width: 21px;
}
@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@sjparsons
sjparsons / dump-all-databases.sh
Created July 2, 2012 19:29
Backup each MySQL database on a MySQL server into a separate file.
#!/bin/bash
# dump-all-databases.sh
#
#
# Backup each MySQL database on a MySQL server into a separate file.
# Optionally files can be gzipped (dbname.sql.gz)
#
# Usage: dump_all_databases [ -u username -o output_dir -h hostname -x exclude -z ]
#
# -u username to connect MySQL server
@markjaquith
markjaquith / disable-plugins-when-doing-local-dev.php
Created June 24, 2011 10:24
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/