Skip to content

Instantly share code, notes, and snippets.

View kroehre's full-sized avatar
:shipit:

Keith Roehrenbeck kroehre

:shipit:
View GitHub Profile
@kroehre
kroehre / gnome-shell.css
Created May 3, 2018 08:37
gemini tweaks
@import url("/home/gemini/.themes/Flat-Remix/gnome-shell/gnome-shell.css");
stage {
font-family: Source Sans Pro, Cantarell, Sans-Serif;
font-size: 22pt;
color: #5c616c;
}
/* TOP BAR */
#panelBox {
@kroehre
kroehre / bookmarklet
Last active September 21, 2017 22:25
Github side-by-side code and specs
javascript:(!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){var n=(t=t||z).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=ne.type(e);return"function"!==n&&!ne.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function i(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}function o(e,t,n){return ne.isFunction(t)?ne.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?ne.grep(e,function(e){return e===t!==n}):"string"!=typeof t?ne.grep(e,function(e){return Q.call(t,e)>-1!==n}):de.test(t)?ne.filter(t,e,n):(t=ne.filter(t,e),ne.grep(e,function(e){return Q.call(t,e)>-1!==n&&1===e.nodeType}))}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;)
@kroehre
kroehre / keybase.md
Created April 1, 2016 21:55
keybase.md

Keybase proof

I hereby claim:

  • I am kroehre on github.
  • I am kroehre (https://keybase.io/kroehre) on keybase.
  • I have a public key whose fingerprint is 67F8 9BC7 7860 CA93 8A2D 685E F9D9 7CC4 E6E5 6A9A

To claim this, I am signing this object:

RSpec::Matchers.define :match_hash do |expected|
errors = []
match do |actual|
errors = match_hash(expected, actual)
errors.empty?
end
description do |actual|
"matches hash #{expected}"
@kroehre
kroehre / conform_to_schema.rb
Created March 11, 2015 20:55
xsd rspec matcher
require 'rspec/expectations'
XSD_LOCATION = "spec/data/xsd"
RSpec::Matchers.define :conform_to_schema do |xst_file|
errors = []
match do |actual|
errors = validate_xml(actual, "#{XSD_LOCATION}/#{xst_file}.xsd")
errors.empty?