Skip to content

Instantly share code, notes, and snippets.

View ActionScripted's full-sized avatar

Michael Thompson ActionScripted

View GitHub Profile
@ActionScripted
ActionScripted / gist:6719043
Last active December 24, 2015 00:49
Custom, colored status bar example that changes colors depending the file format (in this case, "dos" is bad).
" Colors taken from Solarized color scheme
let s:solr_grays = "ctermfg=240 ctermbg=235 guifg=#586E75 guibg=#073642"
let s:solr_warn = "ctermfg=230 ctermbg=160 guifg=#FDF6E3 guibg=#DC322F"
exe 'hi! User1 ' . s:solr_grays
exe 'hi! User2 ' . s:solr_grays
exe 'hi! User3 ' . s:solr_grays
exe 'hi! User4 ' . s:solr_grays
exe 'hi! User5 ' . s:solr_grays
exe 'hi! User6 ' . s:solr_grays
# Make sure we've got jQuery and curb explosions if we don't
if jQuery?
$ = jQuery
$ ->
$('h1').animate {
padding: '50px'
}, 1000, (e) ->
alert 'asdf'
true
// Generated by CoffeeScript 1.6.3
/*
first.js -- kicking coffee's tires w/jquery
*/
(function() {
var $;
if (typeof jQuery !== "undefined" && jQuery !== null) {
@ActionScripted
ActionScripted / appNapBits.sh
Created December 4, 2013 13:27
How to inspect, disable and revert manual overrides for App Nap in Mavericks
# to find registered app domains:
defaults domains
# to check current setting or test if key exists
defaults read com.apple.Terminal NSAppSleepDisabled
# to disable app nap
defaults write com.apple.Terminal NSAppSleepDisabled -bool YES
# to flip the boolean (turn App Nap back on)
@ActionScripted
ActionScripted / simple-grid.html
Created June 4, 2014 18:35
Simple Responsive Grid
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>TODO: Page Title</title>
<meta name="description" content="TODO: Page Description">
Installing MariaDB/MySQL system tables in '/usr/local/var/mysql' ...
140807 15:46:40 [Note] InnoDB: Using mutexes to ref count buffer pool pages
140807 15:46:40 [Note] InnoDB: The InnoDB memory heap is disabled
140807 15:46:40 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
140807 15:46:40 [Note] InnoDB: Compressed tables use zlib 1.2.5
140807 15:46:40 [Note] InnoDB: Using CPU crc32 instructions
140807 15:46:40 [Note] InnoDB: Initializing buffer pool, size = 128.0M
140807 15:46:40 [Note] InnoDB: Completed initialization of buffer pool
140807 15:46:40 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
140807 15:46:40 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
mogwai:~ michael$ brew doctor
Error: Failed to import: ruby20
wrong number of arguments (3 for 0..1)
Your system is ready to brew.
mogwai:~ michael$ brew config
HOMEBREW_VERSION: 0.9.5
ORIGIN: https://github.com/Homebrew/homebrew.git
HEAD: f52c5f13b1b7a231fdafd7fce1ff07f42daab205
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@ActionScripted
ActionScripted / gitignore-local
Created June 10, 2015 17:51
Git Ignore - Local
# File System
.DS_Store
.Trashes
._*
[Tt]humbs.db
# Vim
*.s[a-w][a-z]
*.un~
*~
@ActionScripted
ActionScripted / css_regression_testing.md
Created June 23, 2017 03:37 — forked from cvrebert/css_regression_testing.md
Survey of screenshot-based CSS testing tools

Currently considering https://github.com/webdriverio/webdrivercss


Core Goals:

  • Can test in up-to-date versions of all major browsers
  • Can test on up-to-date versions of all major OSes
  • Can test in IE9 (because Bootstrap v4 will support IE9+)
  • Don't want to have to setup/maintain our own cluster of VMs running all the necessary OSes (and all the versions of Windows)
  • Workflow for management of reference/baseline/norm screenshots