Avoid console errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
Avoid console errors in browsers that lack a console.
Excerpted from HTML5 boilerplate:
| <!DOCTYPE> | |
| <html> | |
| <head> | |
| <title>Dissecting Gmail's Email Attachments - Dropping Files</title> | |
| <style> | |
| .msg { | |
| display: none | |
| } | |
| .dragging .msg { |
| <?php | |
| /** | |
| * @author Marcelius 'mardagz' Dagpin | |
| * @name Beautify JSON | |
| * @copyright 2012 | |
| * @uses / | |
| * $json_array = array( | |
| * "name" => "mardagz", | |
| * "gender" => "lalaki po akow hihihi", | |
| * "age" => 40 |
| /** | |
| * iOS 6 style switch checkboxes | |
| * by Lea Verou http://lea.verou.me | |
| */ | |
| :root input[type="checkbox"] { /* :root here acting as a filter for older browsers */ | |
| position: absolute; | |
| opacity: 0; | |
| } |
MIT License
Copyright (c) [year] [fullname]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
A Dashing widget for displaying the number of visitors to your website over a specified timeframe, as reported by Google Analytics
| #!/bin/bash | |
| echo "Please see an updated version of this script available at " | |
| echo "https://github.com/codeship/scripts/blob/master/packages/elasticsearch.sh" | |
| VERSION="1.1.1" | |
| PORT="9333" | |
| PWD=`pwd` | |
| mkdir -p ~/elasticsearch/ |
| # put this in your staging.rb file. Obviously you'll need more config than this it's just an example. | |
| Rails.application.configure do | |
| config.action_mailer.preview_path ||= defined?(Rails.root) ? "#{Rails.root}/test/mailers/previews" : nil | |
| config.autoload_paths += [config.action_mailer.preview_path] | |
| routes.append do | |
| get '/rails/mailers' => "rails/mailers#index" | |
| get '/rails/mailers/*path' => "rails/mailers#preview" | |
| end |