Things it does:
- a tooltip on hover
- hide on mouseout
- hide if you hover the tip itself
- unobtruscive javascurpt
Configuration:
class ApplicationController < ActionController::Base | |
rescue_from StandardError, with: :handle_exception | |
def squeak(*args) | |
SqueakyMailer.notification(*args).deliver | |
end | |
def handle_exception(e) | |
squeak( | |
message: "Error: #{e.message}", |
#!/usr/bin/env ruby | |
# From: http://ngauthier.com/2014/06/scraping-the-web-with-ruby.html | |
require 'capybara' | |
require 'capybara/poltergeist' | |
require 'csv' | |
require 'gdbm' | |
class NickBot | |
include Capybara::DSL |
#!/usr/bin/env ruby | |
require_relative '../config/environment' | |
Bundler.require :bot | |
name = ARGV[1] | |
csv = "#{name}.csv" | |
bot = Bink.new csv | |
command = ARGV[0] |
module Reportable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Chain on a scope and specify the fields to extract. | |
# Example: | |
# User.enabled.report %{ | |
# :email_opt_in, | |
# 'created_at as sign_up_date' | |
# } |
<!doctype html> | |
<html> | |
<head> | |
<title>Backbone Scaffold</title> | |
<script src="http://code.jquery.com/jquery-2.0.3.js"></script> | |
<script src="http://underscorejs.org/underscore.js"></script> | |
<script src="http://backbonejs.org/backbone.js"></script> | |
<script> | |
$(function() { | |
var Things = Backbone.Collection.extend({}) |
$ brew doctor | |
Warning: Your file-system on / appears to be CaSe SeNsItIvE. | |
Homebrew is less tested with that - don't worry but please report issues. | |
Warning: "config" scripts exist outside your system or Homebrew directories. | |
`./configure` scripts often look for *-config scripts to determine if | |
software packages are installed, and what additional flags to use when | |
compiling and linking. | |
Having additional scripts in your path can confuse software installed via |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Nick's Style Scratchpad</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
} | |
.editor, #output { |
Installs ruby-2.0.0-p0 on ubuntu via checkinstall so it's in your package manager and you can remove it.
Quick install:
curl -L https://gist.github.com/ngauthier/5039249/raw/1868bf4714052b40e2bb7fdf3f40fbeb5d730bca/ruby-2-install-ubuntu.sh | bash -s
#!/bin/bash | |
wget -c http://virtualization.modern.ie/vhd/IEKitV1_Final/VirtualBox/Linux/{IE6_WinXP,IE7_Vista,IE8_Win7,IE9_Win7,IE10_Win8}.zip |