Skip to content

Instantly share code, notes, and snippets.

View shaper's full-sized avatar

Walter Korman shaper

View GitHub Profile
@shaper
shaper / gist:85639f5c8b49b149dc415c48d429f0ac
Created January 4, 2018 19:45
suggestion-element.js diffs
13c13,16
< :host {
---
> x-toast[suggestion-container] {
> background-color: white;
> }
> suggestions {
17,18d19
< background-color: white;
< padding: 0 6px;
@shaper
shaper / gist:6969f80b9ec19510c2e57970e69b97c0
Created September 5, 2017 23:33
Snapshot static pages
#!/usr/bin/ruby
ARGF.each_line do |line|
url, filename = line.split
filename = "#{filename.downcase}.html"
puts "Snapshotting [url=#{url}, filename=#{filename}]."
command = "./third_party/catapult/telemetry/bin/snap_page --browser=system --url='#{url}' --snapshot-path=#{filename}"
system(command)
end
@shaper
shaper / exclude-expectations.rb
Created March 14, 2017 22:21
Chromium exclude expectations
#!/usr/bin/ruby
require 'set'
if ARGV.length < 2
puts "Usage: exclude-expectations.rb <path to file with test names> <path to TestExpectations file>"
exit
end
test_names = Set.new