Skip to content

Instantly share code, notes, and snippets.

View exortech's full-sized avatar

exortech exortech

View GitHub Profile
@exortech
exortech / keybase.md
Created September 26, 2014 16:38
keybase.md

Keybase proof

I hereby claim:

  • I am exortech on github.
  • I am exortech (https://keybase.io/exortech) on keybase.
  • I have a public key whose fingerprint is 08B7 0513 C42B B044 AB5F FCA7 F772 088D C463 3700

To claim this, I am signing this object:

@exortech
exortech / parser.js
Created April 4, 2012 22:15
Naive fix for "Cannot call method 'charAt' of undefined" in Less.css
function getInput(e, env) {
if (e.filename && env.filename && (e.filename !== env.filename)) {
var baseFilename = basename(e.filename);
for (f in parser.imports.contents) {
if (parser.imports.contents.hasOwnProperty(f) && f.indexOf(baseFilename) >= 0) {
return parser.imports.contents[f];
}
}
return parser.imports.contents[baseFilename];
} else {