Skip to content

Instantly share code, notes, and snippets.


Gat Manuel Gatix

  • Montreal, Canada
  • Twitter @Gatix
View GitHub Profile
View configurator-keymap.json
"header": {
"Name": "MDErgo1",
"Layout": "Default",
"Base": "Blank",
"Version": "0.1",
"Author": "HaaTa (Jacob Alexander) 2015",
"KLL": "0.3c",
"Date": "2015-09-12",
"Generator": "KIICONF 0.2"

Keybase proof

I hereby claim:

  • I am gatix on github.
  • I am gatix ( on keybase.
  • I have a public key ASDdgtAwsCRalT3lTz4g3uCZqhJ2uK2xyrnuo5_eam0W-wo

To claim this, I am signing this object:

Gatix / inline_svg.rb
Last active Jan 3, 2016
Inline SVG helper
View inline_svg.rb
def inline_svg(path)
real_path = path
real_path = File.join(images_dir, real_path) unless real_path.start_with?('/')
full_path = File.join(source_dir, real_path)
file =, "rb")
Gatix / gist:4134017
Created Nov 23, 2012
Image cropping
View gist:4134017
// requires that the browser have <canvas> element support.
var imageCrop = function(source, x, y, width, height) {
var cvs = document.createElement('canvas');
var ctx = cvs.getContext('2d');
cvs.width = width;
cvs.height = height;