Skip to content

Instantly share code, notes, and snippets.

View Gatix's full-sized avatar
💭
I may be slow to respond.

Gat Manuel Gatix

💭
I may be slow to respond.
  • Montreal, Canada
  • 20:20 (UTC -04:00)
  • X @Gatix
View GitHub Profile
@Gatix
Gatix / configurator-keymap.json
Created May 20, 2017 17:29
Ergodox Infinity
{
"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 (https://keybase.io/gatix) on keybase.
  • I have a public key ASDdgtAwsCRalT3lTz4g3uCZqhJ2uK2xyrnuo5_eam0W-wo

To claim this, I am signing this object:

@Gatix
Gatix / inline_svg.rb
Last active January 3, 2016 10:59
Inline SVG helper
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 = File.open(full_path, "rb")
file.read
end
@Gatix
Gatix / gist:4134017
Created November 23, 2012 04:35
Image cropping
// 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;