Skip to content

Instantly share code, notes, and snippets.

View Bruners's full-sized avatar

Lasse Brun Bruners

  • Brimo Fiskeforedling AS
  • Norway
View GitHub Profile
<div class="meny-modals">
<?php
$args = array('post_type' => 'meny-modal');
$query = new WP_Query($args);
while($query -> have_posts()) : $query -> the_post();
?>
<!-- Modal -->
<div id="meny-modal-<?php echo(get_the_ID()); ?>" role="dialog" aria-labeledby="<?php the_title(); ?>" class="modal fade" tabindex="-1">
<div class="modal-dialog" role="document">
<div class="modal-content">
[Unit]
Description=Open Sound System v4.x
Documentation=man:soundon(1) man:ossinfo(1)
Documentation=http://manuals.opensound.com
Before=sound.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/soundon
@Bruners
Bruners / gist:3127650
Created July 17, 2012 06:34
Caps -> PTT, Scroll Lock -> Caps
! ~/.Xmodmap
! xmodmap -pke
clear Lock
! Caps_Lock = 66
keycode 66 XF86Phone
! Scroll_Lock = 78
keycode 78 Caps_Lock
add Lock
Castbar.CustomTimeText = function(self, duration)
if self.casting then
self.Time:SetFormattedText("%.1f", self.max - duration)
elseif self.channeling then
self.Time:SetFormattedText("%.1f", duration)
end
end
-- Position and size
local Castbar = CreateFrame("StatusBar", nil, self)
Castbar:SetSize(20, 20)
Castbar:SetPoint('TOP')
Castbar:SetPoint('LEFT')
Castbar:SetPoint('RIGHT')
-- Add a background
local Background = Castbar:CreateTexture(nil, 'BACKGROUND')
Background:SetAllPoints(Castbar)
-- Position and size
local Combat = self:CreateTexture(nil, "OVERLAY")
Combat:SetSize(16, 16)
Combat:SetPoint('TOP', self)
-- Register it with oUF
self.Combat = Combat
-- Position and size
local Assistant = self:CreateTexture(nil, "OVERLAY")
Assistant:SetSize(16, 16)
Assistant:SetPoint('TOP', self)
-- Register it with oUF
self.Assistant = Assistant