Skip to content

Instantly share code, notes, and snippets.

View GDanielRG's full-sized avatar

Gerardo Daniel Rodríguez GDanielRG

  • Developer
  • México
View GitHub Profile
{
"payload":{
"scenarios":[
{
"scenario_id":1,
"scenario_name":"Escenario 1",
"materials":{
"slab":{
"slab_id":4,
"outer_material_id":"",
<template>
<div class="bg-white h-screen flex flex-col container mx-auto">
<header class="flex flex-shrink-0">
<div
class="flex-1 flex items-center justify-between pl-2 pr-6 bg-white lg:px-6"
>
<a
href="#"
@click.prevent="$router.push('/')"
class="flex items-center"
<template>
<div>
<div class="flex justify-between" v-if="label">
<div class="flex">
<label :for="$attrs.id" class="block" :class="labelStyling">{{ label }}</label>
<div v-if="invalid" class="pointer-events-none pl-2">
<svg class="h-5 w-5 text-red-500" fill="currentColor" viewBox="0 0 20 20">
<path
fill-rule="evenodd"
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z"
<template>
<div>
<div class="flex justify-between" v-if="label">
<label :for="$attrs.id" class="block" :class="labelStyling">{{ label }}</label>
<span v-if="cornerHint" :class="cornerHintStyling">{{ cornerHint }}</span>
</div>
<div :class="{ 'mt-1': label }" class="relative rounded-md shadow-sm">
<input
:value="value"
@input="input($event.target.value)"
{
"Reset Password Notification": "Reestablecimiento de contraseña",
"You are receiving this email because we received a password reset request for your account.": "Estas recibiendo este correo porque recibimos una solicitud para reestablecer la contraseña de tu cuenta. ",
"Reset Password": "Reestablecer contraseña",
"This password reset link will expire in :count minutes.": "Este enlace para reestablecer tu contraseña expirará en :count minutos.",
"If you did not request a password reset, no further action is required.": "Si tu no solicitaste reestablecer tu contraseña, no se requiere ninguna acción adicional.",
"Regards": "Saludos",
"If you’re having trouble clicking the :actionText button, copy and paste the URL below\ninto your web browser: [:displayableActionUrl](:actionURL)": "Test"
}
@GDanielRG
GDanielRG / ArrayIsInCorrectSizeAndOrder.php
Last active February 28, 2020 17:33
DistinctColumnFromArray.php
<?php
namespace App\Rules;
use Illuminate\Contracts\Validation\Rule;
class ArrayIsInCorrectSizeAndOrder implements Rule
{
protected $_referenceArray;
@GDanielRG
GDanielRG / machine.js
Last active January 31, 2020 05:24
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@GDanielRG
GDanielRG / machine.js
Created January 31, 2020 04:34
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
<template>
<div class="rounded border-gray-700 border p-2">
<div class="flex items-center flex-wrap">
<div class="bg-gray-900 text-white rounded p-2" v-for="variant in variants" :key="variant">
<p>{{variant}}</p>
</div>
<input v-model="input" type="text" class="bg-transparent" @keyup.enter="addVariant()">
</div>
</div>
</template>
<script src="https://unpkg.com/vue@^2.6/dist/vue.min.js"></script>
<script>
new Vue({
el: '#app',
data: function () {
return {
isOpen: true,
}
},