(5) "Deal 5 damage to a minion and 2 damage to adjacent ones."
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
<?php | |
/** | |
* 1. Para efetuar o login se passando por outro usuário, basta que você tenha o `$id` ou uma instância do Model User: | |
* Será necessário incluir a dependência do `Auth`, usando `use Illuminate\Support\Facades\Auth;` | |
*/ | |
use Illuminate\Support\Facades\Auth; | |
// Logando como usuário pelo id | |
Auth::loginUsingId($id); |
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
<?php | |
/** | |
* Exemplo de uso: retornar determinado número de produtos em destaque para apresentar na web. | |
* Considerando um model Produto com um atributo em_destaque: 1 = SIM | 2 = NÃO | |
*/ | |
/** | |
* 1. Retornar os produtos do banco de dados. | |
*/ | |
$produtos = Produto::all(); |
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
/*! | |
Chosen, a Select Box Enhancer for jQuery and Prototype | |
by Patrick Filler for Harvest, http://getharvest.com | |
Version 1.8.2-hanoii | |
Full source at https://github.com/harvesthq/chosen | |
Copyright (c) 2011-2017 Harvest http://getharvest.com | |
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md | |
This file is generated by `grunt build`, do not edit it by hand. |
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
export const isSubset = <T extends { id: string }>(array: T[], subset: T[]): boolean => { | |
const ids: string[] = array.map((item: T) => item.id); | |
const notInArray = subset.filter((item: T) => !ids.includes(item.id)) | |
return notInArray.length <= 0; | |
} | |
// @fakenickles | |
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
{ | |
"$type": "UAssetAPI.UAsset, UAssetAPI", | |
"Info": "Serialized with UAssetAPI 1.0.0.0 (a5978d9)", | |
"NameMap": [ | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/Card/Keyword_FullCombo.Keyword_FullCombo", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable", | |
"/Game/Coda/Templates/AbilityKeywords/StatusEffects/Keyword_Vulnerable.Keyword_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable", | |
"/Game/Coda/Templates/Effects/Effect_Vulnerable.Effect_Vulnerable", |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using Sirenix.OdinInspector; | |
using System.Text.RegularExpressions; | |
namespace TcgEngine | |
{ | |
[InlineButton("@CardEditor.CloneAction($root, $property, $value)", SdfIconType.FileEarmarkPlusFill, "", ShowIf = "@CardEditor.ShowNotNull($value)")] | |
[CreateAssetMenu(fileName = "textEnhancer", menuName = "TcgEngine/TextEnhancer", order = 99)] |
OlderNewer