Skip to content

Instantly share code, notes, and snippets.

View markruys's full-sized avatar

Mark Ruys markruys

  • Peercode
  • The Netherlands
View GitHub Profile
@markruys
markruys / js-beautify.el
Created February 14, 2012 15:44 — forked from slackorama/js-beautify.el
beautify some js code in emacs
;;; js-beautify.el -- beautify some js code
(defgroup js-beautify nil
"Use jsbeautify to beautify some js"
:group 'editing)
(defcustom js-beautify-args "--jslint-happy --brace-style=end-expand --keep-array-indentation"
"Arguments to pass to jsbeautify script"
:type '(string)
:group 'js-beautify)
@markruys
markruys / Person.js
Created March 8, 2012 21:59 — forked from kwhinnery/Person.js
Monkey patch for require in Titanium Mobile
exports.Person = function(firstName,lastName) {
this.firstName = firstName;
this.lastName = lastName;
};