Skip to content

Instantly share code, notes, and snippets.

View fenhl's full-sized avatar

Fenhl fenhl

View GitHub Profile
@fenhl
fenhl / collatz.ga
Created August 24, 2011 22:14
Γαμμα
# collatz.ga
this will print out a tree representing Collatz's conjecture in reverse
This code shows that one can write Gamma programs in different styles
or even, as in this case, in the style of another programming language
Python version: http://codepad.org/ASIFuwku #
uint LIMIT ← 100.
obj Collatz ← «
@fenhl
fenhl / clone.rs
Created June 6, 2015 14:44
jqsh::parser::Code
impl Clone for Code {
fn clone(&self) -> Code {
let mut lock = self.0.lock().unwrap();
match *&mut *lock {
CodeVariant::Empty => Code(Mutex::new(CodeVariant::Empty)),
CodeVariant::UString { ref s, .. } => Code(Mutex::new(CodeVariant::UString { s: s.clone(), peek_index: 0 })),
CodeVariant::UStringIter(_) => {
if let CodeVariant::UStringIter(it) = mem::replace(&mut *lock, CodeVariant::Mutation) {
let s = it.collect::<UString>();
*lock = CodeVariant::UString { s: s.clone(), peek_index: 0 };
FATAL 2016-05-25 12:44:01,900 Communication error =>[AWT-EventQueue-0] SessionImpl.handleThrowable
java.lang.NoClassDefFoundError: mage/game/result/ResultProtos$MatchOptionsProto
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.getDeclaredMethod(Class.java:2128)
at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:122)
at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:172)
@fenhl
fenhl / aenyr-errata.md
Last active February 7, 2019 15:12
Aenyr errata

Errata applied to Aenyr version post dominaria

Multiple cards

(none)

Single card

  • Luck of the Draw:
  • Made first ability a replacement effect (“When” → “As”), as is usual for choices made for linked abilities.
@fenhl
fenhl / dreamscape-proofread.md
Last active October 18, 2018 21:34
Dreamscape templating issues and suggestions

Dreamscape templating issues and suggestions as of 2.50

Multiple cards

  • Cards with dreamwalk should receive their own frame distinct from multitype enchantments.
  • Twisted land cycle:
    • Missing the comma after “battlefield”.
    • Missing period at the end of the last ability.
  • Planeswalkers should be updated with the legendary supertype. Affects Evis, Executor of Light; Ral Zarek, Dream Artist; and Yemma, Planar Huntress.
  • The artist credit on some cards starts with a space. Affects Aether Predator, Creative Revelation, Cultist Dagger, Devouring Husk, Dreameater Engine, Dreamheart Seal, Emissary of Light, Fetid Awakening, Fires of the Mori, Forest, Gardener of Wisdom, Jorallen Visionary, Life's Grandeur, Memetic Casting, Nightfire Aspirant, Primal Visionary, Sleep, Spontaneous Mori, Unimaginable Force, Unrecognized Horizons, and Withering Dreamstrider.
@fenhl
fenhl / ankheret-proofread.md
Last active February 21, 2019 03:05
Ankheret templating issues and suggestions

Ankheret templating issues and suggestions as of 2.3

Multiple cards

  • Cards with “attacks/blocks each turn” effects were updated to “attacks/blocks each combat” for Ixalan. The rules have also been updated so that “attacks/blocks this turn if able” effects work the same way, which technically already fixes this, but for clarity, the wording should be updated anyway. Affects Apostate Thug and Iun, World Reborn.
  • Planeswalkers should be updated with the legendary supertype. Affects Dack, Tomb Raider; Sobki, World Severer; and Tamiyo, Moonseeker.
  • The following templating changes should be made for Dominaria:
  • Remove “to your mana pool” from Archive of Kariro, Bloodstone Oasis, Burial Chamber, Collapsing Underworld, Crossroads Sands, Crumbling Vestige, Desert Temple, Desolate Lighthouse, Disciple of Hesaret, Duality of Passion, Electrum-Gilded Swarm, Forgotten Necropolis, Garden Oasis, Gelid Pyramids, Mana Confluence, Memory Lane, Phoenix-Flame Ritual, Piece of Erises, Rotting Oasis, Sanctified Oa
@fenhl
fenhl / draft.txt
Created January 4, 2017 23:37
Aenyr Draft @ Gefolge-Silvester 2016
Gefolge-Silvester 2016
Draft:
Botho
Bene
Fenhl
Leif
Hanno
Tobi
Gesche
@fenhl
fenhl / imago-proofread.md
Last active August 3, 2017 15:13
Imago templating issues and suggestions

Imago templating issues and suggestions as of 1.4.2

Multiple cards

  • Some abilities are missing the period at the end: First ability on Daydreamer, second ability on Disquiet in the Slums, first ability on Irresistible Aristocrat
  • Some cards say “exile the top card of your library with a dreaming counter on it”. This is ambiguous and “exile the top card of your library and put a dreaming counter on it” might be better. Noticed for: Daydreamer, Deep Sleep, Dream's End, Festival Pilgrim, Genius of Majora, Intoxicated Prophet, Jace's Guilt, Majoran Visions, Speaker of Prophecy, Wendigo of Glamor Marsh, Wishbroker, Wonderseeker, Yuyin Cravings
  • Some color words and mana symbols are in the wrong order. The correct orders are included in parentheses. Noticed for: Blessed Lantermaster (WBG), Blueblood Scion (green and blue), Borderland Hospice (R, W, or B), Doric Dargason (WBG), Elder of Glamors (WBG), Fesival Foolery (GUR), Festival Grounds (G, U, or R), Festival's Apogee (GUR), Glamor Marsh Outskirts (G or W
@fenhl
fenhl / lorado-proofread.md
Last active October 16, 2018 19:06
Lorado templating issues and suggestions

Lorado templating issues and suggestions as of version 24

Multiple cards

  • Cards with “attacks/blocks each turn” effects were updated to “attacks/blocks each combat” for Ixalan. The rules have also been updated so that “attacks/blocks this turn if able” effects work the same way, which technically already fixes this, but for clarity, the wording should be updated anyway. Affects High Noon, Mechanical Bull, and Rail Juggernaut.
  • Artist name Moggith is missing the capitalization on Blaze of Malastrix, Final Showdown, Grit, Hasty Retreat, Malastrix, Manastorm Twister, Paragon Dragonslayer, and Reach for the Sky.
  • Dominaria update:
    • All cards are missing the flavor bar and legendary flourish. To fix this, the template should be changed to M15 Mainframe. The flavor bar on the following cards will also have to be adjusted:
      • uu2 on Mug of Beer.
  • u on Blightwing Wildshaper, Boomrider, Carnivorous Bog, Claim Jumper, Dadgum Varmints, Expel, Foretell, Hang, Hangman's Rock, Hoodoo Val
@fenhl
fenhl / tesla-proofread.md
Last active October 31, 2018 03:09
Tesla templating issues and suggestions

Tesla templating issues and suggestions as of version 0.998

Multiple cards

  • The artist credit on some cards starts with a space. Affects Vanara Thrillseeker and Suljet, the Cog Mind.
  • Dominaria update:
    • Change the card name in additional costs, cost reductions, and casting restrictions to “this spell” on Assault Automaton, Leyline Disturbance, and Outland Avenger.
    • Remove mentions of the mana pool from Aether Plantation, Chandras Catharsis, Cinder Barrens, Corrupt Courtroom, District Slums, Factory Reactor, Frontier Outpost, Meandering River, Restless District, Submerged Boneyard, Timber Gorge, Tranquil Expanse, Utopian District, Wealthy Man, and Weapons Cache.
    • Update damage effects for the removal of the planeswalker redirection rule:
  • Change “target player” to “target player or planeswalker” on Crazy Conspiracy // Groundbreaking Discovery and Energized Bolas.