Skip to content

Instantly share code, notes, and snippets.

View cgdangelo's full-sized avatar

Charles D'Angelo cgdangelo

View GitHub Profile
require 'nokogiri'
document = Nokogiri::XML(File.read('app/etc/local.xml'))
child_node = Nokogiri::XML::Node.new("test_child", document))
child_node.content = "foo"
document.xpath('config/global/resources/default_setup/connection')[0].add_child(child_node)
File.open('app/etc/local.xml.modified', 'w') { |f| document.write_xml_to f }
@cgdangelo
cgdangelo / _desktop.sass
Created June 18, 2013 17:56
Custom desktop grid in Foundation
$total-columns: 12
/* Desktop grid */
@media #{$medium}
@for $i from 1 through $total-columns
.desktop#{-$i}
@include grid-column($columns:$i,$collapse:null,$float:false)
@for $i from 0 through $total-columns - 1
.row .desktop-offset-#{$i}
<?php
$basePath = Mage::getBaseDir('media') . DS . 'catalog' . DS . 'category' . DS;
$imagePath = Mage::registry('current_category')->getLogoImage();
$image = new Varien_Image($basePath . $imagePath);
$image->keepAspectRatio(true);
$image->keepTransparency(true);
$image->constrainOnly(true);
?>
<img src="<?php $image->resize(200, 100); ?>"/>
d4tuuaGEfe5XaTlHI2Mqv7tiyMkiQ5IGzd4WiDtfHxJqCBkCEkQ2PKAVKDJQ9RGQFkenmfPghLOtR0qfLmyfKgoL6GcPVHqDmkY5uqOfQalLIclwuSCuEOqPNcTme1ZbnrfeyQImzjMUQlQGYvfc9me56c2OIKplQ2SKSDkbFuruFLsOPPiY3fQmskkASkiOrtjnErPojfLUfcPRPOUNqHlt1VL6Vk0YKscPkPlekKCmnfZPJjzYcnewewusyoRJtOzy2jBMjHzhzvf0VQjA8XlK55BZtMB7clMZPglyoRd2cnpYQkOFvtuttlmdfKi5SoWlchaSdPHeLvg(qhcwkqNp8HoGcsKCwh4fHzAwXzrwvb9R6PfUfHr5FbxB63Mp8HA3l)qHqhOkRE5xykYSgYdBQKqAPSFBofy8Snp3zqL0fwXOgoEg9uvplmUTCRAQjfpXdXzYKIN0m5HOLKMEsQIOtAwifyZ5chYdBQKqEWiX28CNbvTjHw9n36vn5zHanTOKWtbC(vsOra4Rs66cdqFeeGcHcpl4czuqxjHgbGVkPRlSIc(T5kj0ia8vjDDHGauiujHWLNd4cnJiNCehMUWYwvTGbGBUscncaFvsxxiRbCLeAea(QKUUUqpBBkV4fLrxiOsQ2KsczE(28K52UW7z)aZfc2antjvBstrmjljtIytMMjzPLZeppRkIots1Kv90QMKMkEYMINysKIFAsKjMmztwQkIotsx4weg1KWLVFeSnSb87fvBsif8BZHkjeEk7kje2bEze0kLZDaHtqH3zcHDGxeAw(Dwff0jeTuAoKGfDkrIgyuiHS64Cw0aJcNWllLa2bEbsiRiwhRzgZopxyPhHDGx0aDDH3Z(bMl0S87SkkOtiAPejhsWIoLirdmkKWeEzPesE2pWCiHyxgiGpIgDFRJdAwXzcJBl3QQjplKYxd63MRKq4PSRKqBMd9lSIwCH3CBxOnZH(1fAqxUscTzo0VW46mzaCDHvlFHwvsOnZH(fwrlUWBUTl0M5q
@cgdangelo
cgdangelo / mage-wcl.md
Last active March 21, 2016 14:41
Mage metrics for log analysis

These are some basic metrics for evaluating Mage performance during a raid. It's not comprehensive, or even 100% accurate for indicating skill level, but it's a useful guideline to help guilds evaluate their trials or for raiders to identify flaws in their gameplay.

Note: Some queries require the actor name to be provided. Substitute your character's name for "Dikembe" wherever appropriate.

Arcane

Wasted Arcane Missiles

Every Arcane Missiles! offers 5 casts of Arcane Missiles. Therefore, the number of casts of Arcane Missiles should be 5 times greater than the number of Arcane Missiles! procs. Anything less indicates that Arcane Missiles were interrupted while channeling, or wasted outright.

../profiles/Tier19P/Mage_Fire_T19P.simc
html=fire.html
max_time=30
fixed_time=1
vary_combat_length=0
talents=1122111
artifact=54:137546:137303:137546:0:748:1:749:3:750:2:751:4:752:5:754:3:755:3:756:3:759:1:762:1:763:1:1340:1

Odyn

Phase 1: Hymdall + Hyrja

Make sure both of them hit 25% within 10 seconds of each other.

  • Like Dragons, sorta. Have to be tanked separately and far away from each other.

Hymdall

  • Ranged DPS on him.
  • Stay away from him and other people to avoid Horn of Valor damage.
@cgdangelo
cgdangelo / tov.md
Last active November 21, 2016 17:47

Odyn

Phase 1: Might of the Valajar

Drop Hymdall and Hyrja to 25% health.

  • Stack: Draw Power targets move to their designated runes.
  • Stack: All players move to their designated runes after Draw Power.

Hymdall

  • Dodge: Horn of Valor (15 yards from Hymdall, 5 yards from players).
../profiles/Tier19M_NH/Mage_Arcane_T19M_NH.simc
default_actions=0
#legs=,id=132451
finger1=,id=132410
copy="Dikembe"
level=110
race=troll
role=spell
../profiles/Tier19M_NH/Mage_Arcane_T19M_NH.simc
default_actions=0
name=20s
copy=0s,20s
actions.precombat+=/variable,op=set,name=max_burn_delay,value=0
copy=10s,20s