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: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: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 Client.js
var Egg = require('egg.js');
Egg.publicMethod();
var Person = require('ConstructorExample.js');
var greg = new Person('Greg');
@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 gist:6cc9775b5ebb7574a520
// gregParseInt - It's Less Bad™
function gregParseInt(x, y) {
if (y === undefined) {
y = 10;
}
return parseInt(x, y);
}
@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:497943e8ecaae9507267
- header
height 100px
| logo
align start
@ logo.md
| menu
align end
@ menu.md
View gist:5a470b34f56e1c88b5b8
(function (root, factory) {
if (typeof define === 'function' && define.amd) {
define(['b'], factory);
} else {
root.amdWeb = factory(root.b);
}
}(this, function (b) {
return {aye: function(){return 'yes';};
}));
View gist:78d8cd58e21c6b990016

Video games were long seen as being for children. This has been the topic of many debates about video games: are they good or bad for childrens' development? Should children in hospitals be given video games? How does the violence in video games effect children?

And let's be clear, this was specifically about young boys.

If you were a young boy who loved video games and grew up with the medium you loved under constant criticism, how would you respond? At the very best, you'd be exhausted of defending your hobby. At worst, you'd fight back so long and so hard that you'd internalize the fight as part of your identity. A gamer is someone who defends the institution of gaming, you might say.

But forget about video games. Think about the social position of the young boy. It is a position of being simultaniously oppressed (young) and priveleged (male). The "young boy" group has legitimate reasons to feel oppressed: grown-ups are always seen as knowing best even when they're obviously wrong. And when it came to g

You can’t perform that action at this time.