Skip to content

Instantly share code, notes, and snippets.

View jonschlinkert's full-sized avatar
🤔
Trying to stay in the right branch of the wave function.

Jon Schlinkert jonschlinkert

🤔
Trying to stay in the right branch of the wave function.
View GitHub Profile
@jonschlinkert
jonschlinkert / gist.html
Created October 22, 2012 01:28
HTML: Starting Template
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<link href="" rel="stylesheet" >
<script src="" type="text/javascript"></script>
</head>
<body>
@jonschlinkert
jonschlinkert / grunt_growl.js
Created October 22, 2012 02:25 — forked from FGRibreau/grunt_growl.js
How to get Growl notifications from Grunt.js
/* Inside grunt.js file (don't forget to add "growl" as a project dependency) */
grunt.utils.hooker.hook(grunt.fail, "warn", function(opt) {
require('growl')(opt.name, {
title: opt.message,
image: 'Console'
});
});
@jonschlinkert
jonschlinkert / doctype-keyword-proposal.md
Created October 31, 2012 00:25
Proposals for how to handle doctype in Pre
@jonschlinkert
jonschlinkert / syntax-for-less-extends.md
Created October 31, 2012 20:02
Syntax proposals for "extends" in LESS

Initial proposal

Initial proposal to use +. from @hokaccha:

where this

.foo {
  width: 100px;
}
.bar {
 +.foo;
@jonschlinkert
jonschlinkert / zencoding-html-cheatshet.md
Created November 1, 2012 15:16
ZenCoding HTML Selectors
@jonschlinkert
jonschlinkert / gist:4007536
Created November 3, 2012 14:33 — forked from axelhzf/gist:3192614
Grunt-reload monitorizar multiples archivos
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
less: {
all: {
src: '*.less',
dest: 'style.css'
}
},
@jonschlinkert
jonschlinkert / domToPre.js
Created November 6, 2012 16:57 — forked from dpashkevich/domToPre.js
DOM tree to Pre converter
/**
* See https://github.com/sellside/pre
*/
/**
* References/todos:
* http://www.lemoda.net/javascript/dump-dom/dump-dom.html
* http://www.howtocreate.co.uk/tutorials/javascript/dombasics
* Use treewalker or nodefilter??
* https://developer.mozilla.org/en-US/docs/DOM/NodeFilter
@jonschlinkert
jonschlinkert / pre-example-form.md
Created November 8, 2012 16:32
form mixin written in Pre

Pre

With Pre, you might create a form like this:

form.form-horizontal {
  action: "";
  .controlGroup();
  .controlGroup("Password");
 .controlGroupRememberMe();
@jonschlinkert
jonschlinkert / jade.md
Created November 10, 2012 01:37
jade

well cool, but how about large bodies of text:

yuck

p
  | foo bar baz
  | rawr rawr
  | super cool
  | go jade go
@jonschlinkert
jonschlinkert / docs.js
Created November 11, 2012 08:39
build bootstrap docs
//
// Build Bootstrap Docs
// ---------------------------------------------
// Credit: inspired by @ctalkington
module.exports = function(grunt) {
// Grunt utilities.
var task = grunt.task,
file = grunt.file,