Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env lua
-- new `_ENV' in lua 5.2 (on mac osx 10.8.2 x64, lua 5.2 rc4)
--[[
-- test 1
--]]
do
local oldenv = _ENV
local _ENV = {}
@yaroot
yaroot / vim.rb
Created November 14, 2011 07:13 — forked from uasi/vim.rb
Vim formula for Homebrew
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.294'
def features; %w(tiny small normal big huge) end
@yaroot
yaroot / langs.xml
Created October 14, 2010 01:39
wow lua syntax file for Notepad++
<?xml version="1.0" encoding="Windows-1252" ?>
<NotepadPlus>
<!-- The key words of the supported languages, don't touch them! -->
<Languages>
<Language name="normal" ext="txt"/>
<Language name="actionscript" ext="as mx" commentLine="//" commentStart="/*" commentEnd="*/">
<Keywords name="instre1">add for lt tellTarget and function ne this break ge new typeof continue gt not var delete if on void do ifFrameLoaded onClipEvent while else in or with eq le return instanceof case default switch</Keywords>
<Keywords name="type1">arguments constructor class dynamic false extends implements import interface intrinsic newline null private public super static true undefined Accessibility Arguments Array Boolean Button Camera ContextMenu ContextMenuItem CustomActions Color Date Error Function Key LoadVars LocalConnection Math Microphone Mouse MovieClip MovieClipLoader NetConnection NetStream Number PrintJob Object TextField StyleSheet TextFormat TextSnapshot SharedObjec
*** ouf.lua 2010-09-07 10:18:39.233070300 +0800
--- ../ouf.lua 2010-09-10 17:56:59.963724800 +0800
***************
*** 397,407 ****
--- 397,412 ----
-- Attempt to guess what the header is set to spawn.
local parent = object:GetParent()
if(not unit) then
+ local suffix = object:GetAttribute'unitsuffix'
if(parent:GetAttribute'showRaid') then
-- Attempt to guess what the header is set to spawn.
local parent = object:GetParent()
if(not unit) then
local suffix = object:GetAttribute'unitsuffix'
if(parent:GetAttribute'showRaid') then
unit = 'raid'
elseif(parent:GetAttribute'showParty') then
unit = 'party'
end
local function Update(self, event, unit)
if unit ~= self.unit then return end
local _name, _icon, _count, _dtype, _duration, _endTime
local _priority, priority = 0
local i = 0
while(true) do
i = i + 1
local name, rank, icon, count, debuffType, duration, expirationTime, unitCaster, isStealable, shouldConsolidate, spellId = UnitAura(unit, i)
if (not name) then break end
priority = debuff_data[addon.MatchBySpellName and name or spellId]
local function update(button, paperDollItemSlot)
local link
if(button.location and button.location < PDFITEMFLYOUT_FIRST_SPECIAL_LOCATION) then
local id, name, texture = EquipmentManager_GetItemInfoByLocation(button.location)
if(texture) then
_, link = GetItemInfo(id)
end
end
oGlow:CallFilters('flyout', button, link)
--[[
Copyright (c) 2008-2010 yleaf (yaroot@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
--[[
Copyright (c) 2008-2009 yleaf (yaroot@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
--[[
oUF_Caellian.toc
change
## OptionalDeps: oUF_CombatFeedback, oUF_ReadyCheck, oUF_SpellRange, oUF_TotemBar, oUF_WeaponEnchant
to
## OptionalDeps: oUF_CombatFeedback, oUF_ReadyCheck, oUF_SpellRange, oUF_TotemBar, oUF_WeaponEnchant, oUF_RaidDebuffs
]]