SQL for INSERT:
INSERT INTO geographies (type, name, geometry)
VALUES (
'Location',
'Vintage Heart Coffee',
ST_GeomFromGeoJSON('{"type": "Point", "coordinates": [30.2642, -97.7277]}')
);
-- INSERT 0 1
def random_plausible_html_tags(num=5) | |
num.times.map { [*('a'..'z')].sample(rand(6) + 1).join } | |
end |
SQL for INSERT:
INSERT INTO geographies (type, name, geometry)
VALUES (
'Location',
'Vintage Heart Coffee',
ST_GeomFromGeoJSON('{"type": "Point", "coordinates": [30.2642, -97.7277]}')
);
-- INSERT 0 1
Rails.application.routes.set. | |
map { |r| r.optimized_path[1..-1].split('/').first }. | |
uniq. | |
compact. | |
reject { |s| s.include?('*') || s.include?(':') } |
module Attrlist | |
def /(attrlist) | |
attrlist.map { |a| send(a) } | |
end | |
end | |
class Time | |
include Attrlist | |
end |
github.com##div#discussion_bucket div.form-actions div.form-actions-protip | |
github.com##div#discussion_bucket div.previewable-comment-form p.drag-and-drop | |
github.com##div#discussion_bucket p.push-more | |
github.com##div#discussion_bucket span.tabnav-right span.tabnav-widget.text | |
github.com##div#discussion_bucket div.discussion-timeline div.thread-subscription-status |
class Foo < ActiveRecord::Base | |
ALLOWED_HTML_ELEMENTS = %w[ | |
a b br blockquote code em h2 h3 hr i li ol p pre s strong sub sup u ul | |
] | |
ALLOWED_EMPTY_HTML_ELEMENTS = %w[br hr] | |
before_validation :sanitize_html | |
private |
source "https://rubygems.org/" | |
gem 'rack-fiber_pool' | |
gem 'mysql2' | |
gem 'activerecord' | |
gem 'em-synchrony' | |
gem 'em-http-request' | |
gem 'grape' | |
gem 'goliath' | |
gem 'multi_json' |
https://github.com/[yourname]
[Describe ambitions: type of work, attributes of team, what you want to learn & teach]
[in reverse chronological order, list at most 5 positions or 10 years back, whichever is fewer]
When modifying a program, or when reviewing a modification of a program, you will want to consider at least the following:
My personal user stylesheet to get rid of focus outlines on non-form elements because I don't personally need them for accessibility.
Don't ever do this in your site's stylesheet because you're putting disabled users at a disadvantage. Do put this in your own user stylesheet if you hate the focus outlines in Gmail, Google Groups and countless other web apps.
See also: http://www.outlinenone.com/
For Chrome on Mac, this goes in ~/Library/Application Support/Google/Chrome/Default/User StyleSheets/Custom.css