This file contains hidden or 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
<?php | |
final class Repository | |
{ | |
public save(Entity $item) {} | |
public find($criteria): Entity {} | |
public __construct(PDO $db) {} | |
} | |
final class Entity |
This file contains hidden or 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
#!/bin/sh | |
_tmp="$( mktemp --tmpdir -- git-hub.XXXXXXXX )" | |
trap 'rm "$_tmp";' EXIT HUP INT ABRT TERM | |
curl -s "https://api.github.com/repos/$1" > "$_tmp" || exit 1 | |
jq . >> /dev/null < "$_tmp" || { | |
echo "Malformed JSON." | |
exit 1 |
This file contains hidden or 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
# fixing ExU Ingot Recipes when TCon, DragonAPI is installed | |
# Credits to PrincessRTFM | |
val stableSigil = <ExtraUtilities:divisionSigil>.onlyWithTag({stable: 1}); | |
val normalSigil = <ExtraUtilities:divisionSigil>; | |
val ironIngot = <minecraft:iron_ingot>; | |
val diamond = <minecraft:diamond>; | |
recipes.removeShaped(<ExtraUtilities:unstableingot>); # remove the bugged recipes | |
recipes.addShaped(<ExtraUtilities:unstableingot:2>,[[ironIngot],[stableSigil],[diamond]]); |
NewerOlder