Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

diff --git a/lib/rules/indent.js b/lib/rules/indent.js
index 20b2477..f020747 100644
--- a/lib/rules/indent.js
+++ b/lib/rules/indent.js
@@ -42,6 +42,7 @@ module.exports = function(context) {
var indentType = "space";
var indentSize = 4;
var options = {
+ IndentRootIIFE: true,
SwitchCase: 0,
@timwienk
timwienk / irc-notify.js
Last active January 27, 2017 17:50
Simple IRC notify script, sic (http://tools.suckless.org/sic) inspired.
#!/usr/bin/env node
"use strict"
var connection = null,
buffer = '',
listeners = {};
var options = {
host: 'chat.freenode.net',
port: 6667,
@timwienk
timwienk / Element.js
Created April 21, 2011 13:27
Add DOM object to Element.js, abstracting the selector engine part. Makes it possible to plug in other selector engines. (Note: Slick's custom combinators would have to be supported by the selector engine.)
/*
---
name: Element
description: One of the most important items in MooTools. Contains the dollar function, the dollars function, and an handful of cross-browser, time-saver methods to let you easily work with HTML Elements.
license: MIT-style license.
requires: [Window, Document, Array, String, Function, Number, Slick.Parser]
@timwienk
timwienk / moocoverage.sh
Created January 19, 2011 23:14
Generate jscoverage-ified versions of MooTools Core and More.
#!/bin/bash
AVAILABLE='core more'
SOURCE="$HOME/mootools"
TARGET="$HOME/www"
JSCOVERAGE='/usr/bin/jscoverage'
OPTIONS='--no-instrument=Specs --exclude=Docs --exclude=Tests --exclude=Styles --exclude=Packager --exclude=build --exclude=README.md --exclude=.git --exclude=.gitignore --exclude=.gitmodules'
if [ -z "$1" ]; then
@timwienk
timwienk / watchpackages.sh
Created September 25, 2010 14:30
Watches packages' directories for changes and executes a command when detecting a change.
#!/bin/sh
#
# Requires inotify-tools to be installed.
usage(){
echo "Watches packages' directories for changes and executes"
echo 'a command when detecting a change.'
echo
echo 'This script requires inotify-tools to be installed.'
echo
@timwienk
timwienk / replace-bind.sh
Created August 30, 2010 08:58
Replaces all occurences of .bind(bind, args) with .pass(args, bind) in the target files or directories.
#!/bin/sh
usage(){
echo 'Replaces all occurences of .bind(bind, args) with'
echo '.pass(args, bind) in the target files or directories.'
echo
echo "Usage: $0 [options] [paths...]"
echo
echo 'options:'
echo ' -h'