This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Vim < Formula | |
homepage 'http://www.vim.org/' | |
url 'ftp://ftp.vim.org/pub/vim/unix/vim-7.3.tar.bz2' | |
head 'https://vim.googlecode.com/hg/' | |
sha256 '5c5d5d6e07f1bbc49b6fe3906ff8a7e39b049928b68195b38e3e3d347100221d' | |
version '7.3.480' | |
def features; %w(tiny small normal big huge) end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
--- | |
name: Element.injectHTML | |
description: Wrapper/polyfill around insertAdjacentHTML. | |
license: MIT-style license | |
copyright: Copyright (c) 2011 Mark Obcena <keetology.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* XML Methods for MooTools */ | |
/* Requires MooTools v1.3 */ | |
var XML = { | |
rootFromFile: function(file){ | |
var root = null; | |
switch (Browser.name){ | |
case 'safari': | |
case 'chrome': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Core.js | |
Examples for Core.js | |
License: | |
MIT-style license. | |
*/ | |
describe('Function.prototype.extend', { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Function.Typed.js | |
Helper for multimethods. | |
Copyright and License: | |
Copyrighted 2010, Mark Obcena. MIT-Style License | |
Credits: | |
Inspired by "Multimethods in Python" | |
[http://alexgaynor.net/2010/jun/26/multimethods-python/] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Mediator | |
Object grouping and brokering | |
Copyright and License: | |
Copyright 2010, Mark Obcena. MIT-Style License | |
*/ | |
(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class.extend({ | |
mock: function(klass, options){ | |
options = options || {}; | |
klass = klass.prototype; | |
var proto = {}; | |
for (var i in klass) (function(key, value){ | |
proto[key] = options[key]; | |
if (proto[key]) return; | |
switch ($type(value)){ | |
case 'function': |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Template.jx | |
Basic templating system. | |
License: | |
MIT-style license. | |
Acknowledgements: | |
Original inspired by Charlie Savages' simple templating engine. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// As a Function method.. | |
(function(){ | |
Function.prototype.docString = function(){ | |
var doc = this[this.toSource ? 'toSource' : 'toString']().match(/['"]\*(.*)\*['"]/); | |
return (doc) ? doc[1].replace(/^\s+|\s+$/g, '') : ''; | |
}; | |
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Script: Signal.js | |
Makes chaining functions easy! | |
License & Copyright: | |
Copyright 2009, Mark Obcena <keetology.com> | |
MIT-Style License | |
*/ | |
(function(global){ |
NewerOlder