Skip to content

Instantly share code, notes, and snippets.

Greg Smith incompl

Block or report user

Report or block incompl

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:497943e8ecaae9507267
- header
height 100px
| logo
align start
@ logo.md
| menu
align end
@ menu.md
@incompl
incompl / mq.js
Last active Aug 29, 2015
microquery
View mq.js
var $ = function(selector, context) {
if (context === undefined) {
context = document;
}
var nl = context.querySelectorAll(selector);
return Array.prototype.slice.call(nl);
};
View gist:6cc9775b5ebb7574a520
// gregParseInt - It's Less Bad™
function gregParseInt(x, y) {
if (y === undefined) {
y = 10;
}
return parseInt(x, y);
}
@incompl
incompl / gist:1048678071ecfb280a5f
Last active Aug 29, 2015
The correct meta viewport tag to use for everything, please don't disable scaling thanks!
View gist:1048678071ecfb280a5f
<meta name="viewport" content="width=device-width">
View Client.js
var Egg = require('egg.js');
Egg.publicMethod();
var Person = require('ConstructorExample.js');
var greg = new Person('Greg');
View gist:9574479

Easel.io

  • High fidelity html design prototyping tool
  • Only for bootstrap
  • Can export html/css for individual components
  • Maybe not ready yet, but a good direction for these types of tools and for workflows

CSS Filters

View gist:8867389
(define (Y f)
((lambda (x) (x x))
(lambda (g)
(f (lambda args (apply (g g) args))))))
(define fac
(Y
(lambda (f)
(lambda (x)
(if (< x 2)
View gist:7896479
Greg Smith:
dogs are eggs
Pete Karl II:
"Land seals"
Greg Smith:
dogs are animals who bark, sometimes. you can’t really say that in general because some dogs who bark aren’t dogs
Pete Karl II:
Barking happens most times.
Greg Smith:
dogs are eggs, but also they lay eggs
View gist:7585741
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
options.username = 'greg';
options.password = 'foo';
});
You can’t perform that action at this time.