Skip to content

Instantly share code, notes, and snippets.

View tekkub's full-sized avatar

Tekkub tekkub

View GitHub Profile
local f = CreateFrame("Frame")
f:RegisterEvent("CONFIRM_DISENCHANT_ROLL")
f:SetScript("OnEvent", function(self, event, id, rollType) ConfirmLootRoll(id, rollType) end)
<?php
class DisplayHelper extends AppHelper {
var $helpers = array('Html');
/**
*
* Display navigation and detects currect page and adds 'active' class
* to the <li> tag
*
tekkub@fe1:~/tmp$ git clone git@github.com:jovo/meta-oopsi.git
Initialized empty Git repository in /home/tekkub/tmp/meta-oopsi/.git/
remote: Counting objects: 2658, done.
remote: Compressing objects: 100% (1938/1938), done.
remote: Total 2658 (delta 714), reused 2616 (delta 701)
Receiving objects: 100% (2658/2658), 583.86 MiB | 22200 KiB/s, done.
Resolving deltas: 100% (714/714), done.
Checking out files: 100% (2347/2347), done.
tekkub@fe1:~/tmp$ cd meta-oopsi/
local f = CreateFrame("Frame", nil, UIParent)
f:RegisterEvent("START_LOOT_ROLL")
f:SetScript("OnEvent", function(_, _, id)
if not id then return end -- What the fuck?
local _, _, _, quality, bop, _, _, canDE = GetLootRollItemInfo(id)
if quality == 2 and not bop then RollOnLoot(id, canDE and 3 or 2) end
end)
$(function () {
var toc = $("<ul>").css("margin-bottom", "20px !important")
$("div.sidebar").prepend(toc).prepend($("<h3>").text("Table of Contents"))
$("div.main div.wikistyle h2").each(function() {
var id = $(this).text().replace(/\s+/g, "_").replace(/[^0-9a-zA-Z_.-]/g, "")
$(this).attr("id", id)
toc.append(
$("<li>").append($("<b>").append($("<a>").attr("href", "#" + id).text($(this).text())))
)
})
Return-Path: support@github.com
Received: by mail.informatictech.com (8.9.3/0)
id LAA91499; Fri, 4 Dec 2009 11:35:56 -0500 (EST)
Received: from c906f312.static.virtua.com.br [201.6.243.18] by mail1.hck.carroll.com with ESMTP (8.11.3/0)
id nB4GS2e08004; Fri, 4 Dec 2009 11:28:02 -0500 (EST)
Delivered-To: <ravisd@insysit.com>
Message-ID: <000d01ca74fe$bab96d70$6400a8c0@harlot576>
From: "support@github.com" <support@github.com>
To: <ravisd@blah.com>
X-EnvTo: ravisd@blah.com
#!/usr/bin/env ruby
require 'net/http'
require 'net/https'
user = `git config --global github.user`.strip
token = `git config --global github.token`.strip
raise "Error reading github auth" if user.empty? || token.empty?
auth = {:login => user, :token => token}
local sounds = {"lvlup.wav", "voice2.wav"}
local f = CreateFrame("Frame")
f:RegisterEvent("PLAYER_LEVEL_UP")
f:SetScript("OnEvent", function() PlaySoundFile("Interface\\Addons\\Servant\\Sounds"..sounds[math.random(#sounds)]) end)
Errno::ENOENT: No such file or directory - ./namespaced_partial.mustache
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:135:in `read'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:135:in `template'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:258:in `template'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:294:in `render'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:75:in `render'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache/template.rb:50:in `render'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache/template.rb:54:in `render'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache.rb:295:in `to_html'
/Users/tekkub/.gem/ruby/1.8/gems/mustache-0.4.2/lib/mustache/sinatra.rb:89:in `render_mustache'
local RV = LibStub:NewLibrary("libRaidVoice-1.0", 1)
if not RV then return end -- No upgrade needed
-----------------------------------------------------------------------------------------------------
-- use RV.RegisterCallback(self, "eventName"[, method, [arg]])
-- to register recieve voice events
-- example:
-- local RV = LibStub:GetLibrary("libRaidVoice-1.0")