Skip to content

Instantly share code, notes, and snippets.

View passy's full-sized avatar
😷
Wear a mask.

Pascal Hartig passy

😷
Wear a mask.
View GitHub Profile
@passy
passy / h5bp.js
Last active August 29, 2015 14:04 — forked from sindresorhus/h5bp.js
document.write("<!DOCTYPE html>");
document.write("<!--[if lt IE 7]> <html class=\"no-js lt-ie9 lt-ie8 lt-ie7\"> <![endif]-->");
document.write("<!--[if IE 7]> <html class=\"no-js lt-ie9 lt-ie8\"> <![endif]-->");
document.write("<!--[if IE 8]> <html class=\"no-js lt-ie9\"> <![endif]-->");
document.write("<!--[if gt IE 8]><!--> <html class=\"no-js\"> <!--<![endif]-->");
document.write(" <head>");
document.write(" <meta charset=\"utf-8\">");
document.write(" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge,chrome=1\">");
document.write(" <title><\/title>");
document.write(" <meta name=\"description\" content=\"\">");
@passy
passy / gist:8652275
Last active January 4, 2016 17:09 — forked from ahume/gist:8648977
// What about this as a compromise?
function test() {
page.loadAndWaitForSignInUi()
.then(page.setViewportSize.bind(page, 1300, 500);
.then(page.patchStreamScribe.bind(page))
.then(page.login.bind(page, account.creds));
}
@passy
passy / jade.md
Last active August 17, 2020 09:35
Using Yeoman and Jade

Using Yeoman and Jade

Getting started

  • Make sure you have yo installed: npm install -g yo
  • Run: yo webapp
  • Install grunt-contrib-jade: npm install grunt-contrib-jade --save-dev

Customization

@passy
passy / gist:375113
Created April 22, 2010 11:43 — forked from remy/gist:375100
/**
* == Can it be done? ==
*
* I want to get from keyIdentifier to actual character, eg from U+0023
* to \u0023 - which if dropped in a string is the # character:
* http://jsconsole.com/?%22\u0023%22
*
* The problem is the starting point, and I know I can do it using an
* eval, but eval is evil, right? So how can I do it?
*