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 testFrame=CreateFrame("Frame") | |
/script testFrame:SetFrameStrata("BACKGROUND") | |
/script testFrame:SetWidth(100) | |
/script testFrame:SetHeight(100) | |
/script testTextr=testFrame:CreateTexture(nil, "BACKGROUND") | |
/script testTextr:SetTexture([[Interface\AddOns\PowerAuras\Auras\Aura1.tga]]) | |
/script testTextr:SetAllPoints(testFrame) | |
/script testFrame.texture = testTextr | |
/script testFrame:SetPoint("LEFT", 0,0) |
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
-- TODO: | |
-- Align Buff/Debuffs | |
-- The following lines will hide the default blizzard buffs | |
BuffFrame:Hide() | |
TemporaryEnchantFrame:Hide() | |
-- ItsCool and OhCrap are the two textures used to indicate percentage health | |
local font = [[Interface\AddOns\oUF_Metzerott\fonts\SFDiegoSans.ttf]] |
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
/swapactionbar 1 2 |
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
# 在 xmind “匯出"-> 純文字檔案 | |
perl xmind_txt_to_ppt.pl < 論文6.txt > 論文6_ppt.txt # 把x.x 換成 "\t" | |
iconv -t big5 論文6_ppt.txt > 論文6_ppt_big5.txt # 改編碼 | |
unix2dos 論文6_ppt_big5.txt # 改 "\n" | |
# 在 powerpoint 2007 插入投影片 -> 從大綱插入 |
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
#!/usr/bin/perl -w | |
use utf8; | |
while(<>) | |
{ | |
chomp; | |
next if $_ eq ""; | |
#next if $_ =~ /Note/; | |
my $count = 0; | |
$count++ while(s/^[0-9]+[. ][ ]?//); |
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
#include<stdio.h> | |
#include<sys/time.h> | |
#include<string.h> | |
int main(void) | |
{ | |
char buff[1024]; | |
struct timeval init_time, cur_time, diff_time; | |
gettimeofday(&init_time, 0); |
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
local warnShadowBlaze = mod:NewSpellAnnounce(94085, 4)--May be quirky | |
local timerShadowBlazeCD = mod:NewCDTimer(10, 94085) | |
--Credits to Bigwigs for this. Mine was inaccurate and posts complained theirs was better. I'll still try to verify by hand with good ole /yell macros each time i see a cast ;) | |
function mod:ShadowBlazeTimer() | |
if mod:IsDifficulty("heroic10") or mod:IsDifficulty("heroic25") then | |
if shadowblazeTimer > 5 then--Keep it from dropping below 5 | |
shadowblazeTimer = shadowblazeTimer - 5 | |
end | |
else |
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
from bottle import route, request, run, response | |
import re | |
import sys | |
@route('/') | |
def hello(): | |
return 'Hello world!' | |
getparam_cache = {} | |
@route('/cgi-bin/admin/getparam.cgi', mothod='GET') |
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
all: | |
$(MAKE) -C ../include | |
[ -z "$(dir_1_y)" ] || ( \ | |
$(MAKE) -j$(HOST_NCPU) $(sort $(dir_1_y)) &&\ | |
$(MAKE) -C ../include &&\ | |
$(MAKE) make_links ) | |
[ -z "$(dir_2_y)" ] || ( \ | |
$(MAKE) -j$(HOST_NCPU) $(sort $(dir_2_y)) &&\ | |
$(MAKE) -C ../include &&\ | |
$(MAKE) make_links ) |
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
v = 1 | |
class klass: | |
global v | |
def v2(self): | |
v = 2 | |
def v3(self): | |
global v | |
v = 3 | |
print v |
OlderNewer