Skip to content

Instantly share code, notes, and snippets.

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 Oct 22, 2012
HTML: Starting Template
View gist.html
<!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 Oct 22, 2012 — forked from FGRibreau/grunt_growl.js
How to get Growl notifications from Grunt.js
View grunt_growl.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 Oct 31, 2012
Proposals for how to handle doctype in Pre
View doctype-keyword-proposal.md
@jonschlinkert
jonschlinkert / syntax-for-less-extends.md
Created Oct 31, 2012
Syntax proposals for "extends" in LESS
View syntax-for-less-extends.md

Initial proposal

Initial proposal to use +. from @hokaccha:

where this

.foo {
  width: 100px;
}
.bar {
  +.foo;
View zencoding-html-cheatshet.md
@jonschlinkert
jonschlinkert / gist:4007536
Created Nov 3, 2012 — forked from axelhzf/gist:3192614
Grunt-reload monitorizar multiples archivos
View gist:4007536
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
less: {
all: {
src: '*.less',
dest: 'style.css'
}
},
@jonschlinkert
jonschlinkert / domToPre.js
Created Nov 6, 2012 — forked from dpashkevich/domToPre.js
DOM tree to Pre converter
View domToPre.js
/**
* 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
View pre-example-form.md

Pre

With Pre, you might create a form like this:

form.form-horizontal {
  action: "";
  .controlGroup();
  .controlGroup("Password");
  .controlGroupRememberMe();
View jade.md

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 Nov 11, 2012
build bootstrap docs
View docs.js
//
// Build Bootstrap Docs
// ---------------------------------------------
// Credit: inspired by @ctalkington
module.exports = function(grunt) {
// Grunt utilities.
var task = grunt.task,
file = grunt.file,