Skip to content

Instantly share code, notes, and snippets.

- header
height 100px
| logo
align start
@ logo.md
| menu
align end
@ menu.md
@incompl
incompl / mq.js
Last active August 29, 2015 14:02
microquery
var $ = function(selector, context) {
if (context === undefined) {
context = document;
}
var nl = context.querySelectorAll(selector);
return Array.prototype.slice.call(nl);
};
// gregParseInt - It's Less Bad™
function gregParseInt(x, y) {
if (y === undefined) {
y = 10;
}
return parseInt(x, y);
}
@incompl
incompl / gist:1048678071ecfb280a5f
Last active January 4, 2021 18:54
The correct meta viewport tag to use for everything, please don't disable scaling thanks!
<meta name="viewport" content="width=device-width">
var Egg = require('egg.js');
Egg.publicMethod();
var Person = require('ConstructorExample.js');
var greg = new Person('Greg');
  • 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

(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)
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
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
options.username = 'greg';
options.password = 'foo';
});